Documentation
¶
Index ¶
- Variables
- func AppLogger(appConfig appconfig.AppConfig) *slog.Logger
- func ExpAppLogger(appConfig appconfig.AppConfig) *expslog.Logger
- func GetDataStore(ctx context.Context, appConfig appconfig.AppConfig) (handlertusd.Store, health.Checkable, error)
- func GetUploadInfoHandler(ctx context.Context, appConfig *appconfig.AppConfig) (http.Handler, error)
- func InitConfigCache(ctx context.Context, appConfig appconfig.AppConfig) error
- func InitFileReadyPublisher(ctx context.Context, appConfig appconfig.AppConfig) error
- func InitReporters(ctx context.Context, appConfig appconfig.AppConfig) error
- func NewEventPublisher[T event.Identifiable](ctx context.Context, appConfig appconfig.AppConfig) (event.Publishers[T], error)
- func NewEventSubscriber[T event.Identifiable](ctx context.Context, appConfig appconfig.AppConfig) (event.Subscribable[T], error)
- func ParseFlags() error
- func RegisterAllSourcesAndDestinations(ctx context.Context, appConfig appconfig.AppConfig) (err error)
- func Serve(ctx context.Context, appConfig appconfig.AppConfig) (http.Handler, error)
- type FileStoreHealthCheck
- type InfoHandler
- type RegisterableHookHandler
- type RequestBody
- type Router
- type UploadInspector
- type UploadStatusInspector
- type VersionHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var Flags struct { AppConfigPath string // if override } // .flags
Functions ¶
func GetDataStore ¶
func GetUploadInfoHandler ¶
func InitConfigCache ¶
func InitFileReadyPublisher ¶
func NewEventPublisher ¶
func NewEventPublisher[T event.Identifiable](ctx context.Context, appConfig appconfig.AppConfig) (event.Publishers[T], error)
func NewEventSubscriber ¶
func NewEventSubscriber[T event.Identifiable](ctx context.Context, appConfig appconfig.AppConfig) (event.Subscribable[T], error)
func ParseFlags ¶
func ParseFlags() error
ParseFlags read cli flags into an Flags struct which is returned
Types ¶
type FileStoreHealthCheck ¶
type FileStoreHealthCheck struct {
// contains filtered or unexported fields
}
func (*FileStoreHealthCheck) Health ¶
func (c *FileStoreHealthCheck) Health(_ context.Context) (rsp models.ServiceHealthResp)
type InfoHandler ¶
type InfoHandler struct {
// contains filtered or unexported fields
}
func (*InfoHandler) ServeHTTP ¶
func (ih *InfoHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RegisterableHookHandler ¶
type RegisterableHookHandler interface { tusHooks.HookHandler Register(t tusHooks.HookType, hookFuncs ...prebuilthooks.HookHandlerFunc) }
func GetHookHandler ¶
func GetHookHandler(appConfig appconfig.AppConfig) (RegisterableHookHandler, error)
func PrebuiltHooks ¶
func PrebuiltHooks(validator metadata.SenderManifestVerification, appender metadata.Appender) (RegisterableHookHandler, error)
type RequestBody ¶
type UploadInspector ¶
type UploadStatusInspector ¶
type VersionHandler ¶
type VersionHandler struct{}
func (*VersionHandler) ServeHTTP ¶
func (vh *VersionHandler) ServeHTTP(rw http.ResponseWriter, _ *http.Request)
Click to show internal directories.
Click to hide internal directories.