Documentation
¶
Index ¶
- func ParseBody(r io.ReadCloser, data interface{}) goerr.IError
- func Send(writer http.ResponseWriter, response *Response)
- func SendError(writer http.ResponseWriter, e goerr.IError)
- func SendJson(writer http.ResponseWriter, httpCode int, data interface{})
- func SendOk(writer http.ResponseWriter, message interface{}, data interface{}, ...)
- type Dictionary
- type DictionaryRender
- type Pagination
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Send ¶ added in v1.0.3
func Send(writer http.ResponseWriter, response *Response)
func SendJson ¶ added in v1.0.3
func SendJson(writer http.ResponseWriter, httpCode int, data interface{})
func SendOk ¶ added in v1.0.3
func SendOk(writer http.ResponseWriter, message interface{}, data interface{}, pagination interface{})
Types ¶
type Dictionary ¶
func (*Dictionary) DictionaryIdsInterface ¶
func (d *Dictionary) DictionaryIdsInterface(dictionaryName string) (res []interface{}, e goerr.IError)
func (*Dictionary) DictionaryRender ¶
func (d *Dictionary) DictionaryRender(dictionaryName string, dictionaryId int) (res DictionaryRender, e goerr.IError)
func (*Dictionary) IsKeyExists ¶
func (d *Dictionary) IsKeyExists(key string) (res bool)
type DictionaryRender ¶
type Pagination ¶ added in v1.0.3
type Pagination struct {
Page int `json:"page,omitempty"`
Limit int `json:"limit,omitempty"`
Total int `json:"total,omitempty"`
}
Pagination
Click to show internal directories.
Click to hide internal directories.