api

package
v0.0.0-...-1c99545 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderReferrerPolicy = "Referrer-Policy"
)

Variables

View Source
var RW_DB_POOL *gorm.DB

Functions

func AddAssociation

func AddAssociation(c echo.Context) error

func AddGruffError

func AddGruffError(ctx *gruff.ServerContext, c echo.Context, errGruff gruff.GruffError) error

func AddNotFoundError

func AddNotFoundError(c echo.Context, payload map[string]interface{}, code int, message string) error

func AddPayloadError

func AddPayloadError(c echo.Context, payload map[string]interface{}, code int, message string) error

func AddPayloadWarning

func AddPayloadWarning(c echo.Context, payload map[string]interface{}, code int, message string) error

func AddPermissionError

func AddPermissionError(c echo.Context, payload map[string]interface{}, code int, message string) error

func AddServerError

func AddServerError(c echo.Context, payload map[string]interface{}, code int, message string) error

func AssociationFieldNameFromPath

func AssociationFieldNameFromPath(c echo.Context) string

func BasicFetch

func BasicFetch(ctx *gruff.ServerContext, c echo.Context, db *gorm.DB, uid int) *gorm.DB

func BasicJoins

func BasicJoins(ctx *gruff.ServerContext, c echo.Context, db *gorm.DB) *gorm.DB

func BasicPaging

func BasicPaging(ctx *gruff.ServerContext, c echo.Context, db *gorm.DB, opts ...bool) *gorm.DB

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 ChangePassword(c echo.Context) error

func Contexts

func Contexts(c echo.Context) error

func Create

func Create(c echo.Context) error

func CreateArgument

func CreateArgument(c echo.Context) error

func DBMiddleware

func DBMiddleware(db *gorm.DB) echo.MiddlewareFunc

func Delete

func Delete(c echo.Context) error

func Destroy

func Destroy(c echo.Context) error

func DetermineType

func DetermineType(next echo.HandlerFunc) echo.HandlerFunc

func Get

func Get(c echo.Context) error

func GetArgument

func GetArgument(c echo.Context) error

func GetClaim

func GetClaim(c echo.Context) error

func Home

func Home(c echo.Context) error

func InitializePayload

func InitializePayload(next echo.HandlerFunc) echo.HandlerFunc
func Links(c echo.Context) error

func List

func List(c echo.Context) error

func ListNotifications

func ListNotifications(c echo.Context) error

func ListTopClaims

func ListTopClaims(c echo.Context) error

func MarkNotificationViewed

func MarkNotificationViewed(c echo.Context) error

func MoveArgument

func MoveArgument(c echo.Context) error

func PathParts

func PathParts(path string) []string

func QueryTotalCount

func QueryTotalCount(ctx *gruff.ServerContext, c echo.Context)

func ReferrerPolicy

func ReferrerPolicy(p string) securityMiddlewareOption

func RemoveAssociation

func RemoveAssociation(c echo.Context) error

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 SetScore

func SetScore(c echo.Context) error

func SetUpRouter

func SetUpRouter(test bool, db *gorm.DB) *echo.Echo

func SettingHeaders

func SettingHeaders(test bool) echo.MiddlewareFunc

func SignIn

func SignIn(c echo.Context) error

func SignUp

func SignUp(c echo.Context) error

func StringToType

func StringToType(typeName string) (t reflect.Type)

func Tags

func Tags(c echo.Context) error

func TokenForUser

func TokenForUser(user gruff.User) (string, error)

func Update

func Update(c echo.Context) error

func Values

func Values(c echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL