Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultMaxBufferSize int64 = 1024 * 1024
)
View Source
const INDEX = "index.html"
Variables ¶
View Source
var ( ErrInvalidRequestParameter = NewError(int(reqParamErr), "Invalid request parameter", "") ErrInvalidRequestBody = NewError(int(reqBodyErr), "Invalid request body", "") )
Functions ¶
func New ¶
New is *gin.Engine
Endpoints base is `/api/v1/`
• /permissions
• /roles
• /organizations
• /users
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, obj protoiface.MessageV1) error
Types ¶
type Error ¶
type JSON ¶
type JSON struct {
Data protoiface.MessageV1
}
func (JSON) WriteContentType ¶
func (r JSON) WriteContentType(w http.ResponseWriter)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.