Documentation ¶
Index ¶
- Constants
- Variables
- func Marshal(val interface{}) (data []byte, e goerr.IError)
- func ParseBody(r io.ReadCloser, data interface{}) goerr.IError
- func ParseBodyReturned(r io.ReadCloser, data interface{}) (body []byte, e 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{}, ...)
- func Unmarshal(data []byte, val interface{}) (e goerr.IError)
- func YamlMarshal(val interface{}) (data []byte, e goerr.IError)
- func YamlUnmarshal(data []byte, val interface{}) (e goerr.IError)
- type Dictionary
- func (d *Dictionary) DictionaryIdsInterface(dictionaryName string) (res []interface{}, e goerr.IError)
- func (d *Dictionary) DictionaryRender(dictionaryName string, dictionaryID int) (res DictionaryRender, e goerr.IError)
- func (d *Dictionary) IsKeyExists(key string) (res bool)
- func (d *Dictionary) Render() map[string]*[]DictionaryRender
- type DictionaryRender
- type Locale
- type Pagination
- type Response
Constants ¶
View Source
const ( ENi = 45 RUi = 643 ENLocale = Locale(ENi) RULocale = Locale(RUi) )
Variables ¶
View Source
var (
ErrDictionaryNotFound = errors.New("dictionary_not_found")
)
Functions ¶
func ParseBody ¶
func ParseBody(r io.ReadCloser, data interface{}) goerr.IError
func ParseBodyReturned ¶ added in v2.0.5
func ParseBodyReturned(r io.ReadCloser, data interface{}) (body []byte, e goerr.IError)
func Send ¶
func Send(writer http.ResponseWriter, response *Response)
func SendError ¶
func SendError(writer http.ResponseWriter, e goerr.IError)
func SendJSON ¶
func SendJSON(writer http.ResponseWriter, httpCode int, data interface{})
func SendOk ¶
func SendOk(writer http.ResponseWriter, message interface{}, data interface{}, pagination interface{})
func YamlMarshal ¶
func YamlMarshal(val interface{}) (data []byte, e goerr.IError)
func YamlUnmarshal ¶
func YamlUnmarshal(data []byte, val interface{}) (e goerr.IError)
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)
func (*Dictionary) Render ¶
func (d *Dictionary) Render() map[string]*[]DictionaryRender
type DictionaryRender ¶
type Pagination ¶
Click to show internal directories.
Click to hide internal directories.