Documentation
¶
Index ¶
- Constants
- Variables
- func ActiveUserID(c echo.Context, ctx *gruff.ServerContext) string
- func AddContext(c echo.Context) error
- func AddError(ctx *gruff.ServerContext, c echo.Context, errGruff gruff.Error) error
- func AddNotFoundError(c echo.Context, payload map[string]interface{}, code int, message string) error
- func AddPayloadError(c echo.Context, payload map[string]interface{}, code int, message string) error
- func AddPayloadWarning(c echo.Context, payload map[string]interface{}, code int, message string) error
- func AddPermissionError(c echo.Context, payload map[string]interface{}, code int, message string) error
- func AddPremise(c echo.Context) error
- func AddServerError(c echo.Context, payload map[string]interface{}, code int, message string) error
- func AddUnauthorizedError(c echo.Context, payload map[string]interface{}, code int, message string) error
- func AssociationFieldNameFromPath(c echo.Context) string
- func ChangePassword(c echo.Context) error
- func ConvertClaimToMultiPremise(c echo.Context) error
- func Create(c echo.Context) error
- func DBMiddleware(db arango.Database) echo.MiddlewareFunc
- func Delete(c echo.Context) error
- func DetermineType(next echo.HandlerFunc) echo.HandlerFunc
- func Get(c echo.Context) error
- func GetListParametersFromRequest(c echo.Context) gruff.ArangoQueryParameters
- func GetMe(c echo.Context) error
- func Home(c echo.Context) error
- func InitializePayload(next echo.HandlerFunc) echo.HandlerFunc
- func Links(c echo.Context) error
- func List(c echo.Context) error
- func ListClaims(which string) func(c echo.Context) error
- func ListParentArguments(c echo.Context) error
- func MoveArgument(c echo.Context) error
- func PathParts(path string) []string
- func ReferrerPolicy(p string) securityMiddlewareOption
- func RemoveContext(c echo.Context) error
- func RemovePremise(c echo.Context) error
- func SearchContext(c echo.Context) error
- func SearchContexts(c echo.Context) error
- func Secure(headers ...securityMiddlewareOption) echo.MiddlewareFunc
- func ServerContext(c echo.Context) *gruff.ServerContext
- func Session(next echo.HandlerFunc) echo.HandlerFunc
- func SetScore(c echo.Context) error
- func SetUpRouter(mc MiddlewareConfigurer) *echo.Echo
- func SettingHeaders(test bool) echo.MiddlewareFunc
- func SignIn(c echo.Context) error
- func SignUp(c echo.Context) error
- func StringToType(typeName string) (t reflect.Type)
- func TokenForUser(user gruff.User) (string, error)
- func Update(c echo.Context) error
- func UpdateMe(c echo.Context) error
- type MiddlewareConfigurer
- type ProductionMiddlewareConfigurer
Constants ¶
View Source
const (
HeaderReferrerPolicy = "Referrer-Policy"
)
Variables ¶
View Source
var ARANGODB_CLIENT arango.Client
View Source
var ARANGODB_POOL arango.Database
Functions ¶
func ActiveUserID ¶
func ActiveUserID(c echo.Context, ctx *gruff.ServerContext) string
func AddContext ¶
func AddNotFoundError ¶
func AddPayloadError ¶
func AddPayloadWarning ¶
func AddPermissionError ¶
func AddPremise ¶
func AddServerError ¶
func AddUnauthorizedError ¶
func ChangePassword ¶
func DBMiddleware ¶
func DBMiddleware(db arango.Database) echo.MiddlewareFunc
func DetermineType ¶
func DetermineType(next echo.HandlerFunc) echo.HandlerFunc
func GetListParametersFromRequest ¶
func GetListParametersFromRequest(c echo.Context) gruff.ArangoQueryParameters
TODO: GetQueryDateFromRequest
func InitializePayload ¶
func InitializePayload(next echo.HandlerFunc) echo.HandlerFunc
func ListParentArguments ¶
func MoveArgument ¶
func ReferrerPolicy ¶
func ReferrerPolicy(p string) securityMiddlewareOption
func RemoveContext ¶
func RemovePremise ¶
func SearchContext ¶
func SearchContexts ¶
func Secure ¶
func Secure(headers ...securityMiddlewareOption) echo.MiddlewareFunc
func ServerContext ¶
func ServerContext(c echo.Context) *gruff.ServerContext
func Session ¶
func Session(next echo.HandlerFunc) echo.HandlerFunc
func SetUpRouter ¶
func SetUpRouter(mc MiddlewareConfigurer) *echo.Echo
func SettingHeaders ¶
func SettingHeaders(test bool) echo.MiddlewareFunc
func StringToType ¶
Types ¶
type MiddlewareConfigurer ¶
type ProductionMiddlewareConfigurer ¶
type ProductionMiddlewareConfigurer struct{}
func (ProductionMiddlewareConfigurer) ConfigureDefaultApiMiddleware ¶
func (mc ProductionMiddlewareConfigurer) ConfigureDefaultApiMiddleware(root *echo.Echo) *echo.Echo
func (ProductionMiddlewareConfigurer) ConfigurePrivateApiMiddleware ¶
func (mc ProductionMiddlewareConfigurer) ConfigurePrivateApiMiddleware(root *echo.Echo) *echo.Group
func (ProductionMiddlewareConfigurer) ConfigurePublicApiMiddleware ¶
func (mc ProductionMiddlewareConfigurer) ConfigurePublicApiMiddleware(root *echo.Echo) *echo.Group
Click to show internal directories.
Click to hide internal directories.