Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIDefinition ¶
APIDefinition is used to control lifecycle of the API
type HealthChecker ¶
HealthChecker is used to run a custom health check Implement it on your API if you want it to be checked when the healthcheck is called
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles the setup and shutdown of the http server for an API
func New ¶
func New(log logrus.FieldLogger, projectName string, config Config, api APIDefinition) (*Server, error)
func (*Server) ListenAndServe ¶
func (*Server) TestServer ¶
Click to show internal directories.
Click to hide internal directories.