Documentation ¶
Index ¶
- Constants
- type CreateAccount
- type CreateAccountConflict
- type CreateAccountCreated
- type CreateAccountHandler
- type CreateAccountHandlerFunc
- type CreateAccountParams
- type CreateAccountURL
- func (o *CreateAccountURL) Build() (*url.URL, error)
- func (o *CreateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateAccountURL) SetBasePath(bp string)
- func (o *CreateAccountURL) String() string
- func (o *CreateAccountURL) StringFull(scheme, host string) string
- func (o *CreateAccountURL) WithBasePath(bp string) *CreateAccountURL
- type CreateAccountUnprocessableEntity
- type GetAccount
- type GetAccountCharacters
- type GetAccountCharactersHandler
- type GetAccountCharactersHandlerFunc
- type GetAccountCharactersNotFound
- type GetAccountCharactersOK
- type GetAccountCharactersParams
- type GetAccountCharactersURL
- func (o *GetAccountCharactersURL) Build() (*url.URL, error)
- func (o *GetAccountCharactersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAccountCharactersURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAccountCharactersURL) SetBasePath(bp string)
- func (o *GetAccountCharactersURL) String() string
- func (o *GetAccountCharactersURL) StringFull(scheme, host string) string
- func (o *GetAccountCharactersURL) WithBasePath(bp string) *GetAccountCharactersURL
- type GetAccountHandler
- type GetAccountHandlerFunc
- type GetAccountNotFound
- type GetAccountOK
- type GetAccountParams
- type GetAccountURL
- func (o *GetAccountURL) Build() (*url.URL, error)
- func (o *GetAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAccountURL) SetBasePath(bp string)
- func (o *GetAccountURL) String() string
- func (o *GetAccountURL) StringFull(scheme, host string) string
- func (o *GetAccountURL) WithBasePath(bp string) *GetAccountURL
- type GetAccounts
- type GetAccountsHandler
- type GetAccountsHandlerFunc
- type GetAccountsOK
- type GetAccountsParams
- type GetAccountsURL
- func (o *GetAccountsURL) Build() (*url.URL, error)
- func (o *GetAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAccountsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAccountsURL) SetBasePath(bp string)
- func (o *GetAccountsURL) String() string
- func (o *GetAccountsURL) StringFull(scheme, host string) string
- func (o *GetAccountsURL) WithBasePath(bp string) *GetAccountsURL
- type RetrieveAccountCharacters
- type RetrieveAccountCharactersHandler
- type RetrieveAccountCharactersHandlerFunc
- type RetrieveAccountCharactersNotAcceptable
- type RetrieveAccountCharactersNotFound
- type RetrieveAccountCharactersOK
- type RetrieveAccountCharactersParams
- type RetrieveAccountCharactersPreconditionFailed
- type RetrieveAccountCharactersURL
- func (o *RetrieveAccountCharactersURL) Build() (*url.URL, error)
- func (o *RetrieveAccountCharactersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RetrieveAccountCharactersURL) Must(u *url.URL, err error) *url.URL
- func (o *RetrieveAccountCharactersURL) SetBasePath(bp string)
- func (o *RetrieveAccountCharactersURL) String() string
- func (o *RetrieveAccountCharactersURL) StringFull(scheme, host string) string
- func (o *RetrieveAccountCharactersURL) WithBasePath(bp string) *RetrieveAccountCharactersURL
- type UpdateAccount
- type UpdateAccountHandler
- type UpdateAccountHandlerFunc
- type UpdateAccountNotFound
- type UpdateAccountNotModified
- type UpdateAccountOK
- type UpdateAccountParams
- type UpdateAccountURL
- func (o *UpdateAccountURL) Build() (*url.URL, error)
- func (o *UpdateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateAccountURL) SetBasePath(bp string)
- func (o *UpdateAccountURL) String() string
- func (o *UpdateAccountURL) StringFull(scheme, host string) string
- func (o *UpdateAccountURL) WithBasePath(bp string) *UpdateAccountURL
- type UpdateAccountUnprocessableEntity
Constants ¶
const CreateAccountConflictCode int = 409
CreateAccountConflictCode is the HTTP code returned for type CreateAccountConflict
const CreateAccountCreatedCode int = 201
CreateAccountCreatedCode is the HTTP code returned for type CreateAccountCreated
const CreateAccountUnprocessableEntityCode int = 422
CreateAccountUnprocessableEntityCode is the HTTP code returned for type CreateAccountUnprocessableEntity
const GetAccountCharactersNotFoundCode int = 404
GetAccountCharactersNotFoundCode is the HTTP code returned for type GetAccountCharactersNotFound
const GetAccountCharactersOKCode int = 200
GetAccountCharactersOKCode is the HTTP code returned for type GetAccountCharactersOK
const GetAccountNotFoundCode int = 404
GetAccountNotFoundCode is the HTTP code returned for type GetAccountNotFound
const GetAccountOKCode int = 200
GetAccountOKCode is the HTTP code returned for type GetAccountOK
const GetAccountsOKCode int = 200
GetAccountsOKCode is the HTTP code returned for type GetAccountsOK
const RetrieveAccountCharactersNotAcceptableCode int = 406
RetrieveAccountCharactersNotAcceptableCode is the HTTP code returned for type RetrieveAccountCharactersNotAcceptable
const RetrieveAccountCharactersNotFoundCode int = 404
RetrieveAccountCharactersNotFoundCode is the HTTP code returned for type RetrieveAccountCharactersNotFound
const RetrieveAccountCharactersOKCode int = 200
RetrieveAccountCharactersOKCode is the HTTP code returned for type RetrieveAccountCharactersOK
const RetrieveAccountCharactersPreconditionFailedCode int = 412
RetrieveAccountCharactersPreconditionFailedCode is the HTTP code returned for type RetrieveAccountCharactersPreconditionFailed
const UpdateAccountNotFoundCode int = 404
UpdateAccountNotFoundCode is the HTTP code returned for type UpdateAccountNotFound
const UpdateAccountNotModifiedCode int = 304
UpdateAccountNotModifiedCode is the HTTP code returned for type UpdateAccountNotModified
const UpdateAccountOKCode int = 200
UpdateAccountOKCode is the HTTP code returned for type UpdateAccountOK
const UpdateAccountUnprocessableEntityCode int = 422
UpdateAccountUnprocessableEntityCode is the HTTP code returned for type UpdateAccountUnprocessableEntity
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAccount ¶
type CreateAccount struct { Context *middleware.Context Handler CreateAccountHandler }
CreateAccount swagger:route POST /accounts Accounts createAccount
Creates a new account
func NewCreateAccount ¶
func NewCreateAccount(ctx *middleware.Context, handler CreateAccountHandler) *CreateAccount
NewCreateAccount creates a new http.Handler for the create account operation
func (*CreateAccount) ServeHTTP ¶
func (o *CreateAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateAccountConflict ¶
type CreateAccountConflict struct { }
CreateAccountConflict Conflict, an account with the same name already exists
swagger:response createAccountConflict
func NewCreateAccountConflict ¶
func NewCreateAccountConflict() *CreateAccountConflict
NewCreateAccountConflict creates CreateAccountConflict with default headers values
func (*CreateAccountConflict) WriteResponse ¶
func (o *CreateAccountConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateAccountCreated ¶
type CreateAccountCreated struct { }
CreateAccountCreated Successfully created new account
swagger:response createAccountCreated
func NewCreateAccountCreated ¶
func NewCreateAccountCreated() *CreateAccountCreated
NewCreateAccountCreated creates CreateAccountCreated with default headers values
func (*CreateAccountCreated) WriteResponse ¶
func (o *CreateAccountCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateAccountHandler ¶
type CreateAccountHandler interface {
Handle(CreateAccountParams) middleware.Responder
}
CreateAccountHandler interface for that can handle valid create account params
type CreateAccountHandlerFunc ¶
type CreateAccountHandlerFunc func(CreateAccountParams) middleware.Responder
CreateAccountHandlerFunc turns a function with the right signature into a create account handler
func (CreateAccountHandlerFunc) Handle ¶
func (fn CreateAccountHandlerFunc) Handle(params CreateAccountParams) middleware.Responder
Handle executing the request and returning a response
type CreateAccountParams ¶
type CreateAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The account to create. In: body */ Account *models.Account }
CreateAccountParams contains all the bound params for the create account operation typically these are obtained from a http.Request
swagger:parameters createAccount
func NewCreateAccountParams ¶
func NewCreateAccountParams() CreateAccountParams
NewCreateAccountParams creates a new CreateAccountParams object no default values defined in spec.
func (*CreateAccountParams) BindRequest ¶
func (o *CreateAccountParams) 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 NewCreateAccountParams() beforehand.
type CreateAccountURL ¶
type CreateAccountURL struct {
// contains filtered or unexported fields
}
CreateAccountURL generates an URL for the create account operation
func (*CreateAccountURL) Build ¶
func (o *CreateAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateAccountURL) BuildFull ¶
func (o *CreateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateAccountURL) SetBasePath ¶
func (o *CreateAccountURL) 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 (*CreateAccountURL) String ¶
func (o *CreateAccountURL) String() string
String returns the string representation of the path with query string
func (*CreateAccountURL) StringFull ¶
func (o *CreateAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateAccountURL) WithBasePath ¶
func (o *CreateAccountURL) WithBasePath(bp string) *CreateAccountURL
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 CreateAccountUnprocessableEntity ¶
type CreateAccountUnprocessableEntity struct { }
CreateAccountUnprocessableEntity Missing required property in body
swagger:response createAccountUnprocessableEntity
func NewCreateAccountUnprocessableEntity ¶
func NewCreateAccountUnprocessableEntity() *CreateAccountUnprocessableEntity
NewCreateAccountUnprocessableEntity creates CreateAccountUnprocessableEntity with default headers values
func (*CreateAccountUnprocessableEntity) WriteResponse ¶
func (o *CreateAccountUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccount ¶
type GetAccount struct { Context *middleware.Context Handler GetAccountHandler }
GetAccount swagger:route GET /accounts/{accountName} Accounts getAccount
Return an existing account from name
func NewGetAccount ¶
func NewGetAccount(ctx *middleware.Context, handler GetAccountHandler) *GetAccount
NewGetAccount creates a new http.Handler for the get account operation
func (*GetAccount) ServeHTTP ¶
func (o *GetAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAccountCharacters ¶
type GetAccountCharacters struct { Context *middleware.Context Handler GetAccountCharactersHandler }
GetAccountCharacters swagger:route GET /accounts/{accountName}/characters Accounts getAccountCharacters
Return characters list for specified account
func NewGetAccountCharacters ¶
func NewGetAccountCharacters(ctx *middleware.Context, handler GetAccountCharactersHandler) *GetAccountCharacters
NewGetAccountCharacters creates a new http.Handler for the get account characters operation
func (*GetAccountCharacters) ServeHTTP ¶
func (o *GetAccountCharacters) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAccountCharactersHandler ¶
type GetAccountCharactersHandler interface {
Handle(GetAccountCharactersParams) middleware.Responder
}
GetAccountCharactersHandler interface for that can handle valid get account characters params
type GetAccountCharactersHandlerFunc ¶
type GetAccountCharactersHandlerFunc func(GetAccountCharactersParams) middleware.Responder
GetAccountCharactersHandlerFunc turns a function with the right signature into a get account characters handler
func (GetAccountCharactersHandlerFunc) Handle ¶
func (fn GetAccountCharactersHandlerFunc) Handle(params GetAccountCharactersParams) middleware.Responder
Handle executing the request and returning a response
type GetAccountCharactersNotFound ¶
type GetAccountCharactersNotFound struct { }
GetAccountCharactersNotFound Error, the specified account doesn't exists
swagger:response getAccountCharactersNotFound
func NewGetAccountCharactersNotFound ¶
func NewGetAccountCharactersNotFound() *GetAccountCharactersNotFound
NewGetAccountCharactersNotFound creates GetAccountCharactersNotFound with default headers values
func (*GetAccountCharactersNotFound) WriteResponse ¶
func (o *GetAccountCharactersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountCharactersOK ¶
type GetAccountCharactersOK struct { /* In: Body */ Payload []*models.Character `json:"body,omitempty"` }
GetAccountCharactersOK A list of characters for this account
swagger:response getAccountCharactersOK
func NewGetAccountCharactersOK ¶
func NewGetAccountCharactersOK() *GetAccountCharactersOK
NewGetAccountCharactersOK creates GetAccountCharactersOK with default headers values
func (*GetAccountCharactersOK) SetPayload ¶
func (o *GetAccountCharactersOK) SetPayload(payload []*models.Character)
SetPayload sets the payload to the get account characters o k response
func (*GetAccountCharactersOK) WithPayload ¶
func (o *GetAccountCharactersOK) WithPayload(payload []*models.Character) *GetAccountCharactersOK
WithPayload adds the payload to the get account characters o k response
func (*GetAccountCharactersOK) WriteResponse ¶
func (o *GetAccountCharactersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountCharactersParams ¶
type GetAccountCharactersParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The account's name for which to retrieve the characters Required: true In: path */ AccountName string /*An optional value to filter the returned character list by gameServerIds Unique: true In: query */ GameServerIDFilter []int64 }
GetAccountCharactersParams contains all the bound params for the get account characters operation typically these are obtained from a http.Request
swagger:parameters getAccountCharacters
func NewGetAccountCharactersParams ¶
func NewGetAccountCharactersParams() GetAccountCharactersParams
NewGetAccountCharactersParams creates a new GetAccountCharactersParams object no default values defined in spec.
func (*GetAccountCharactersParams) BindRequest ¶
func (o *GetAccountCharactersParams) 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 NewGetAccountCharactersParams() beforehand.
type GetAccountCharactersURL ¶
type GetAccountCharactersURL struct { AccountName string GameServerIDFilter []int64 // contains filtered or unexported fields }
GetAccountCharactersURL generates an URL for the get account characters operation
func (*GetAccountCharactersURL) Build ¶
func (o *GetAccountCharactersURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAccountCharactersURL) BuildFull ¶
func (o *GetAccountCharactersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAccountCharactersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAccountCharactersURL) SetBasePath ¶
func (o *GetAccountCharactersURL) 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 (*GetAccountCharactersURL) String ¶
func (o *GetAccountCharactersURL) String() string
String returns the string representation of the path with query string
func (*GetAccountCharactersURL) StringFull ¶
func (o *GetAccountCharactersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAccountCharactersURL) WithBasePath ¶
func (o *GetAccountCharactersURL) WithBasePath(bp string) *GetAccountCharactersURL
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 GetAccountHandler ¶
type GetAccountHandler interface {
Handle(GetAccountParams) middleware.Responder
}
GetAccountHandler interface for that can handle valid get account params
type GetAccountHandlerFunc ¶
type GetAccountHandlerFunc func(GetAccountParams) middleware.Responder
GetAccountHandlerFunc turns a function with the right signature into a get account handler
func (GetAccountHandlerFunc) Handle ¶
func (fn GetAccountHandlerFunc) Handle(params GetAccountParams) middleware.Responder
Handle executing the request and returning a response
type GetAccountNotFound ¶
type GetAccountNotFound struct { }
GetAccountNotFound Error, the specified account doesn't exists
swagger:response getAccountNotFound
func NewGetAccountNotFound ¶
func NewGetAccountNotFound() *GetAccountNotFound
NewGetAccountNotFound creates GetAccountNotFound with default headers values
func (*GetAccountNotFound) WriteResponse ¶
func (o *GetAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountOK ¶
GetAccountOK Success
swagger:response getAccountOK
func NewGetAccountOK ¶
func NewGetAccountOK() *GetAccountOK
NewGetAccountOK creates GetAccountOK with default headers values
func (*GetAccountOK) SetPayload ¶
func (o *GetAccountOK) SetPayload(payload *models.Account)
SetPayload sets the payload to the get account o k response
func (*GetAccountOK) WithPayload ¶
func (o *GetAccountOK) WithPayload(payload *models.Account) *GetAccountOK
WithPayload adds the payload to the get account o k response
func (*GetAccountOK) WriteResponse ¶
func (o *GetAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountParams ¶
type GetAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The account's name for which to retrieve the characters Required: true In: path */ AccountName string }
GetAccountParams contains all the bound params for the get account operation typically these are obtained from a http.Request
swagger:parameters getAccount
func NewGetAccountParams ¶
func NewGetAccountParams() GetAccountParams
NewGetAccountParams creates a new GetAccountParams object no default values defined in spec.
func (*GetAccountParams) BindRequest ¶
func (o *GetAccountParams) 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 NewGetAccountParams() beforehand.
type GetAccountURL ¶
type GetAccountURL struct { AccountName string // contains filtered or unexported fields }
GetAccountURL generates an URL for the get account operation
func (*GetAccountURL) Build ¶
func (o *GetAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAccountURL) BuildFull ¶
func (o *GetAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAccountURL) SetBasePath ¶
func (o *GetAccountURL) 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 (*GetAccountURL) String ¶
func (o *GetAccountURL) String() string
String returns the string representation of the path with query string
func (*GetAccountURL) StringFull ¶
func (o *GetAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAccountURL) WithBasePath ¶
func (o *GetAccountURL) WithBasePath(bp string) *GetAccountURL
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 GetAccounts ¶
type GetAccounts struct { Context *middleware.Context Handler GetAccountsHandler }
GetAccounts swagger:route GET /accounts Accounts getAccounts
Return all accounts
func NewGetAccounts ¶
func NewGetAccounts(ctx *middleware.Context, handler GetAccountsHandler) *GetAccounts
NewGetAccounts creates a new http.Handler for the get accounts operation
func (*GetAccounts) ServeHTTP ¶
func (o *GetAccounts) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAccountsHandler ¶
type GetAccountsHandler interface {
Handle(GetAccountsParams) middleware.Responder
}
GetAccountsHandler interface for that can handle valid get accounts params
type GetAccountsHandlerFunc ¶
type GetAccountsHandlerFunc func(GetAccountsParams) middleware.Responder
GetAccountsHandlerFunc turns a function with the right signature into a get accounts handler
func (GetAccountsHandlerFunc) Handle ¶
func (fn GetAccountsHandlerFunc) Handle(params GetAccountsParams) middleware.Responder
Handle executing the request and returning a response
type GetAccountsOK ¶
GetAccountsOK A list of account
swagger:response getAccountsOK
func NewGetAccountsOK ¶
func NewGetAccountsOK() *GetAccountsOK
NewGetAccountsOK creates GetAccountsOK with default headers values
func (*GetAccountsOK) SetPayload ¶
func (o *GetAccountsOK) SetPayload(payload []*models.Account)
SetPayload sets the payload to the get accounts o k response
func (*GetAccountsOK) WithPayload ¶
func (o *GetAccountsOK) WithPayload(payload []*models.Account) *GetAccountsOK
WithPayload adds the payload to the get accounts o k response
func (*GetAccountsOK) WriteResponse ¶
func (o *GetAccountsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountsParams ¶
GetAccountsParams contains all the bound params for the get accounts operation typically these are obtained from a http.Request
swagger:parameters getAccounts
func NewGetAccountsParams ¶
func NewGetAccountsParams() GetAccountsParams
NewGetAccountsParams creates a new GetAccountsParams object no default values defined in spec.
func (*GetAccountsParams) BindRequest ¶
func (o *GetAccountsParams) 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 NewGetAccountsParams() beforehand.
type GetAccountsURL ¶
type GetAccountsURL struct {
// contains filtered or unexported fields
}
GetAccountsURL generates an URL for the get accounts operation
func (*GetAccountsURL) Build ¶
func (o *GetAccountsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAccountsURL) BuildFull ¶
func (o *GetAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAccountsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAccountsURL) SetBasePath ¶
func (o *GetAccountsURL) 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 (*GetAccountsURL) String ¶
func (o *GetAccountsURL) String() string
String returns the string representation of the path with query string
func (*GetAccountsURL) StringFull ¶
func (o *GetAccountsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAccountsURL) WithBasePath ¶
func (o *GetAccountsURL) WithBasePath(bp string) *GetAccountsURL
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 RetrieveAccountCharacters ¶
type RetrieveAccountCharacters struct { Context *middleware.Context Handler RetrieveAccountCharactersHandler }
RetrieveAccountCharacters swagger:route GET /accounts/{accountName}/retrieveCharacters/{gameServerId} Accounts retrieveAccountCharacters
Refresh characters list for specified account and gameServerId
func NewRetrieveAccountCharacters ¶
func NewRetrieveAccountCharacters(ctx *middleware.Context, handler RetrieveAccountCharactersHandler) *RetrieveAccountCharacters
NewRetrieveAccountCharacters creates a new http.Handler for the retrieve account characters operation
func (*RetrieveAccountCharacters) ServeHTTP ¶
func (o *RetrieveAccountCharacters) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RetrieveAccountCharactersHandler ¶
type RetrieveAccountCharactersHandler interface {
Handle(RetrieveAccountCharactersParams) middleware.Responder
}
RetrieveAccountCharactersHandler interface for that can handle valid retrieve account characters params
type RetrieveAccountCharactersHandlerFunc ¶
type RetrieveAccountCharactersHandlerFunc func(RetrieveAccountCharactersParams) middleware.Responder
RetrieveAccountCharactersHandlerFunc turns a function with the right signature into a retrieve account characters handler
func (RetrieveAccountCharactersHandlerFunc) Handle ¶
func (fn RetrieveAccountCharactersHandlerFunc) Handle(params RetrieveAccountCharactersParams) middleware.Responder
Handle executing the request and returning a response
type RetrieveAccountCharactersNotAcceptable ¶
type RetrieveAccountCharactersNotAcceptable struct { }
RetrieveAccountCharactersNotAcceptable Invalid gameServerId
swagger:response retrieveAccountCharactersNotAcceptable
func NewRetrieveAccountCharactersNotAcceptable ¶
func NewRetrieveAccountCharactersNotAcceptable() *RetrieveAccountCharactersNotAcceptable
NewRetrieveAccountCharactersNotAcceptable creates RetrieveAccountCharactersNotAcceptable with default headers values
func (*RetrieveAccountCharactersNotAcceptable) WriteResponse ¶
func (o *RetrieveAccountCharactersNotAcceptable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveAccountCharactersNotFound ¶
type RetrieveAccountCharactersNotFound struct { }
RetrieveAccountCharactersNotFound Error, the specified account doesn't exists
swagger:response retrieveAccountCharactersNotFound
func NewRetrieveAccountCharactersNotFound ¶
func NewRetrieveAccountCharactersNotFound() *RetrieveAccountCharactersNotFound
NewRetrieveAccountCharactersNotFound creates RetrieveAccountCharactersNotFound with default headers values
func (*RetrieveAccountCharactersNotFound) WriteResponse ¶
func (o *RetrieveAccountCharactersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveAccountCharactersOK ¶
type RetrieveAccountCharactersOK struct { /* In: Body */ Payload []*models.Character `json:"body,omitempty"` }
RetrieveAccountCharactersOK Account's characters list for the specified gameServerId
swagger:response retrieveAccountCharactersOK
func NewRetrieveAccountCharactersOK ¶
func NewRetrieveAccountCharactersOK() *RetrieveAccountCharactersOK
NewRetrieveAccountCharactersOK creates RetrieveAccountCharactersOK with default headers values
func (*RetrieveAccountCharactersOK) SetPayload ¶
func (o *RetrieveAccountCharactersOK) SetPayload(payload []*models.Character)
SetPayload sets the payload to the retrieve account characters o k response
func (*RetrieveAccountCharactersOK) WithPayload ¶
func (o *RetrieveAccountCharactersOK) WithPayload(payload []*models.Character) *RetrieveAccountCharactersOK
WithPayload adds the payload to the retrieve account characters o k response
func (*RetrieveAccountCharactersOK) WriteResponse ¶
func (o *RetrieveAccountCharactersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveAccountCharactersParams ¶
type RetrieveAccountCharactersParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The account's name for which to retrieve the characters Required: true In: path */ AccountName string /*GameServerId Required: true In: path */ GameServerID int64 }
RetrieveAccountCharactersParams contains all the bound params for the retrieve account characters operation typically these are obtained from a http.Request
swagger:parameters retrieveAccountCharacters
func NewRetrieveAccountCharactersParams ¶
func NewRetrieveAccountCharactersParams() RetrieveAccountCharactersParams
NewRetrieveAccountCharactersParams creates a new RetrieveAccountCharactersParams object no default values defined in spec.
func (*RetrieveAccountCharactersParams) BindRequest ¶
func (o *RetrieveAccountCharactersParams) 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 NewRetrieveAccountCharactersParams() beforehand.
type RetrieveAccountCharactersPreconditionFailed ¶
type RetrieveAccountCharactersPreconditionFailed struct { }
RetrieveAccountCharactersPreconditionFailed Unable to connect to the specified
swagger:response retrieveAccountCharactersPreconditionFailed
func NewRetrieveAccountCharactersPreconditionFailed ¶
func NewRetrieveAccountCharactersPreconditionFailed() *RetrieveAccountCharactersPreconditionFailed
NewRetrieveAccountCharactersPreconditionFailed creates RetrieveAccountCharactersPreconditionFailed with default headers values
func (*RetrieveAccountCharactersPreconditionFailed) WriteResponse ¶
func (o *RetrieveAccountCharactersPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveAccountCharactersURL ¶
type RetrieveAccountCharactersURL struct { AccountName string GameServerID int64 // contains filtered or unexported fields }
RetrieveAccountCharactersURL generates an URL for the retrieve account characters operation
func (*RetrieveAccountCharactersURL) Build ¶
func (o *RetrieveAccountCharactersURL) Build() (*url.URL, error)
Build a url path and query string
func (*RetrieveAccountCharactersURL) BuildFull ¶
func (o *RetrieveAccountCharactersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RetrieveAccountCharactersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RetrieveAccountCharactersURL) SetBasePath ¶
func (o *RetrieveAccountCharactersURL) 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 (*RetrieveAccountCharactersURL) String ¶
func (o *RetrieveAccountCharactersURL) String() string
String returns the string representation of the path with query string
func (*RetrieveAccountCharactersURL) StringFull ¶
func (o *RetrieveAccountCharactersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RetrieveAccountCharactersURL) WithBasePath ¶
func (o *RetrieveAccountCharactersURL) WithBasePath(bp string) *RetrieveAccountCharactersURL
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 UpdateAccount ¶
type UpdateAccount struct { Context *middleware.Context Handler UpdateAccountHandler }
UpdateAccount swagger:route PATCH /accounts/{accountName} Accounts updateAccount
Update an existing account
func NewUpdateAccount ¶
func NewUpdateAccount(ctx *middleware.Context, handler UpdateAccountHandler) *UpdateAccount
NewUpdateAccount creates a new http.Handler for the update account operation
func (*UpdateAccount) ServeHTTP ¶
func (o *UpdateAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateAccountHandler ¶
type UpdateAccountHandler interface {
Handle(UpdateAccountParams) middleware.Responder
}
UpdateAccountHandler interface for that can handle valid update account params
type UpdateAccountHandlerFunc ¶
type UpdateAccountHandlerFunc func(UpdateAccountParams) middleware.Responder
UpdateAccountHandlerFunc turns a function with the right signature into a update account handler
func (UpdateAccountHandlerFunc) Handle ¶
func (fn UpdateAccountHandlerFunc) Handle(params UpdateAccountParams) middleware.Responder
Handle executing the request and returning a response
type UpdateAccountNotFound ¶
type UpdateAccountNotFound struct { }
UpdateAccountNotFound Error, the specified account doesn't exists
swagger:response updateAccountNotFound
func NewUpdateAccountNotFound ¶
func NewUpdateAccountNotFound() *UpdateAccountNotFound
NewUpdateAccountNotFound creates UpdateAccountNotFound with default headers values
func (*UpdateAccountNotFound) WriteResponse ¶
func (o *UpdateAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountNotModified ¶
type UpdateAccountNotModified struct { }
UpdateAccountNotModified Not modified, account is already the same object
swagger:response updateAccountNotModified
func NewUpdateAccountNotModified ¶
func NewUpdateAccountNotModified() *UpdateAccountNotModified
NewUpdateAccountNotModified creates UpdateAccountNotModified with default headers values
func (*UpdateAccountNotModified) WriteResponse ¶
func (o *UpdateAccountNotModified) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountOK ¶
type UpdateAccountOK struct { }
UpdateAccountOK Successfully updated account
swagger:response updateAccountOK
func NewUpdateAccountOK ¶
func NewUpdateAccountOK() *UpdateAccountOK
NewUpdateAccountOK creates UpdateAccountOK with default headers values
func (*UpdateAccountOK) WriteResponse ¶
func (o *UpdateAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountParams ¶
type UpdateAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The account to update. In: body */ Account *models.Account /*The account's name for which to retrieve the characters Required: true In: path */ AccountName string }
UpdateAccountParams contains all the bound params for the update account operation typically these are obtained from a http.Request
swagger:parameters updateAccount
func NewUpdateAccountParams ¶
func NewUpdateAccountParams() UpdateAccountParams
NewUpdateAccountParams creates a new UpdateAccountParams object no default values defined in spec.
func (*UpdateAccountParams) BindRequest ¶
func (o *UpdateAccountParams) 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 NewUpdateAccountParams() beforehand.
type UpdateAccountURL ¶
type UpdateAccountURL struct { AccountName string // contains filtered or unexported fields }
UpdateAccountURL generates an URL for the update account operation
func (*UpdateAccountURL) Build ¶
func (o *UpdateAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateAccountURL) BuildFull ¶
func (o *UpdateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateAccountURL) SetBasePath ¶
func (o *UpdateAccountURL) 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 (*UpdateAccountURL) String ¶
func (o *UpdateAccountURL) String() string
String returns the string representation of the path with query string
func (*UpdateAccountURL) StringFull ¶
func (o *UpdateAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateAccountURL) WithBasePath ¶
func (o *UpdateAccountURL) WithBasePath(bp string) *UpdateAccountURL
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 UpdateAccountUnprocessableEntity ¶
type UpdateAccountUnprocessableEntity struct { }
UpdateAccountUnprocessableEntity Missing required property in body
swagger:response updateAccountUnprocessableEntity
func NewUpdateAccountUnprocessableEntity ¶
func NewUpdateAccountUnprocessableEntity() *UpdateAccountUnprocessableEntity
NewUpdateAccountUnprocessableEntity creates UpdateAccountUnprocessableEntity with default headers values
func (*UpdateAccountUnprocessableEntity) WriteResponse ¶
func (o *UpdateAccountUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_account.go
- create_account_parameters.go
- create_account_responses.go
- create_account_urlbuilder.go
- get_account.go
- get_account_characters.go
- get_account_characters_parameters.go
- get_account_characters_responses.go
- get_account_characters_urlbuilder.go
- get_account_parameters.go
- get_account_responses.go
- get_account_urlbuilder.go
- get_accounts.go
- get_accounts_parameters.go
- get_accounts_responses.go
- get_accounts_urlbuilder.go
- retrieve_account_characters.go
- retrieve_account_characters_parameters.go
- retrieve_account_characters_responses.go
- retrieve_account_characters_urlbuilder.go
- update_account.go
- update_account_parameters.go
- update_account_responses.go
- update_account_urlbuilder.go