Documentation ¶
Index ¶
- Variables
- func HealthMiddleware(next http.Handler) http.Handler
- func OptionsMiddleware(h http.Handler) http.Handler
- func RequestSizeLimitMiddleware(limit int64) func(http.Handler) http.Handler
- type BodyEncoding
- type Router
- func (r *Router) AddBundlerRoutes(cr *chi.Mux, useropq *queue.Service) *chi.Mux
- func (r *Router) AddIndexerRoutes(cr *chi.Mux, b *bucket.Bucket) *chi.Mux
- func (r *Router) AddMiddleware(cr *chi.Mux) *chi.Mux
- func (r *Router) CreateBaseRouter() *chi.Mux
- func (r *Router) Start(port int, handler http.Handler) error
- func (r *Router) StartTLS(certpath string, handler http.Handler) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MAGIC_VALUE = [4]byte{0x16, 0x26, 0xba, 0x7e}
)
Functions ¶
func HealthMiddleware ¶
HealthMiddleware is a middleware that responds to health checks
func OptionsMiddleware ¶
OptionsMiddleware ensures that we return the correct headers for CORS requests
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) AddBundlerRoutes ¶
func (*Router) AddIndexerRoutes ¶
func (*Router) AddMiddleware ¶
func (r *Router) AddMiddleware(cr *chi.Mux) *chi.Mux
func (*Router) CreateBaseRouter ¶
func (r *Router) CreateBaseRouter() *chi.Mux
Click to show internal directories.
Click to hide internal directories.