Documentation
¶
Overview ¶
Package httpserver provides a simple HTTP server that serves the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCHTTPHandlerRegister ¶
GRPCHTTPHandlerRegister is a function that registers the grpc-gateway handlers
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer is the http server implementation
func NewHTTPServer ¶
func NewHTTPServer(ctx context.Context, opts ...Opt) *HTTPServer
NewHTTPServer creates a new HTTPServer
type Opt ¶
type Opt func(*HTTPServer)
Opt is a functional option for HttpServer
func WithClient ¶
func WithClient(conn *grpc.ClientConn) Opt
WithClient sets the grpc client for the HTTPServer
func WithLogger ¶
WithLogger sets the logger for the HTTPServer
func WithRegisters ¶
func WithRegisters(registers ...GRPCHTTPHandlerRegister) Opt
WithRegisters sets the http handlers for the HTTPServer
func WithServer ¶
WithServer sets the http server for the HTTPServer
Click to show internal directories.
Click to hide internal directories.