Documentation ¶
Overview ¶
Package server holds the structs and methods containing the logic to spin up the api server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LifeCycleHook ¶
type LifeCycleHook struct {
// contains filtered or unexported fields
}
LifeCycleHook can be used to add custom functions in the server lifecycle
func NewLifeCycleHook ¶
func NewLifeCycleHook(initFunc func(), deferFunc func()) *LifeCycleHook
NewLifeCycleHook takes an initFunc and a deferFunc as arguments and returns a new LifeCycleHook
type Options ¶ added in v0.2.0
type Options struct { Handler http.Handler Port int LifeCycleHook *LifeCycleHook }
Options represents the Server options
Click to show internal directories.
Click to hide internal directories.