Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntFromString ¶
func IntFromString(writer http.ResponseWriter, v string) (int, error)
func WriteError ¶
func WriteError(writer http.ResponseWriter, err error)
func WriteResponse ¶
func WriteResponse(writer http.ResponseWriter, response Response)
Types ¶
type EventHandler ¶
type EventHandler interface { Get(w http.ResponseWriter, r *http.Request) List(w http.ResponseWriter, r *http.Request) Create(w http.ResponseWriter, r *http.Request) Update(w http.ResponseWriter, r *http.Request) Cancel(w http.ResponseWriter, r *http.Request) Reschedule(w http.ResponseWriter, r *http.Request) Delete(w http.ResponseWriter, r *http.Request) }
EventHandler defines the contract for all the handlers.
func NewEventHandler ¶
func NewEventHandler(store store.EventStore) EventHandler
NewEventHandler creates and returns a new EventHandler.
Click to show internal directories.
Click to hide internal directories.