Documentation ¶
Index ¶
- Constants
- Variables
- func AddAssociation(c echo.Context) error
- func AddGruffError(ctx *gruff.ServerContext, c echo.Context, errGruff gruff.GruffError) 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 AddServerError(c echo.Context, payload map[string]interface{}, code int, message string) error
- func AssociationFieldNameFromPath(c echo.Context) string
- func BasicFetch(ctx *gruff.ServerContext, c echo.Context, db *gorm.DB, uid int) *gorm.DB
- func BasicJoins(ctx *gruff.ServerContext, c echo.Context, db *gorm.DB) *gorm.DB
- func BasicPaging(ctx *gruff.ServerContext, c echo.Context, db *gorm.DB, opts ...bool) *gorm.DB
- func BasicValidationForCreate(ctx *gruff.ServerContext, c echo.Context, item interface{}) gruff.GruffError
- func BasicValidationForUpdate(ctx *gruff.ServerContext, c echo.Context, item interface{}) error
- func ChangePassword(c echo.Context) error
- func Contexts(c echo.Context) error
- func Create(c echo.Context) error
- func CreateArgument(c echo.Context) error
- func DBMiddleware(db *gorm.DB) echo.MiddlewareFunc
- func Delete(c echo.Context) error
- func Destroy(c echo.Context) error
- func DetermineType(next echo.HandlerFunc) echo.HandlerFunc
- func Get(c echo.Context) error
- func GetArgument(c echo.Context) error
- func GetClaim(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 ListNotifications(c echo.Context) error
- func ListTopClaims(c echo.Context) error
- func MarkNotificationViewed(c echo.Context) error
- func MoveArgument(c echo.Context) error
- func PathParts(path string) []string
- func QueryTotalCount(ctx *gruff.ServerContext, c echo.Context)
- func ReferrerPolicy(p string) securityMiddlewareOption
- func RemoveAssociation(c echo.Context) error
- func Secure(headers ...securityMiddlewareOption) echo.MiddlewareFunc
- func ServerContext(c echo.Context) *gruff.ServerContext
- func SessionUser(next echo.HandlerFunc) echo.HandlerFunc
- func SetScore(c echo.Context) error
- func SetUpRouter(test bool, db *gorm.DB) *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 Tags(c echo.Context) error
- func TokenForUser(user gruff.User) (string, error)
- func Update(c echo.Context) error
- func Values(c echo.Context) error
Constants ¶
View Source
const (
HeaderReferrerPolicy = "Referrer-Policy"
)
Variables ¶
View Source
var RW_DB_POOL *gorm.DB
Functions ¶
func AddAssociation ¶
func AddGruffError ¶
func AddGruffError(ctx *gruff.ServerContext, c echo.Context, errGruff gruff.GruffError) error
func AddNotFoundError ¶
func AddPayloadError ¶
func AddPayloadWarning ¶
func AddPermissionError ¶
func AddServerError ¶
func BasicFetch ¶
func BasicJoins ¶
func BasicPaging ¶
func BasicValidationForCreate ¶
func BasicValidationForCreate(ctx *gruff.ServerContext, c echo.Context, item interface{}) gruff.GruffError
func BasicValidationForUpdate ¶
func BasicValidationForUpdate(ctx *gruff.ServerContext, c echo.Context, item interface{}) error
func ChangePassword ¶
func CreateArgument ¶
func DBMiddleware ¶
func DBMiddleware(db *gorm.DB) echo.MiddlewareFunc
func DetermineType ¶
func DetermineType(next echo.HandlerFunc) echo.HandlerFunc
func GetArgument ¶
func InitializePayload ¶
func InitializePayload(next echo.HandlerFunc) echo.HandlerFunc
func ListNotifications ¶
func ListTopClaims ¶
func MarkNotificationViewed ¶
func MoveArgument ¶
func QueryTotalCount ¶
func QueryTotalCount(ctx *gruff.ServerContext, c echo.Context)
func ReferrerPolicy ¶
func ReferrerPolicy(p string) securityMiddlewareOption
func RemoveAssociation ¶
func Secure ¶
func Secure(headers ...securityMiddlewareOption) echo.MiddlewareFunc
func ServerContext ¶
func ServerContext(c echo.Context) *gruff.ServerContext
func SessionUser ¶
func SessionUser(next echo.HandlerFunc) echo.HandlerFunc
func SettingHeaders ¶
func SettingHeaders(test bool) echo.MiddlewareFunc
func StringToType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.