handle

package
v0.0.0-...-8ef0ebb Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AclAPI

type AclAPI struct {
	Acl *acl.Module `inject:""`
}

func (*AclAPI) GetRules

func (di *AclAPI) GetRules(c *gin.Context)

type ErrorAPI

type ErrorAPI struct {
	ErrorService *raven.Client `inject:""`
}

func (*ErrorAPI) Recover

func (di *ErrorAPI) Recover()

type GamingAPI

type GamingAPI struct {
	Gaming *gaming.Module `inject:""`
}

func (*GamingAPI) GetRules

func (di *GamingAPI) GetRules(c *gin.Context)

Get gamification rules (roles, badges)

type MiddlewareAPI

type MiddlewareAPI struct {
	ErrorService  *raven.Client    `inject:""`
	ConfigService *config.Config   `inject:""`
	Acl           *acl.Module      `inject:""`
	Logger        *logging.Logger  `inject:""`
	Security      *security.Module `inject:""`
}

func (*MiddlewareAPI) Authorization

func (di *MiddlewareAPI) Authorization() gin.HandlerFunc

func (*MiddlewareAPI) CORS

func (di *MiddlewareAPI) CORS() gin.HandlerFunc

func (*MiddlewareAPI) ErrorTracking

func (di *MiddlewareAPI) ErrorTracking(debug bool) gin.HandlerFunc

func (*MiddlewareAPI) MongoRefresher

func (di *MiddlewareAPI) MongoRefresher() gin.HandlerFunc

func (*MiddlewareAPI) NeedAclAuthorization

func (di *MiddlewareAPI) NeedAclAuthorization(permission string) gin.HandlerFunc

func (*MiddlewareAPI) NeedAuthorization

func (di *MiddlewareAPI) NeedAuthorization() gin.HandlerFunc

func (*MiddlewareAPI) TrustIP

func (di *MiddlewareAPI) TrustIP() gin.HandlerFunc

Allow to block all requests from insecure IP addresses.

func (*MiddlewareAPI) ValidateBsonID

func (di *MiddlewareAPI) ValidateBsonID(name string) gin.HandlerFunc

type PostAPI

type PostAPI struct {
	CacheService  *goredis.Redis               `inject:""`
	Feed          *feed.FeedModule             `inject:""`
	Errors        *exceptions.ExceptionsModule `inject:""`
	S3Bucket      *s3.Bucket                   `inject:""`
	Gaming        *gaming.Module               `inject:""`
	ConfigService *config.Config               `inject:""`
	Acl           *acl.Module                  `inject:""`
}

func (PostAPI) FeedGet

func (di PostAPI) FeedGet(c *gin.Context)

func (PostAPI) PostDelete

func (di PostAPI) PostDelete(c *gin.Context)

func (PostAPI) PostUploadAttachment

func (di PostAPI) PostUploadAttachment(c *gin.Context)

type UserAPI

type UserAPI struct {
	Errors        *exceptions.ExceptionsModule `inject:""`
	CacheService  *goredis.Redis               `inject:""`
	ConfigService *config.Config               `inject:""`
	S3Bucket      *s3.Bucket                   `inject:""`
	User          *user.Module                 `inject:""`
	Content       *content.Module              `inject:""`
	Gaming        *gaming.Module               `inject:""`
	Acl           *acl.Module                  `inject:""`
	Security      *security.Module             `inject:""`
}

func (*UserAPI) UserAutocompleteGet

func (di *UserAPI) UserAutocompleteGet(c *gin.Context)

func (*UserAPI) UserCategorySubscribe

func (di *UserAPI) UserCategorySubscribe(c *gin.Context)

func (*UserAPI) UserCategoryUnsubscribe

func (di *UserAPI) UserCategoryUnsubscribe(c *gin.Context)

func (*UserAPI) UserGetActivity

func (di *UserAPI) UserGetActivity(c *gin.Context)

func (*UserAPI) UserGetByToken

func (di *UserAPI) UserGetByToken(c *gin.Context)

func (UserAPI) UserGetJwtToken

func (di UserAPI) UserGetJwtToken(c *gin.Context)

func (*UserAPI) UserGetOne

func (di *UserAPI) UserGetOne(c *gin.Context)

func (*UserAPI) UserRegisterAction

func (di *UserAPI) UserRegisterAction(c *gin.Context)

func (*UserAPI) UserUpdateProfile

func (di *UserAPI) UserUpdateProfile(c *gin.Context)

func (*UserAPI) UserUpdateProfileAvatar

func (di *UserAPI) UserUpdateProfileAvatar(c *gin.Context)

func (*UserAPI) UserValidateEmail

func (di *UserAPI) UserValidateEmail(c *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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