user

package
v0.0.0-...-cb8fef0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetTokensAccessTokenOKCode int = 200

GetTokensAccessTokenOKCode is the HTTP code returned for type GetTokensAccessTokenOK

View Source
const GetTokensOKCode int = 200

GetTokensOKCode is the HTTP code returned for type GetTokensOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTokens

type GetTokens struct {
	Context *middleware.Context
	Handler GetTokensHandler
}

GetTokens swagger:route GET /tokens User getTokens

アクセストークンとリフレッシュトークンを取得する

アクセストークンとリフレッシュトークンを取得する

ユーザ名/パスワードを渡すBASIC認証方式と 古いリフレッシュトークンを渡す更新方式がある

func NewGetTokens

func NewGetTokens(ctx *middleware.Context, handler GetTokensHandler) *GetTokens

NewGetTokens creates a new http.Handler for the get tokens operation

func (*GetTokens) ServeHTTP

func (o *GetTokens) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTokensAccessToken

type GetTokensAccessToken struct {
	Context *middleware.Context
	Handler GetTokensAccessTokenHandler
}

GetTokensAccessToken swagger:route GET /tokens/access_token User getTokensAccessToken

アクセストークンを取得する

リフレッシュトークンを用いてアクセストークンを取得する

func NewGetTokensAccessToken

func NewGetTokensAccessToken(ctx *middleware.Context, handler GetTokensAccessTokenHandler) *GetTokensAccessToken

NewGetTokensAccessToken creates a new http.Handler for the get tokens access token operation

func (*GetTokensAccessToken) ServeHTTP

func (o *GetTokensAccessToken) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTokensAccessTokenHandler

type GetTokensAccessTokenHandler interface {
	Handle(GetTokensAccessTokenParams, *models.Principal) middleware.Responder
}

GetTokensAccessTokenHandler interface for that can handle valid get tokens access token params

type GetTokensAccessTokenHandlerFunc

type GetTokensAccessTokenHandlerFunc func(GetTokensAccessTokenParams, *models.Principal) middleware.Responder

GetTokensAccessTokenHandlerFunc turns a function with the right signature into a get tokens access token handler

func (GetTokensAccessTokenHandlerFunc) Handle

Handle executing the request and returning a response

type GetTokensAccessTokenOK

type GetTokensAccessTokenOK struct {

	/*アクセストークン(JWT)
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetTokensAccessTokenOK アクセストークン

swagger:response getTokensAccessTokenOK

func NewGetTokensAccessTokenOK

func NewGetTokensAccessTokenOK() *GetTokensAccessTokenOK

NewGetTokensAccessTokenOK creates GetTokensAccessTokenOK with default headers values

func (*GetTokensAccessTokenOK) SetPayload

func (o *GetTokensAccessTokenOK) SetPayload(payload string)

SetPayload sets the payload to the get tokens access token o k response

func (*GetTokensAccessTokenOK) WithPayload

func (o *GetTokensAccessTokenOK) WithPayload(payload string) *GetTokensAccessTokenOK

WithPayload adds the payload to the get tokens access token o k response

func (*GetTokensAccessTokenOK) WriteResponse

func (o *GetTokensAccessTokenOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTokensAccessTokenParams

type GetTokensAccessTokenParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetTokensAccessTokenParams contains all the bound params for the get tokens access token operation typically these are obtained from a http.Request

swagger:parameters GetTokensAccessToken

func NewGetTokensAccessTokenParams

func NewGetTokensAccessTokenParams() GetTokensAccessTokenParams

NewGetTokensAccessTokenParams creates a new GetTokensAccessTokenParams object with the default values initialized.

func (*GetTokensAccessTokenParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetTokensAccessTokenURL

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

GetTokensAccessTokenURL generates an URL for the get tokens access token operation

func (*GetTokensAccessTokenURL) Build

func (o *GetTokensAccessTokenURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTokensAccessTokenURL) BuildFull

func (o *GetTokensAccessTokenURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTokensAccessTokenURL) Must

func (o *GetTokensAccessTokenURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTokensAccessTokenURL) SetBasePath

func (o *GetTokensAccessTokenURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTokensAccessTokenURL) String

func (o *GetTokensAccessTokenURL) String() string

String returns the string representation of the path with query string

func (*GetTokensAccessTokenURL) StringFull

func (o *GetTokensAccessTokenURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTokensAccessTokenURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetTokensHandler

type GetTokensHandler interface {
	Handle(GetTokensParams, *models.Principal) middleware.Responder
}

GetTokensHandler interface for that can handle valid get tokens params

type GetTokensHandlerFunc

type GetTokensHandlerFunc func(GetTokensParams, *models.Principal) middleware.Responder

GetTokensHandlerFunc turns a function with the right signature into a get tokens handler

func (GetTokensHandlerFunc) Handle

Handle executing the request and returning a response

type GetTokensOK

type GetTokensOK struct {

	/*
	  In: Body
	*/
	Payload GetTokensOKBody `json:"body,omitempty"`
}

GetTokensOK アクセストークンとリフレッシュトークン

swagger:response getTokensOK

func NewGetTokensOK

func NewGetTokensOK() *GetTokensOK

NewGetTokensOK creates GetTokensOK with default headers values

func (*GetTokensOK) SetPayload

func (o *GetTokensOK) SetPayload(payload GetTokensOKBody)

SetPayload sets the payload to the get tokens o k response

func (*GetTokensOK) WithPayload

func (o *GetTokensOK) WithPayload(payload GetTokensOKBody) *GetTokensOK

WithPayload adds the payload to the get tokens o k response

func (*GetTokensOK) WriteResponse

func (o *GetTokensOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTokensOKBody

type GetTokensOKBody struct {

	// アクセストークン(JWT)
	// Required: true
	AccessToken *string `json:"access_token"`

	// リフレッシュトークン(JWT)
	// Required: true
	RefreshToken *string `json:"refresh_token"`
}

GetTokensOKBody get tokens o k body swagger:model GetTokensOKBody

func (*GetTokensOKBody) Validate

func (o *GetTokensOKBody) Validate(formats strfmt.Registry) error

Validate validates this get tokens o k body

type GetTokensParams

type GetTokensParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetTokensParams contains all the bound params for the get tokens operation typically these are obtained from a http.Request

swagger:parameters GetTokens

func NewGetTokensParams

func NewGetTokensParams() GetTokensParams

NewGetTokensParams creates a new GetTokensParams object with the default values initialized.

func (*GetTokensParams) BindRequest

func (o *GetTokensParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetTokensURL

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

GetTokensURL generates an URL for the get tokens operation

func (*GetTokensURL) Build

func (o *GetTokensURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTokensURL) BuildFull

func (o *GetTokensURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTokensURL) Must

func (o *GetTokensURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTokensURL) SetBasePath

func (o *GetTokensURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTokensURL) String

func (o *GetTokensURL) String() string

String returns the string representation of the path with query string

func (*GetTokensURL) StringFull

func (o *GetTokensURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTokensURL) WithBasePath

func (o *GetTokensURL) WithBasePath(bp string) *GetTokensURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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