rest

package
v0.0.0-...-d766508 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2017 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL