account

package
v0.0.0-...-281c92d Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const SigninOKCode int = 200

SigninOKCode is the HTTP code returned for type SigninOK

View Source
const SignupCreatedCode int = 201

SignupCreatedCode is the HTTP code returned for type SignupCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type Signin

type Signin struct {
	Context *middleware.Context
	Handler SigninHandler
}

Signin swagger:route POST /signin account signin

Signin signin API

func NewSignin

func NewSignin(ctx *middleware.Context, handler SigninHandler) *Signin

NewSignin creates a new http.Handler for the signin operation

func (*Signin) ServeHTTP

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

type SigninDefault

type SigninDefault struct {

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

SigninDefault unexpected error

swagger:response signinDefault

func NewSigninDefault

func NewSigninDefault(code int) *SigninDefault

NewSigninDefault creates SigninDefault with default headers values

func (*SigninDefault) SetPayload

func (o *SigninDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the signin default response

func (*SigninDefault) SetStatusCode

func (o *SigninDefault) SetStatusCode(code int)

SetStatusCode sets the status to the signin default response

func (*SigninDefault) WithPayload

func (o *SigninDefault) WithPayload(payload *models.Error) *SigninDefault

WithPayload adds the payload to the signin default response

func (*SigninDefault) WithStatusCode

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

WithStatusCode adds the status to the signin default response

func (*SigninDefault) WriteResponse

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

WriteResponse to the client

type SigninHandler

type SigninHandler interface {
	Handle(SigninParams) middleware.Responder
}

SigninHandler interface for that can handle valid signin params

type SigninHandlerFunc

type SigninHandlerFunc func(SigninParams) middleware.Responder

SigninHandlerFunc turns a function with the right signature into a signin handler

func (SigninHandlerFunc) Handle

Handle executing the request and returning a response

type SigninOK

type SigninOK struct {

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

SigninOK Created

swagger:response signinOK

func NewSigninOK

func NewSigninOK() *SigninOK

NewSigninOK creates SigninOK with default headers values

func (*SigninOK) SetPayload

func (o *SigninOK) SetPayload(payload *models.SigninOKBody)

SetPayload sets the payload to the signin o k response

func (*SigninOK) WithPayload

func (o *SigninOK) WithPayload(payload *models.SigninOKBody) *SigninOK

WithPayload adds the payload to the signin o k response

func (*SigninOK) WriteResponse

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

WriteResponse to the client

type SigninParams

type SigninParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The account details
	  Required: true
	  In: body
	*/
	Body *models.SigninParamsBody
}

SigninParams contains all the bound params for the signin operation typically these are obtained from a http.Request

swagger:parameters signin

func NewSigninParams

func NewSigninParams() SigninParams

NewSigninParams creates a new SigninParams object no default values defined in spec.

func (*SigninParams) BindRequest

func (o *SigninParams) 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.

To ensure default values, the struct must have been initialized with NewSigninParams() beforehand.

type SigninURL

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

SigninURL generates an URL for the signin operation

func (*SigninURL) Build

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

Build a url path and query string

func (*SigninURL) BuildFull

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

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

func (*SigninURL) Must

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

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

func (*SigninURL) SetBasePath

func (o *SigninURL) 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 (*SigninURL) String

func (o *SigninURL) String() string

String returns the string representation of the path with query string

func (*SigninURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SigninURL) WithBasePath

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

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 Signup

type Signup struct {
	Context *middleware.Context
	Handler SignupHandler
}

Signup swagger:route POST /signup account signup

Signup signup API

func NewSignup

func NewSignup(ctx *middleware.Context, handler SignupHandler) *Signup

NewSignup creates a new http.Handler for the signup operation

func (*Signup) ServeHTTP

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

type SignupCreated

type SignupCreated struct {

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

SignupCreated Created

swagger:response signupCreated

func NewSignupCreated

func NewSignupCreated() *SignupCreated

NewSignupCreated creates SignupCreated with default headers values

func (*SignupCreated) SetPayload

func (o *SignupCreated) SetPayload(payload *models.SignupCreatedBody)

SetPayload sets the payload to the signup created response

func (*SignupCreated) WithPayload

func (o *SignupCreated) WithPayload(payload *models.SignupCreatedBody) *SignupCreated

WithPayload adds the payload to the signup created response

func (*SignupCreated) WriteResponse

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

WriteResponse to the client

type SignupDefault

type SignupDefault struct {

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

SignupDefault unexpected error

swagger:response signupDefault

func NewSignupDefault

func NewSignupDefault(code int) *SignupDefault

NewSignupDefault creates SignupDefault with default headers values

func (*SignupDefault) SetPayload

func (o *SignupDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the signup default response

func (*SignupDefault) SetStatusCode

func (o *SignupDefault) SetStatusCode(code int)

SetStatusCode sets the status to the signup default response

func (*SignupDefault) WithPayload

func (o *SignupDefault) WithPayload(payload *models.Error) *SignupDefault

WithPayload adds the payload to the signup default response

func (*SignupDefault) WithStatusCode

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

WithStatusCode adds the status to the signup default response

func (*SignupDefault) WriteResponse

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

WriteResponse to the client

type SignupHandler

type SignupHandler interface {
	Handle(SignupParams) middleware.Responder
}

SignupHandler interface for that can handle valid signup params

type SignupHandlerFunc

type SignupHandlerFunc func(SignupParams) middleware.Responder

SignupHandlerFunc turns a function with the right signature into a signup handler

func (SignupHandlerFunc) Handle

Handle executing the request and returning a response

type SignupParams

type SignupParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The account details
	  Required: true
	  In: body
	*/
	Body *models.SignupParamsBody
}

SignupParams contains all the bound params for the signup operation typically these are obtained from a http.Request

swagger:parameters signup

func NewSignupParams

func NewSignupParams() SignupParams

NewSignupParams creates a new SignupParams object no default values defined in spec.

func (*SignupParams) BindRequest

func (o *SignupParams) 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.

To ensure default values, the struct must have been initialized with NewSignupParams() beforehand.

type SignupURL

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

SignupURL generates an URL for the signup operation

func (*SignupURL) Build

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

Build a url path and query string

func (*SignupURL) BuildFull

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

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

func (*SignupURL) Must

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

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

func (*SignupURL) SetBasePath

func (o *SignupURL) 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 (*SignupURL) String

func (o *SignupURL) String() string

String returns the string representation of the path with query string

func (*SignupURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SignupURL) WithBasePath

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

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