Documentation ¶
Index ¶
- Constants
- func CatchAll(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func CreateMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func CreateOrUpdateChat(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func CreateOrUpdateClient(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func CreateOrUpdateOperator(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func DeleteChat(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func DeleteClient(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func DeleteMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func DeleteOperator(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func NotImplemented(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadChat(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadChats(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadClient(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadClients(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadMessages(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadOperator(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func ReadOperators(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
- func UpdateMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
Constants ¶
View Source
const ( DEBUG string = "DEBUG" INFO string = "INFO" WARNING string = "WARN" ERROR string = "ERROR" FATAL string = "FATAL" )
Log levels
Variables ¶
This section is empty.
Functions ¶
func CatchAll ¶
func CatchAll(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/
func CreateMessage ¶
func CreateMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
POST / PUT /api/chat/:id/message
func CreateOrUpdateChat ¶
func CreateOrUpdateChat(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
POST / PUT / PATCH /api/chat/:id?
func CreateOrUpdateClient ¶
func CreateOrUpdateClient(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
POST / PUT / PATCH /api/chat/:id/message/:mid
func CreateOrUpdateOperator ¶
func CreateOrUpdateOperator(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
POST / PUT / PATCH /api/operator/:id?
func DeleteChat ¶
func DeleteChat(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
DELETE /api/chat/:id?
func DeleteClient ¶
func DeleteClient(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
DELETE /api/chat/:id/message/:mid
func DeleteMessage ¶
func DeleteMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
DELETE /api/chat/:id/message/:mid
func DeleteOperator ¶
func DeleteOperator(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
DELETE /api/operator/:id
func NotImplemented ¶
func NotImplemented(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
func ReadChat ¶
func ReadChat(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/chat/:id
func ReadChats ¶
func ReadChats(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/chats
func ReadClient ¶
func ReadClient(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/client/:id
func ReadClients ¶
func ReadClients(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/clients
func ReadMessage ¶
func ReadMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/chat/:id/message/:mid
func ReadMessages ¶
func ReadMessages(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/chat/:id/messages
func ReadOperator ¶
func ReadOperator(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/operator/:id
func ReadOperators ¶
func ReadOperators(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
GET /api/operators
func UpdateMessage ¶
func UpdateMessage(db *store.InMemory) func(resp http.ResponseWriter, req *http.Request, params httprouter.Params)
PATCH /api/chat/:id/message/:mid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.