Documentation ¶
Index ¶
- Constants
- func ApiHandler(request RequestMessage, response *ResponseMessage) error
- func BadRequest(c *gin.Context)
- func GinRun(ctx Context)
- func HttpHandler(c *gin.Context)
- func InternalServerError(c *gin.Context)
- func KafkaHandler(message RequestMessage)
- func KafkaRun()
- func NotFound(c *gin.Context)
- func ReadEntity(store string, key string) (string, error)
- func WriteEntity(store string, key string, value string) error
- type Context
- type Error
- type RequestMessage
- type ResponseMessage
Constants ¶
View Source
const ( Hello = "Hello! How are you?" Echo = "Please echo" Read = "Read from database" Write = "Write to database" )
MessageType.
Variables ¶
This section is empty.
Functions ¶
func ApiHandler ¶
func ApiHandler(request RequestMessage, response *ResponseMessage) error
ApiHandler handles a "nested call" API.
func BadRequest ¶
func HttpHandler ¶
func InternalServerError ¶
func KafkaHandler ¶
func KafkaHandler(message RequestMessage)
func ReadEntity ¶
ReadEntity returns value of key from some data store.
Types ¶
type RequestMessage ¶
type ResponseMessage ¶
Click to show internal directories.
Click to hide internal directories.