Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interactor ¶
type Interactor interface { SearchUsers(ctx context.Context, opts *i.SearchUsersOptions) ([]*ent.User, error) FindUserByID(ctx context.Context, id int64) (*ent.User, error) GetRateLimit(ctx context.Context, u *ent.User) (*extent.RateLimit, error) UpdateUser(ctx context.Context, u *ent.User) (*ent.User, error) DeleteUser(ctx context.Context, u *ent.User) error }
type UserAPI ¶
type UserAPI struct {
// contains filtered or unexported fields
}
func NewUserAPI ¶
func NewUserAPI(i Interactor) *UserAPI
func (*UserAPI) GetRateLimit ¶
type UserMiddleware ¶
type UserMiddleware struct{}
func NewUserMiddleware ¶
func NewUserMiddleware() *UserMiddleware
func (*UserMiddleware) AdminOnly ¶
func (m *UserMiddleware) AdminOnly() gin.HandlerFunc
Source Files ¶
Click to show internal directories.
Click to hide internal directories.