Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CherryServer ¶
type CherryServer struct { Store store.DataStore ErrorHandler }
CherryServer a handler creator for an http server
func (*CherryServer) CreateHandler ¶
func (c *CherryServer) CreateHandler() http.Handler
CreateHandler create an http.Handler
type ErrorHandler ¶
type ErrorHandler interface {
Error(error)
}
ErrorHandler a handler for errors that can choose to exit or not if it wants, it can exit entirely
Click to show internal directories.
Click to hide internal directories.