auth

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserLogin

type UserLogin struct {
	Context *middleware.Context
	Handler UserLoginHandler
}

UserLogin swagger:route POST /login auth userLogin

Log the user

User login

func NewUserLogin

func NewUserLogin(ctx *middleware.Context, handler UserLoginHandler) *UserLogin

NewUserLogin creates a new http.Handler for the user login operation

func (*UserLogin) ServeHTTP

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

type UserLoginDefault

type UserLoginDefault struct {

	// In: body
	Payload *models.GenericError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UserLoginDefault Error

swagger:response userLoginDefault

func NewUserLoginDefault

func NewUserLoginDefault(code int) *UserLoginDefault

NewUserLoginDefault creates UserLoginDefault with default headers values

func (*UserLoginDefault) SetPayload

func (o *UserLoginDefault) SetPayload(payload *models.GenericError)

SetPayload sets the payload to the user login default response

func (*UserLoginDefault) SetStatusCode

func (o *UserLoginDefault) SetStatusCode(code int)

SetStatusCode sets the status to the user login default response

func (*UserLoginDefault) WithPayload

func (o *UserLoginDefault) WithPayload(payload *models.GenericError) *UserLoginDefault

WithPayload adds the payload to the user login default response

func (*UserLoginDefault) WithStatusCode

func (o *UserLoginDefault) WithStatusCode(code int) *UserLoginDefault

WithStatusCode adds the status to the user login default response

func (*UserLoginDefault) WriteResponse

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

WriteResponse to the client

type UserLoginForbidden

type UserLoginForbidden struct {

	// In: body
	Payload *models.Forbidden `json:"body,omitempty"`
}

UserLoginForbidden Forbidden

swagger:response userLoginForbidden

func NewUserLoginForbidden

func NewUserLoginForbidden() *UserLoginForbidden

NewUserLoginForbidden creates UserLoginForbidden with default headers values

func (*UserLoginForbidden) SetPayload

func (o *UserLoginForbidden) SetPayload(payload *models.Forbidden)

SetPayload sets the payload to the user login forbidden response

func (*UserLoginForbidden) WithPayload

func (o *UserLoginForbidden) WithPayload(payload *models.Forbidden) *UserLoginForbidden

WithPayload adds the payload to the user login forbidden response

func (*UserLoginForbidden) WriteResponse

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

WriteResponse to the client

type UserLoginHandler

type UserLoginHandler interface {
	Handle(UserLoginParams) middleware.Responder
}

UserLoginHandler interface for that can handle valid user login params

type UserLoginHandlerFunc

type UserLoginHandlerFunc func(UserLoginParams) middleware.Responder

UserLoginHandlerFunc turns a function with the right signature into a user login handler

func (UserLoginHandlerFunc) Handle

Handle executing the request and returning a response

type UserLoginOK

type UserLoginOK struct {

	// In: body
	Payload *models.LoginToken `json:"body,omitempty"`
}

UserLoginOK Login token

swagger:response userLoginOK

func NewUserLoginOK

func NewUserLoginOK() *UserLoginOK

NewUserLoginOK creates UserLoginOK with default headers values

func (*UserLoginOK) SetPayload

func (o *UserLoginOK) SetPayload(payload *models.LoginToken)

SetPayload sets the payload to the user login o k response

func (*UserLoginOK) WithPayload

func (o *UserLoginOK) WithPayload(payload *models.LoginToken) *UserLoginOK

WithPayload adds the payload to the user login o k response

func (*UserLoginOK) WriteResponse

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

WriteResponse to the client

type UserLoginParams

type UserLoginParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: body
	*/
	Body *models.Login
}

UserLoginParams contains all the bound params for the user login operation typically these are obtained from a http.Request

swagger:parameters userLogin

func NewUserLoginParams

func NewUserLoginParams() UserLoginParams

NewUserLoginParams creates a new UserLoginParams object with the default values initialized.

func (*UserLoginParams) BindRequest

func (o *UserLoginParams) 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 UserLoginUnauthorized

type UserLoginUnauthorized struct {

	// In: body
	Payload *models.Forbidden `json:"body,omitempty"`
}

UserLoginUnauthorized Unauthorized

swagger:response userLoginUnauthorized

func NewUserLoginUnauthorized

func NewUserLoginUnauthorized() *UserLoginUnauthorized

NewUserLoginUnauthorized creates UserLoginUnauthorized with default headers values

func (*UserLoginUnauthorized) SetPayload

func (o *UserLoginUnauthorized) SetPayload(payload *models.Forbidden)

SetPayload sets the payload to the user login unauthorized response

func (*UserLoginUnauthorized) WithPayload

func (o *UserLoginUnauthorized) WithPayload(payload *models.Forbidden) *UserLoginUnauthorized

WithPayload adds the payload to the user login unauthorized response

func (*UserLoginUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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