Documentation ¶
Index ¶
- type AclAPI
- type ErrorAPI
- type GamingAPI
- type MiddlewareAPI
- func (di *MiddlewareAPI) Authorization() gin.HandlerFunc
- func (di *MiddlewareAPI) CORS() gin.HandlerFunc
- func (di *MiddlewareAPI) ErrorTracking(debug bool) gin.HandlerFunc
- func (di *MiddlewareAPI) MongoRefresher() gin.HandlerFunc
- func (di *MiddlewareAPI) NeedAclAuthorization(permission string) gin.HandlerFunc
- func (di *MiddlewareAPI) NeedAuthorization() gin.HandlerFunc
- func (di *MiddlewareAPI) TrustIP() gin.HandlerFunc
- func (di *MiddlewareAPI) ValidateBsonID(name string) gin.HandlerFunc
- type PostAPI
- type UserAPI
- func (di *UserAPI) UserAutocompleteGet(c *gin.Context)
- func (di *UserAPI) UserCategorySubscribe(c *gin.Context)
- func (di *UserAPI) UserCategoryUnsubscribe(c *gin.Context)
- func (di *UserAPI) UserGetActivity(c *gin.Context)
- func (di *UserAPI) UserGetByToken(c *gin.Context)
- func (di UserAPI) UserGetJwtToken(c *gin.Context)
- func (di *UserAPI) UserGetOne(c *gin.Context)
- func (di *UserAPI) UserRegisterAction(c *gin.Context)
- func (di *UserAPI) UserUpdateProfile(c *gin.Context)
- func (di *UserAPI) UserUpdateProfileAvatar(c *gin.Context)
- func (di *UserAPI) UserValidateEmail(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) PostDelete ¶
func (PostAPI) PostUploadAttachment ¶
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 (*UserAPI) UserCategorySubscribe ¶
func (*UserAPI) UserCategoryUnsubscribe ¶
func (*UserAPI) UserGetActivity ¶
func (*UserAPI) UserGetByToken ¶
func (UserAPI) UserGetJwtToken ¶
func (*UserAPI) UserGetOne ¶
func (*UserAPI) UserRegisterAction ¶
func (*UserAPI) UserUpdateProfile ¶
func (*UserAPI) UserUpdateProfileAvatar ¶
func (*UserAPI) UserValidateEmail ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.