user

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AuthFoundCode int = 302

AuthFoundCode is the HTTP code returned for type AuthFound

View Source
const CommunityHistoryOKCode int = 200

CommunityHistoryOKCode is the HTTP code returned for type CommunityHistoryOK

View Source
const LoginFoundCode int = 302

LoginFoundCode is the HTTP code returned for type LoginFound

View Source
const UserHistoryOKCode int = 200

UserHistoryOKCode is the HTTP code returned for type UserHistoryOK

View Source
const UserInfoOKCode int = 200

UserInfoOKCode is the HTTP code returned for type UserInfoOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Context *middleware.Context
	Handler AuthHandler
}
Auth swagger:route GET /auth user auth

Auth With Discord

func NewAuth

func NewAuth(ctx *middleware.Context, handler AuthHandler) *Auth

NewAuth creates a new http.Handler for the auth operation

func (*Auth) ServeHTTP

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

type AuthFound

type AuthFound struct {
	/*

	 */
	Location string `json:"Location"`
}

AuthFound Redirect

swagger:response authFound

func NewAuthFound

func NewAuthFound() *AuthFound

NewAuthFound creates AuthFound with default headers values

func (*AuthFound) SetLocation added in v1.0.1

func (o *AuthFound) SetLocation(location string)

SetLocation sets the location to the auth found response

func (*AuthFound) WithLocation added in v1.0.1

func (o *AuthFound) WithLocation(location string) *AuthFound

WithLocation adds the location to the auth found response

func (*AuthFound) WriteResponse

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

WriteResponse to the client

type AuthHandler

type AuthHandler interface {
	Handle(AuthParams) middleware.Responder
}

AuthHandler interface for that can handle valid auth params

type AuthHandlerFunc

type AuthHandlerFunc func(AuthParams) middleware.Responder

AuthHandlerFunc turns a function with the right signature into a auth handler

func (AuthHandlerFunc) Handle

func (fn AuthHandlerFunc) Handle(params AuthParams) middleware.Responder

Handle executing the request and returning a response

type AuthParams

type AuthParams struct {

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

	/*Discord Code
	  Required: true
	  In: query
	*/
	Code string
	/*Discord State
	  Required: true
	  In: query
	*/
	State string
}

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

swagger:parameters auth

func NewAuthParams

func NewAuthParams() AuthParams

NewAuthParams creates a new AuthParams object

There are no default values defined in the spec.

func (*AuthParams) BindRequest

func (o *AuthParams) 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 NewAuthParams() beforehand.

type AuthURL

type AuthURL struct {
	Code  string
	State string
	// contains filtered or unexported fields
}

AuthURL generates an URL for the auth operation

func (*AuthURL) Build

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

Build a url path and query string

func (*AuthURL) BuildFull

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

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

func (*AuthURL) Must

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

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

func (*AuthURL) SetBasePath

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

func (o *AuthURL) String() string

String returns the string representation of the path with query string

func (*AuthURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AuthURL) WithBasePath

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

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 CommunityHistory added in v1.1.3

type CommunityHistory struct {
	Context *middleware.Context
	Handler CommunityHistoryHandler
}
CommunityHistory swagger:route POST /community_history user communityHistory

Get Community History

func NewCommunityHistory added in v1.1.3

func NewCommunityHistory(ctx *middleware.Context, handler CommunityHistoryHandler) *CommunityHistory

NewCommunityHistory creates a new http.Handler for the community history operation

func (*CommunityHistory) ServeHTTP added in v1.1.3

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

type CommunityHistoryBody added in v1.1.3

type CommunityHistoryBody struct {

	// page info
	PageInfo *models.PageInfoRequest `json:"page_info,omitempty"`

	// query
	Query *models.HistoryQuery `json:"query,omitempty"`
}

CommunityHistoryBody community history body

swagger:model CommunityHistoryBody

func (*CommunityHistoryBody) ContextValidate added in v1.1.3

func (o *CommunityHistoryBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this community history body based on the context it is used

func (*CommunityHistoryBody) MarshalBinary added in v1.1.3

func (o *CommunityHistoryBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommunityHistoryBody) UnmarshalBinary added in v1.1.3

func (o *CommunityHistoryBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommunityHistoryBody) Validate added in v1.1.3

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

Validate validates this community history body

type CommunityHistoryHandler added in v1.1.3

type CommunityHistoryHandler interface {
	Handle(CommunityHistoryParams, interface{}) middleware.Responder
}

CommunityHistoryHandler interface for that can handle valid community history params

type CommunityHistoryHandlerFunc added in v1.1.3

type CommunityHistoryHandlerFunc func(CommunityHistoryParams, interface{}) middleware.Responder

CommunityHistoryHandlerFunc turns a function with the right signature into a community history handler

func (CommunityHistoryHandlerFunc) Handle added in v1.1.3

func (fn CommunityHistoryHandlerFunc) Handle(params CommunityHistoryParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CommunityHistoryOK added in v1.1.3

type CommunityHistoryOK struct {

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

CommunityHistoryOK Success

swagger:response communityHistoryOK

func NewCommunityHistoryOK added in v1.1.3

func NewCommunityHistoryOK() *CommunityHistoryOK

NewCommunityHistoryOK creates CommunityHistoryOK with default headers values

func (*CommunityHistoryOK) SetPayload added in v1.1.3

func (o *CommunityHistoryOK) SetPayload(payload *models.HistoryList)

SetPayload sets the payload to the community history o k response

func (*CommunityHistoryOK) WithPayload added in v1.1.3

func (o *CommunityHistoryOK) WithPayload(payload *models.HistoryList) *CommunityHistoryOK

WithPayload adds the payload to the community history o k response

func (*CommunityHistoryOK) WriteResponse added in v1.1.3

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

WriteResponse to the client

type CommunityHistoryParams added in v1.1.3

type CommunityHistoryParams struct {

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

	/*Page Info
	  Required: true
	  In: body
	*/
	Body CommunityHistoryBody
}

CommunityHistoryParams contains all the bound params for the community history operation typically these are obtained from a http.Request

swagger:parameters community_history

func NewCommunityHistoryParams added in v1.1.3

func NewCommunityHistoryParams() CommunityHistoryParams

NewCommunityHistoryParams creates a new CommunityHistoryParams object

There are no default values defined in the spec.

func (*CommunityHistoryParams) BindRequest added in v1.1.3

func (o *CommunityHistoryParams) 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 NewCommunityHistoryParams() beforehand.

type CommunityHistoryURL added in v1.1.3

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

CommunityHistoryURL generates an URL for the community history operation

func (*CommunityHistoryURL) Build added in v1.1.3

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

Build a url path and query string

func (*CommunityHistoryURL) BuildFull added in v1.1.3

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

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

func (*CommunityHistoryURL) Must added in v1.1.3

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

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

func (*CommunityHistoryURL) SetBasePath added in v1.1.3

func (o *CommunityHistoryURL) 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 (*CommunityHistoryURL) String added in v1.1.3

func (o *CommunityHistoryURL) String() string

String returns the string representation of the path with query string

func (*CommunityHistoryURL) StringFull added in v1.1.3

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

StringFull returns the string representation of a complete url

func (*CommunityHistoryURL) WithBasePath added in v1.1.3

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

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 Login added in v1.0.1

type Login struct {
	Context *middleware.Context
	Handler LoginHandler
}
Login swagger:route GET /login user login

Login With Discord

func NewLogin added in v1.0.1

func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login

NewLogin creates a new http.Handler for the login operation

func (*Login) ServeHTTP added in v1.0.1

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

type LoginFound added in v1.0.1

type LoginFound struct {
	/*

	 */
	Location string `json:"Location"`
}

LoginFound Redirect

swagger:response loginFound

func NewLoginFound added in v1.0.1

func NewLoginFound() *LoginFound

NewLoginFound creates LoginFound with default headers values

func (*LoginFound) SetLocation added in v1.0.1

func (o *LoginFound) SetLocation(location string)

SetLocation sets the location to the login found response

func (*LoginFound) WithLocation added in v1.0.1

func (o *LoginFound) WithLocation(location string) *LoginFound

WithLocation adds the location to the login found response

func (*LoginFound) WriteResponse added in v1.0.1

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

WriteResponse to the client

type LoginHandler added in v1.0.1

type LoginHandler interface {
	Handle(LoginParams) middleware.Responder
}

LoginHandler interface for that can handle valid login params

type LoginHandlerFunc added in v1.0.1

type LoginHandlerFunc func(LoginParams) middleware.Responder

LoginHandlerFunc turns a function with the right signature into a login handler

func (LoginHandlerFunc) Handle added in v1.0.1

Handle executing the request and returning a response

type LoginParams added in v1.0.1

type LoginParams struct {

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

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

swagger:parameters login

func NewLoginParams added in v1.0.1

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object

There are no default values defined in the spec.

func (*LoginParams) BindRequest added in v1.0.1

func (o *LoginParams) 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 NewLoginParams() beforehand.

type LoginURL added in v1.0.1

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

LoginURL generates an URL for the login operation

func (*LoginURL) Build added in v1.0.1

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

Build a url path and query string

func (*LoginURL) BuildFull added in v1.0.1

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

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

func (*LoginURL) Must added in v1.0.1

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

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

func (*LoginURL) SetBasePath added in v1.0.1

func (o *LoginURL) 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 (*LoginURL) String added in v1.0.1

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull added in v1.0.1

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

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath added in v1.0.1

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

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 UserHistory added in v1.0.1

type UserHistory struct {
	Context *middleware.Context
	Handler UserHistoryHandler
}
UserHistory swagger:route POST /user_history user userHistory

Get User History

func NewUserHistory added in v1.0.1

func NewUserHistory(ctx *middleware.Context, handler UserHistoryHandler) *UserHistory

NewUserHistory creates a new http.Handler for the user history operation

func (*UserHistory) ServeHTTP added in v1.0.1

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

type UserHistoryBody added in v1.0.1

type UserHistoryBody struct {

	// page info
	PageInfo *models.PageInfoRequest `json:"page_info,omitempty"`

	// query
	Query *models.HistoryQuery `json:"query,omitempty"`
}

UserHistoryBody user history body

swagger:model UserHistoryBody

func (*UserHistoryBody) ContextValidate added in v1.0.1

func (o *UserHistoryBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user history body based on the context it is used

func (*UserHistoryBody) MarshalBinary added in v1.0.1

func (o *UserHistoryBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserHistoryBody) UnmarshalBinary added in v1.0.1

func (o *UserHistoryBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserHistoryBody) Validate added in v1.0.1

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

Validate validates this user history body

type UserHistoryHandler added in v1.0.1

type UserHistoryHandler interface {
	Handle(UserHistoryParams, interface{}) middleware.Responder
}

UserHistoryHandler interface for that can handle valid user history params

type UserHistoryHandlerFunc added in v1.0.1

type UserHistoryHandlerFunc func(UserHistoryParams, interface{}) middleware.Responder

UserHistoryHandlerFunc turns a function with the right signature into a user history handler

func (UserHistoryHandlerFunc) Handle added in v1.0.1

func (fn UserHistoryHandlerFunc) Handle(params UserHistoryParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UserHistoryOK added in v1.0.1

type UserHistoryOK struct {

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

UserHistoryOK Success

swagger:response userHistoryOK

func NewUserHistoryOK added in v1.0.1

func NewUserHistoryOK() *UserHistoryOK

NewUserHistoryOK creates UserHistoryOK with default headers values

func (*UserHistoryOK) SetPayload added in v1.0.1

func (o *UserHistoryOK) SetPayload(payload *models.HistoryList)

SetPayload sets the payload to the user history o k response

func (*UserHistoryOK) WithPayload added in v1.0.1

func (o *UserHistoryOK) WithPayload(payload *models.HistoryList) *UserHistoryOK

WithPayload adds the payload to the user history o k response

func (*UserHistoryOK) WriteResponse added in v1.0.1

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

WriteResponse to the client

type UserHistoryParams added in v1.0.1

type UserHistoryParams struct {

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

	/*Page Info
	  Required: true
	  In: body
	*/
	Body UserHistoryBody
}

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

swagger:parameters user_history

func NewUserHistoryParams added in v1.0.1

func NewUserHistoryParams() UserHistoryParams

NewUserHistoryParams creates a new UserHistoryParams object

There are no default values defined in the spec.

func (*UserHistoryParams) BindRequest added in v1.0.1

func (o *UserHistoryParams) 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 NewUserHistoryParams() beforehand.

type UserHistoryURL added in v1.0.1

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

UserHistoryURL generates an URL for the user history operation

func (*UserHistoryURL) Build added in v1.0.1

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

Build a url path and query string

func (*UserHistoryURL) BuildFull added in v1.0.1

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

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

func (*UserHistoryURL) Must added in v1.0.1

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

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

func (*UserHistoryURL) SetBasePath added in v1.0.1

func (o *UserHistoryURL) 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 (*UserHistoryURL) String added in v1.0.1

func (o *UserHistoryURL) String() string

String returns the string representation of the path with query string

func (*UserHistoryURL) StringFull added in v1.0.1

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

StringFull returns the string representation of a complete url

func (*UserHistoryURL) WithBasePath added in v1.0.1

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

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 UserInfo

type UserInfo struct {
	Context *middleware.Context
	Handler UserInfoHandler
}
UserInfo swagger:route GET /user_info user userInfo

Get User Info

func NewUserInfo

func NewUserInfo(ctx *middleware.Context, handler UserInfoHandler) *UserInfo

NewUserInfo creates a new http.Handler for the user info operation

func (*UserInfo) ServeHTTP

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

type UserInfoHandler

type UserInfoHandler interface {
	Handle(UserInfoParams, interface{}) middleware.Responder
}

UserInfoHandler interface for that can handle valid user info params

type UserInfoHandlerFunc

type UserInfoHandlerFunc func(UserInfoParams, interface{}) middleware.Responder

UserInfoHandlerFunc turns a function with the right signature into a user info handler

func (UserInfoHandlerFunc) Handle

func (fn UserInfoHandlerFunc) Handle(params UserInfoParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UserInfoOK

type UserInfoOK struct {

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

UserInfoOK Success

swagger:response userInfoOK

func NewUserInfoOK

func NewUserInfoOK() *UserInfoOK

NewUserInfoOK creates UserInfoOK with default headers values

func (*UserInfoOK) SetPayload

func (o *UserInfoOK) SetPayload(payload *models.UserInfo)

SetPayload sets the payload to the user info o k response

func (*UserInfoOK) WithPayload

func (o *UserInfoOK) WithPayload(payload *models.UserInfo) *UserInfoOK

WithPayload adds the payload to the user info o k response

func (*UserInfoOK) WriteResponse

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

WriteResponse to the client

type UserInfoParams

type UserInfoParams struct {

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

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

swagger:parameters user_info

func NewUserInfoParams

func NewUserInfoParams() UserInfoParams

NewUserInfoParams creates a new UserInfoParams object

There are no default values defined in the spec.

func (*UserInfoParams) BindRequest

func (o *UserInfoParams) 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 NewUserInfoParams() beforehand.

type UserInfoURL

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

UserInfoURL generates an URL for the user info operation

func (*UserInfoURL) Build

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

Build a url path and query string

func (*UserInfoURL) BuildFull

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

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

func (*UserInfoURL) Must

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

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

func (*UserInfoURL) SetBasePath

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

func (o *UserInfoURL) String() string

String returns the string representation of the path with query string

func (*UserInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UserInfoURL) WithBasePath

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

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