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 a Lassie server for fetching data from the network via HTTP
func NewHttpServer ¶
func NewHttpServer(ctx context.Context, lassie *lassie.Lassie, cfg HttpServerConfig) (*HttpServer, error)
NewHttpServer creates a new HttpServer
func (HttpServer) Addr ¶
func (s HttpServer) Addr() string
Addr returns the listening address of the server
func (*HttpServer) Close ¶
func (s *HttpServer) Close() error
Close shutsdown the server and cancels the server context
func (*HttpServer) Start ¶
func (s *HttpServer) Start() error
Start starts the http server, returning an error if the server failed to start
Click to show internal directories.
Click to hide internal directories.