file

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalFileService

func NewLocalFileService(config *local.Config) (*fileserver.S3Adapter, error)

Types

type Config

type Config struct {
	HTTP HTTPConfig `json:"http" yaml:"http"`
}

type HTTPConfig

type HTTPConfig struct {
	Address string   `json:"address" yaml:"address"`
	Cors    []string `json:"cors" yaml:"cors"`
}

type Web

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

func NewWebServer

func NewWebServer(config *Config, storage *fileserver.S3Adapter) *Web

func (*Web) Identifier

func (w *Web) Identifier() string

func (*Web) Start

func (w *Web) Start(ctx context.Context) error

func (*Web) Stop

func (w *Web) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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