Documentation ¶
Index ¶
- Constants
- func NewAPI() (core.API, []core.ContextBuilderOption, error)
- type API
- func (a API) AuthTokenName() string
- func (a API) Config() config.APIConfig
- func (a *API) Configure(router *mux.Router, accessSvc core.AccessService) error
- func (a API) Name() string
- func (a *API) Reconfigure(_ config.Scope, _ any) error
- func (a API) Subdomain() string
- func (a API) TusHandler() *service.TusHandler
- type Error
Constants ¶
View Source
const ( // File-related errors ErrKeyFileUploadFailed = "ErrFileUploadFailed" ErrKeyFileDownloadFailed = "ErrFileDownloadFailed" ErrKeyMetadataFetchFailed = "ErrMetadataFetchFailed" ErrKeyInvalidFileFormat = "ErrInvalidFileFormat" ErrKeyUnsupportedFileType = "ErrUnsupportedFileType" ErrKeyFileProcessingFailed = "ErrFileProcessingFailed" )
S5-specific error keys
View Source
const TUS_HTTP_ROUTE = "/api/upload/tus"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (API) AuthTokenName ¶
func (API) TusHandler ¶
func (a API) TusHandler() *service.TusHandler
Click to show internal directories.
Click to hide internal directories.