token

package
v0.0.0-...-c937b9e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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