Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeQueryParams ¶
Types ¶
type Application ¶
type Application struct {
*core.Application
}
Application API application.
func New ¶
func New( logger log.Logger, params core.Params, db *sqlex.DB, sessionManager *scs.SessionManager, userManager *UserManager, mailer *mail.Dialer, accessManager *access.Manager, ) *Application
func NewApplication ¶
func NewApplication(app *core.Application) *Application
NewApplication returns API application.
type AuthzMiddleware ¶
type AuthzMiddleware clevergo.MiddlewareFunc
func NewAuthzMiddleware ¶
func NewAuthzMiddleware(enforcer *casbin.Enforcer, userManager *UserManager) AuthzMiddleware
type ErrorHandler ¶
type ErrorHandler struct {
}
func NewErrorHandler ¶
func NewErrorHandler() *ErrorHandler
type QueryParams ¶
func (QueryParams) OrderBy ¶
func (qp QueryParams) OrderBy() string
func (QueryParams) Validate ¶
func (qp QueryParams) Validate() error
type UserManager ¶
func NewUserManager ¶
func NewUserManager(identityStore auth.IdentityStore) *UserManager
Click to show internal directories.
Click to hide internal directories.