Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var AppRespErrors appErrorsStruct
    AppRespErrors variable
Functions ¶
func BuildAppErrors ¶
func BuildAppErrors()
BuildAppErrors builds all the error messages that the app
func InitMetaHandlers ¶
InitMetaHandlers starts the meta api handlers
func OpenRouteHandler ¶
OpenRouteHandler is utilised for unprotected routes (non-JWT)
Types ¶
type Response ¶
type Response struct {
	Data   interface{} `json:"data,omitempty"`
	Meta   interface{} `json:"meta,omitempty"`
	Errors []errorCode `json:"errors,omitempty"`
}
    Response is the generic resp that will be used for the api
func (*Response) Send ¶
func (i *Response) Send(w http.ResponseWriter)
Send marshal the response and write value
 Click to show internal directories. 
   Click to hide internal directories.