Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ctx ¶
type Ctx interface { Param(key string) string String(code int, format string, values ...interface{}) JSON(code int, obj interface{}) }
Ctx interface is an abstraction of gin.Context. This interface makes mocking on unit testing easier
type MessageController ¶
type MessageController interface {
Get(c Ctx)
}
func NewMessageController ¶
func NewMessageController(srv message.Service) MessageController
NewMessageController creates a new instance of messageCtrl
Click to show internal directories.
Click to hide internal directories.