apiToken

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ApiTokenRestHandler

type ApiTokenRestHandler interface {
	GetAllApiTokens(w http.ResponseWriter, r *http.Request)
	CreateApiToken(w http.ResponseWriter, r *http.Request)
	UpdateApiToken(w http.ResponseWriter, r *http.Request)
	DeleteApiToken(w http.ResponseWriter, r *http.Request)
}

type ApiTokenRestHandlerImpl

type ApiTokenRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewApiTokenRestHandlerImpl

func NewApiTokenRestHandlerImpl(logger *zap.SugaredLogger, apiTokenService apiToken.ApiTokenService, userService user.UserService,
	enforcer casbin.Enforcer, validator *validator.Validate) *ApiTokenRestHandlerImpl

func (ApiTokenRestHandlerImpl) CreateApiToken

func (impl ApiTokenRestHandlerImpl) CreateApiToken(w http.ResponseWriter, r *http.Request)

func (ApiTokenRestHandlerImpl) DeleteApiToken

func (impl ApiTokenRestHandlerImpl) DeleteApiToken(w http.ResponseWriter, r *http.Request)

func (ApiTokenRestHandlerImpl) GetAllApiTokens

func (impl ApiTokenRestHandlerImpl) GetAllApiTokens(w http.ResponseWriter, r *http.Request)

func (ApiTokenRestHandlerImpl) UpdateApiToken

func (impl ApiTokenRestHandlerImpl) UpdateApiToken(w http.ResponseWriter, r *http.Request)

type ApiTokenRouter

type ApiTokenRouter interface {
	InitApiTokenRouter(configRouter *mux.Router)
}

type ApiTokenRouterImpl

type ApiTokenRouterImpl struct {
	// contains filtered or unexported fields
}

func NewApiTokenRouterImpl

func NewApiTokenRouterImpl(apiTokenRestHandler ApiTokenRestHandler) *ApiTokenRouterImpl

func (ApiTokenRouterImpl) InitApiTokenRouter

func (impl ApiTokenRouterImpl) InitApiTokenRouter(configRouter *mux.Router)

Jump to

Keyboard shortcuts

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