Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForbidden = common.NewError("forbidden", "forbidden content access")
View Source
var ErrInvalidAddress = common.NewError("invalid_address", "address is required")
View Source
var ErrInvalidPlanId = common.NewError("invalid_plan_id", "plan id is required")
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
HttpServer is a HTTP server that listens for incoming REST requests and routes them to the appropriate command and query handlers.
func NewHttpServer ¶
func NewHttpServer(a *app.Application) *HttpServer
NewHttpServer creates a new HTTP server
func (*HttpServer) Start ¶
func (s *HttpServer) Start(addr string) error
Start starts the HTTP server
func (*HttpServer) WithLogger ¶
func (s *HttpServer) WithLogger(logger zerolog.Logger)
WithLogger sets the logger for the server
Click to show internal directories.
Click to hide internal directories.