Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
HttpServer is Motion API the HTTP server.
func NewHttpServer ¶
func NewHttpServer(store blob.Store, o ...Option) (*HttpServer, error)
NewHttpServer instantiates a new HTTP server that stores and retrieves blobs via the given store. See Option.
func (*HttpServer) ServeMux ¶
func (m *HttpServer) ServeMux() *http.ServeMux
ServeMux returns a new HTTP handler for the endpoints supported by the server.
type Option ¶
type Option func(*options) error
Option is a configurable parameter in HttpServer.
func WithHttpListenAddr ¶
WithHttpListenAddr sets the HTTP server listen address. Defaults to 0.0.0.0:40080 if unspecified.
func WithMaxBlobLength ¶
WithMaxBlobLength sets the maximum blob length accepted by the HTTP blob upload API. Defaults to 31 GiB.
Click to show internal directories.
Click to hide internal directories.