buffer

package
v0.0.0-...-f02749d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartBufferService

func StartBufferService(ctx context.Context, cfg *config.Config) error

Function to start the buffer service

Types

type BufferHTTPService

type BufferHTTPService struct {
	// contains filtered or unexported fields
}

func (*BufferHTTPService) GetHandler

func (s *BufferHTTPService) GetHandler(w http.ResponseWriter, r *http.Request)

func (*BufferHTTPService) PutHandler

func (s *BufferHTTPService) PutHandler(w http.ResponseWriter, r *http.Request)

type UploadFileResponse

type UploadFileResponse struct {
	Name string `json:"Name"`
	Hash string `json:"Hash"`
	Size string `json:"Size"`
}

func UploadToLighthouse

func UploadToLighthouse(sourcePath, apiKey string) (*UploadFileResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL