Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter interface { Start() error Stop(reason error) error Status() Status WriteLog(io.Writer) ServeHTTP(w http.ResponseWriter, r *http.Request) }
Adapter defines the interface for an Adapter implementation
type Status ¶
type Status string
Status defines the possible states of the adapter
const ( // StatusStarting is the initial state of the adapter StatusStarting Status = "starting" // StatusRunning is the successful running state of the adapter StatusRunning Status = "running" // StatusStopping is the state when an adapter is stopping StatusStopping Status = "stopping" // StatusStopped is the state when an adapter has been stopped StatusStopped Status = "stopped" // StatusError is the state when an error has occurred StatusError Status = "error" )
Click to show internal directories.
Click to hide internal directories.