router

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(next http.Handler) http.Handler

func Serve

func Serve(router Router, replSvc replication.Service) *http.ServeMux

Types

type Router

type Router interface {
	Route(r *http.Request) (resp *http.Response, task []tasks.SyncTask, storage string, isApiErr bool, err error)
}

func NewRouter

func NewRouter(
	clients s3client.Service,
	taskClient *asynq.Client,
	versionSvc meta.VersionService,
	policySvc policy.Service,
	storageSvc storage.Service,
	limit ratelimit.RPM) Router

Jump to

Keyboard shortcuts

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