Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalFileService ¶
func NewLocalFileService(config *local.Config) (*fileserver.S3Adapter, error)
NewLocalFileService creates a new S3Adapter configured for local file storage. It sets up the local storage client and wraps it with caching and S3-compatible interface.
Types ¶
type Config ¶
type Config struct {
HTTP HTTPConfig `json:"http" yaml:"http"`
}
Config contains the complete configuration for the file web service.
type HTTPConfig ¶
type HTTPConfig struct {
Address string `json:"address" yaml:"address"`
Cors []string `json:"cors" yaml:"cors"`
}
HTTPConfig contains HTTP server configuration for the file service.
type Web ¶
type Web struct {
// contains filtered or unexported fields
}
Web provides a file upload and download web service with S3-compatible storage.
func NewWebServer ¶
func NewWebServer(config *Config, storage *fileserver.S3Adapter) *Web
NewWebServer creates a new file web server with the given configuration and storage adapter.
func (*Web) Identifier ¶
Identifier returns the service identifier for the file web server.
Click to show internal directories.
Click to hide internal directories.