users

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 11 Imported by: 0

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) Delete

func (u *UserAPI) Delete(c *gin.Context)

func (*UserAPI) GetMe

func (u *UserAPI) GetMe(c *gin.Context)

func (*UserAPI) GetRateLimit

func (u *UserAPI) GetRateLimit(c *gin.Context)

func (*UserAPI) List

func (u *UserAPI) List(c *gin.Context)

func (*UserAPI) Update

func (u *UserAPI) Update(c *gin.Context)

type UserMiddleware

type UserMiddleware struct{}

func NewUserMiddleware

func NewUserMiddleware() *UserMiddleware

func (*UserMiddleware) AdminOnly

func (m *UserMiddleware) AdminOnly() gin.HandlerFunc

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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