Documentation ¶
Index ¶
Constants ¶
View Source
const ParamId = "tokenId"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenEntity ¶
type TokenEntity struct {
Name string `json:"name,omitempty" description:"token name" validate:"max=256"`
}
type TokenService ¶
type TokenService struct {
*services.BaseService
}
func New ¶
func New(base *services.BaseService) *TokenService
func (*TokenService) Register ¶
func (s *TokenService) Register(container *restful.Container)
func (*TokenService) TakeToken ¶
func (s *TokenService) TakeToken(fn func(*restful.Request, *restful.Response, *token.Token)) restful.RouteFunction
Click to show internal directories.
Click to hide internal directories.