op

package
v0.0.0-...-b26f218 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateTranslationFilesBodyStorageTypeLocal captures enum value "local"
	CreateTranslationFilesBodyStorageTypeLocal string = "local"

	// CreateTranslationFilesBodyStorageTypeS3 captures enum value "s3"
	CreateTranslationFilesBodyStorageTypeS3 string = "s3"
)
View Source
const (

	// UserChangeProfileBodyRoleAdmin captures enum value "admin"
	UserChangeProfileBodyRoleAdmin string = "admin"

	// UserChangeProfileBodyRoleModerator captures enum value "moderator"
	UserChangeProfileBodyRoleModerator string = "moderator"

	// UserChangeProfileBodyRoleTranslator captures enum value "translator"
	UserChangeProfileBodyRoleTranslator string = "translator"

	// UserChangeProfileBodyRoleUser captures enum value "user"
	UserChangeProfileBodyRoleUser string = "user"
)
View Source
const (

	// UserChangeProfileBodyStatusActive captures enum value "active"
	UserChangeProfileBodyStatusActive string = "active"

	// UserChangeProfileBodyStatusNotActive captures enum value "not active"
	UserChangeProfileBodyStatusNotActive string = "not active"

	// UserChangeProfileBodyStatusBanned captures enum value "banned"
	UserChangeProfileBodyStatusBanned string = "banned"
)
View Source
const AutoTranslationOKCode int = 200

AutoTranslationOKCode is the HTTP code returned for type AutoTranslationOK

View Source
const CreateCategoryNoContentCode int = 204

CreateCategoryNoContentCode is the HTTP code returned for type CreateCategoryNoContent

View Source
const CreateIdentifierNoContentCode int = 204

CreateIdentifierNoContentCode is the HTTP code returned for type CreateIdentifierNoContent

View Source
const CreateLocalizationNoContentCode int = 204

CreateLocalizationNoContentCode is the HTTP code returned for type CreateLocalizationNoContent

View Source
const CreateTranslationFilesNoContentCode int = 204

CreateTranslationFilesNoContentCode is the HTTP code returned for type CreateTranslationFilesNoContent

View Source
const CreateTranslationNoContentCode int = 204

CreateTranslationNoContentCode is the HTTP code returned for type CreateTranslationNoContent

View Source
const DeleteCategoryNoContentCode int = 204

DeleteCategoryNoContentCode is the HTTP code returned for type DeleteCategoryNoContent

View Source
const DeleteIdentifierNoContentCode int = 204

DeleteIdentifierNoContentCode is the HTTP code returned for type DeleteIdentifierNoContent

View Source
const DeleteLocalizationNoContentCode int = 204

DeleteLocalizationNoContentCode is the HTTP code returned for type DeleteLocalizationNoContent

View Source
const DeleteTranslationFileNoContentCode int = 204

DeleteTranslationFileNoContentCode is the HTTP code returned for type DeleteTranslationFileNoContent

View Source
const DeleteTranslationNoContentCode int = 204

DeleteTranslationNoContentCode is the HTTP code returned for type DeleteTranslationNoContent

View Source
const HealthCheckOKCode int = 200

HealthCheckOKCode is the HTTP code returned for type HealthCheckOK

View Source
const InfoOKCode int = 200

InfoOKCode is the HTTP code returned for type InfoOK

View Source
const ListCategoriesOKCode int = 200

ListCategoriesOKCode is the HTTP code returned for type ListCategoriesOK

View Source
const ListIdentifiersOKCode int = 200

ListIdentifiersOKCode is the HTTP code returned for type ListIdentifiersOK

View Source
const ListLocalizationOKCode int = 200

ListLocalizationOKCode is the HTTP code returned for type ListLocalizationOK

View Source
const ListTranslationFilesOKCode int = 200

ListTranslationFilesOKCode is the HTTP code returned for type ListTranslationFilesOK

View Source
const ListTranslationsOKCode int = 200

ListTranslationsOKCode is the HTTP code returned for type ListTranslationsOK

View Source
const ListUserOKCode int = 200

ListUserOKCode is the HTTP code returned for type ListUserOK

View Source
const LoginOKCode int = 200

LoginOKCode is the HTTP code returned for type LoginOK

View Source
const LogoutUserNoContentCode int = 204

LogoutUserNoContentCode is the HTTP code returned for type LogoutUserNoContent

View Source
const RegUserNoContentCode int = 204

RegUserNoContentCode is the HTTP code returned for type RegUserNoContent

View Source
const SettingStorageNoContentCode int = 204

SettingStorageNoContentCode is the HTTP code returned for type SettingStorageNoContent

View Source
const SettingTranslationNoContentCode int = 204

SettingTranslationNoContentCode is the HTTP code returned for type SettingTranslationNoContent

View Source
const SettingsOKCode int = 200

SettingsOKCode is the HTTP code returned for type SettingsOK

View Source
const StatisticOKCode int = 200

StatisticOKCode is the HTTP code returned for type StatisticOK

View Source
const StatusTranslationNoContentCode int = 204

StatusTranslationNoContentCode is the HTTP code returned for type StatusTranslationNoContent

View Source
const SupportedLanguagesOKCode int = 200

SupportedLanguagesOKCode is the HTTP code returned for type SupportedLanguagesOK

View Source
const UpdateCategoryNoContentCode int = 204

UpdateCategoryNoContentCode is the HTTP code returned for type UpdateCategoryNoContent

View Source
const UpdateIdentifierNoContentCode int = 204

UpdateIdentifierNoContentCode is the HTTP code returned for type UpdateIdentifierNoContent

View Source
const UpdateTranslationNoContentCode int = 204

UpdateTranslationNoContentCode is the HTTP code returned for type UpdateTranslationNoContent

View Source
const UserChangePasswordNoContentCode int = 204

UserChangePasswordNoContentCode is the HTTP code returned for type UserChangePasswordNoContent

View Source
const UserChangeProfileNoContentCode int = 204

UserChangeProfileNoContentCode is the HTTP code returned for type UserChangeProfileNoContent

View Source
const UserChangeStatusNoContentCode int = 204

UserChangeStatusNoContentCode is the HTTP code returned for type UserChangeStatusNoContent

View Source
const UserMeOKCode int = 200

UserMeOKCode is the HTTP code returned for type UserMeOK

View Source
const VersionOKCode int = 200

VersionOKCode is the HTTP code returned for type VersionOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoTranslation

type AutoTranslation struct {
	Context *middleware.Context
	Handler AutoTranslationHandler
}
AutoTranslation swagger:route POST /auto-translation autoTranslation

create auto translation (with libra or other service)

func NewAutoTranslation

func NewAutoTranslation(ctx *middleware.Context, handler AutoTranslationHandler) *AutoTranslation

NewAutoTranslation creates a new http.Handler for the auto translation operation

func (*AutoTranslation) ServeHTTP

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

type AutoTranslationBody

type AutoTranslationBody struct {

	// source
	// Required: true
	// Min Length: 2
	Source *string `json:"source"`

	// target
	// Required: true
	// Min Length: 2
	Target *string `json:"target"`

	// text
	// Required: true
	// Min Length: 1
	Text *string `json:"text"`
}

AutoTranslationBody auto translation body

swagger:model AutoTranslationBody

func (*AutoTranslationBody) ContextValidate

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

ContextValidate validates this auto translation body based on context it is used

func (*AutoTranslationBody) MarshalBinary

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

MarshalBinary interface implementation

func (*AutoTranslationBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AutoTranslationBody) UnmarshalJSON

func (o *AutoTranslationBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*AutoTranslationBody) Validate

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

Validate validates this auto translation body

type AutoTranslationDefault

type AutoTranslationDefault struct {

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

AutoTranslationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response autoTranslationDefault

func NewAutoTranslationDefault

func NewAutoTranslationDefault(code int) *AutoTranslationDefault

NewAutoTranslationDefault creates AutoTranslationDefault with default headers values

func (*AutoTranslationDefault) AutoTranslationResponder

func (o *AutoTranslationDefault) AutoTranslationResponder()

func (*AutoTranslationDefault) SetPayload

func (o *AutoTranslationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the auto translation default response

func (*AutoTranslationDefault) SetStatusCode

func (o *AutoTranslationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the auto translation default response

func (*AutoTranslationDefault) WithPayload

func (o *AutoTranslationDefault) WithPayload(payload *model.Error) *AutoTranslationDefault

WithPayload adds the payload to the auto translation default response

func (*AutoTranslationDefault) WithStatusCode

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

WithStatusCode adds the status to the auto translation default response

func (*AutoTranslationDefault) WriteResponse

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

WriteResponse to the client

type AutoTranslationHandler

type AutoTranslationHandler interface {
	Handle(AutoTranslationParams, *app.UserSession) AutoTranslationResponder
}

AutoTranslationHandler interface for that can handle valid auto translation params

type AutoTranslationHandlerFunc

type AutoTranslationHandlerFunc func(AutoTranslationParams, *app.UserSession) AutoTranslationResponder

AutoTranslationHandlerFunc turns a function with the right signature into a auto translation handler

func (AutoTranslationHandlerFunc) Handle

Handle executing the request and returning a response

type AutoTranslationNotImplementedResponder

type AutoTranslationNotImplementedResponder struct {
	middleware.Responder
}

func (*AutoTranslationNotImplementedResponder) AutoTranslationResponder

func (*AutoTranslationNotImplementedResponder) AutoTranslationResponder()

type AutoTranslationOK

type AutoTranslationOK struct {

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

AutoTranslationOK OK

swagger:response autoTranslationOK

func NewAutoTranslationOK

func NewAutoTranslationOK() *AutoTranslationOK

NewAutoTranslationOK creates AutoTranslationOK with default headers values

func (*AutoTranslationOK) AutoTranslationResponder

func (o *AutoTranslationOK) AutoTranslationResponder()

func (*AutoTranslationOK) SetPayload

func (o *AutoTranslationOK) SetPayload(payload *AutoTranslationOKBody)

SetPayload sets the payload to the auto translation o k response

func (*AutoTranslationOK) WithPayload

func (o *AutoTranslationOK) WithPayload(payload *AutoTranslationOKBody) *AutoTranslationOK

WithPayload adds the payload to the auto translation o k response

func (*AutoTranslationOK) WriteResponse

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

WriteResponse to the client

type AutoTranslationOKBody

type AutoTranslationOKBody struct {

	// text
	// Required: true
	Text *string `json:"text"`
}

AutoTranslationOKBody auto translation o k body

swagger:model AutoTranslationOKBody

func (*AutoTranslationOKBody) ContextValidate

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

ContextValidate validates this auto translation o k body based on context it is used

func (*AutoTranslationOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*AutoTranslationOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AutoTranslationOKBody) UnmarshalJSON

func (o *AutoTranslationOKBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*AutoTranslationOKBody) Validate

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

Validate validates this auto translation o k body

type AutoTranslationParams

type AutoTranslationParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args AutoTranslationBody
}

AutoTranslationParams contains all the bound params for the auto translation operation typically these are obtained from a http.Request

swagger:parameters autoTranslation

func NewAutoTranslationParams

func NewAutoTranslationParams() AutoTranslationParams

NewAutoTranslationParams creates a new AutoTranslationParams object

There are no default values defined in the spec.

func (*AutoTranslationParams) BindRequest

func (o *AutoTranslationParams) 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 NewAutoTranslationParams() beforehand.

type AutoTranslationResponder

type AutoTranslationResponder interface {
	middleware.Responder
	AutoTranslationResponder()
}

func AutoTranslationNotImplemented

func AutoTranslationNotImplemented() AutoTranslationResponder

type AutoTranslationURL

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

AutoTranslationURL generates an URL for the auto translation operation

func (*AutoTranslationURL) Build

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

Build a url path and query string

func (*AutoTranslationURL) BuildFull

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

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

func (*AutoTranslationURL) Must

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

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

func (*AutoTranslationURL) SetBasePath

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

func (o *AutoTranslationURL) String() string

String returns the string representation of the path with query string

func (*AutoTranslationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AutoTranslationURL) WithBasePath

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

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 CreateCategory

type CreateCategory struct {
	Context *middleware.Context
	Handler CreateCategoryHandler
}
CreateCategory swagger:route POST /category createCategory

create new category

func NewCreateCategory

func NewCreateCategory(ctx *middleware.Context, handler CreateCategoryHandler) *CreateCategory

NewCreateCategory creates a new http.Handler for the create category operation

func (*CreateCategory) ServeHTTP

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

type CreateCategoryBody

type CreateCategoryBody struct {

	// name
	// Required: true
	// Max Length: 255
	// Min Length: 1
	Name *string `json:"name"`
}

CreateCategoryBody create category body

swagger:model CreateCategoryBody

func (*CreateCategoryBody) ContextValidate

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

ContextValidate validates this create category body based on context it is used

func (*CreateCategoryBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateCategoryBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateCategoryBody) UnmarshalJSON

func (o *CreateCategoryBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*CreateCategoryBody) Validate

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

Validate validates this create category body

type CreateCategoryDefault

type CreateCategoryDefault struct {

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

CreateCategoryDefault General errors using same model as used by go-swagger for validation errors.

swagger:response createCategoryDefault

func NewCreateCategoryDefault

func NewCreateCategoryDefault(code int) *CreateCategoryDefault

NewCreateCategoryDefault creates CreateCategoryDefault with default headers values

func (*CreateCategoryDefault) CreateCategoryResponder

func (o *CreateCategoryDefault) CreateCategoryResponder()

func (*CreateCategoryDefault) SetPayload

func (o *CreateCategoryDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the create category default response

func (*CreateCategoryDefault) SetStatusCode

func (o *CreateCategoryDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create category default response

func (*CreateCategoryDefault) WithPayload

func (o *CreateCategoryDefault) WithPayload(payload *model.Error) *CreateCategoryDefault

WithPayload adds the payload to the create category default response

func (*CreateCategoryDefault) WithStatusCode

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

WithStatusCode adds the status to the create category default response

func (*CreateCategoryDefault) WriteResponse

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

WriteResponse to the client

type CreateCategoryHandler

type CreateCategoryHandler interface {
	Handle(CreateCategoryParams, *app.UserSession) CreateCategoryResponder
}

CreateCategoryHandler interface for that can handle valid create category params

type CreateCategoryHandlerFunc

type CreateCategoryHandlerFunc func(CreateCategoryParams, *app.UserSession) CreateCategoryResponder

CreateCategoryHandlerFunc turns a function with the right signature into a create category handler

func (CreateCategoryHandlerFunc) Handle

Handle executing the request and returning a response

type CreateCategoryNoContent

type CreateCategoryNoContent struct {
}

CreateCategoryNoContent No content in answer

swagger:response createCategoryNoContent

func NewCreateCategoryNoContent

func NewCreateCategoryNoContent() *CreateCategoryNoContent

NewCreateCategoryNoContent creates CreateCategoryNoContent with default headers values

func (*CreateCategoryNoContent) CreateCategoryResponder

func (o *CreateCategoryNoContent) CreateCategoryResponder()

func (*CreateCategoryNoContent) WriteResponse

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

WriteResponse to the client

type CreateCategoryNotImplementedResponder

type CreateCategoryNotImplementedResponder struct {
	middleware.Responder
}

func (*CreateCategoryNotImplementedResponder) CreateCategoryResponder

func (*CreateCategoryNotImplementedResponder) CreateCategoryResponder()

type CreateCategoryParams

type CreateCategoryParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args CreateCategoryBody
}

CreateCategoryParams contains all the bound params for the create category operation typically these are obtained from a http.Request

swagger:parameters createCategory

func NewCreateCategoryParams

func NewCreateCategoryParams() CreateCategoryParams

NewCreateCategoryParams creates a new CreateCategoryParams object

There are no default values defined in the spec.

func (*CreateCategoryParams) BindRequest

func (o *CreateCategoryParams) 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 NewCreateCategoryParams() beforehand.

type CreateCategoryResponder

type CreateCategoryResponder interface {
	middleware.Responder
	CreateCategoryResponder()
}

func CreateCategoryNotImplemented

func CreateCategoryNotImplemented() CreateCategoryResponder

type CreateCategoryURL

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

CreateCategoryURL generates an URL for the create category operation

func (*CreateCategoryURL) Build

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

Build a url path and query string

func (*CreateCategoryURL) BuildFull

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

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

func (*CreateCategoryURL) Must

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

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

func (*CreateCategoryURL) SetBasePath

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

func (o *CreateCategoryURL) String() string

String returns the string representation of the path with query string

func (*CreateCategoryURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateCategoryURL) WithBasePath

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

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 CreateIdentifier

type CreateIdentifier struct {
	Context *middleware.Context
	Handler CreateIdentifierHandler
}
CreateIdentifier swagger:route POST /identifier createIdentifier

create new identifier

func NewCreateIdentifier

func NewCreateIdentifier(ctx *middleware.Context, handler CreateIdentifierHandler) *CreateIdentifier

NewCreateIdentifier creates a new http.Handler for the create identifier operation

func (*CreateIdentifier) ServeHTTP

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

type CreateIdentifierBody

type CreateIdentifierBody struct {

	// category id
	CategoryID int64 `json:"category_id,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// name
	// Required: true
	// Max Length: 255
	// Min Length: 1
	Name *string `json:"name"`

	// parent id
	ParentID int64 `json:"parent_id,omitempty"`

	// platforms
	Platforms []string `json:"platforms"`

	// text plural
	TextPlural string `json:"text_plural,omitempty"`

	// text singular
	TextSingular string `json:"text_singular,omitempty"`
}

CreateIdentifierBody create identifier body

swagger:model CreateIdentifierBody

func (*CreateIdentifierBody) ContextValidate

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

ContextValidate validates this create identifier body based on context it is used

func (*CreateIdentifierBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateIdentifierBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateIdentifierBody) UnmarshalJSON

func (o *CreateIdentifierBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*CreateIdentifierBody) Validate

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

Validate validates this create identifier body

type CreateIdentifierDefault

type CreateIdentifierDefault struct {

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

CreateIdentifierDefault General errors using same model as used by go-swagger for validation errors.

swagger:response createIdentifierDefault

func NewCreateIdentifierDefault

func NewCreateIdentifierDefault(code int) *CreateIdentifierDefault

NewCreateIdentifierDefault creates CreateIdentifierDefault with default headers values

func (*CreateIdentifierDefault) CreateIdentifierResponder

func (o *CreateIdentifierDefault) CreateIdentifierResponder()

func (*CreateIdentifierDefault) SetPayload

func (o *CreateIdentifierDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the create identifier default response

func (*CreateIdentifierDefault) SetStatusCode

func (o *CreateIdentifierDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create identifier default response

func (*CreateIdentifierDefault) WithPayload

func (o *CreateIdentifierDefault) WithPayload(payload *model.Error) *CreateIdentifierDefault

WithPayload adds the payload to the create identifier default response

func (*CreateIdentifierDefault) WithStatusCode

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

WithStatusCode adds the status to the create identifier default response

func (*CreateIdentifierDefault) WriteResponse

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

WriteResponse to the client

type CreateIdentifierHandler

type CreateIdentifierHandler interface {
	Handle(CreateIdentifierParams, *app.UserSession) CreateIdentifierResponder
}

CreateIdentifierHandler interface for that can handle valid create identifier params

type CreateIdentifierHandlerFunc

type CreateIdentifierHandlerFunc func(CreateIdentifierParams, *app.UserSession) CreateIdentifierResponder

CreateIdentifierHandlerFunc turns a function with the right signature into a create identifier handler

func (CreateIdentifierHandlerFunc) Handle

Handle executing the request and returning a response

type CreateIdentifierNoContent

type CreateIdentifierNoContent struct {
}

CreateIdentifierNoContent No content in answer

swagger:response createIdentifierNoContent

func NewCreateIdentifierNoContent

func NewCreateIdentifierNoContent() *CreateIdentifierNoContent

NewCreateIdentifierNoContent creates CreateIdentifierNoContent with default headers values

func (*CreateIdentifierNoContent) CreateIdentifierResponder

func (o *CreateIdentifierNoContent) CreateIdentifierResponder()

func (*CreateIdentifierNoContent) WriteResponse

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

WriteResponse to the client

type CreateIdentifierNotImplementedResponder

type CreateIdentifierNotImplementedResponder struct {
	middleware.Responder
}

func (*CreateIdentifierNotImplementedResponder) CreateIdentifierResponder

func (*CreateIdentifierNotImplementedResponder) CreateIdentifierResponder()

type CreateIdentifierParams

type CreateIdentifierParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args CreateIdentifierBody
}

CreateIdentifierParams contains all the bound params for the create identifier operation typically these are obtained from a http.Request

swagger:parameters createIdentifier

func NewCreateIdentifierParams

func NewCreateIdentifierParams() CreateIdentifierParams

NewCreateIdentifierParams creates a new CreateIdentifierParams object

There are no default values defined in the spec.

func (*CreateIdentifierParams) BindRequest

func (o *CreateIdentifierParams) 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 NewCreateIdentifierParams() beforehand.

type CreateIdentifierResponder

type CreateIdentifierResponder interface {
	middleware.Responder
	CreateIdentifierResponder()
}

func CreateIdentifierNotImplemented

func CreateIdentifierNotImplemented() CreateIdentifierResponder

type CreateIdentifierURL

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

CreateIdentifierURL generates an URL for the create identifier operation

func (*CreateIdentifierURL) Build

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

Build a url path and query string

func (*CreateIdentifierURL) BuildFull

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

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

func (*CreateIdentifierURL) Must

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

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

func (*CreateIdentifierURL) SetBasePath

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

func (o *CreateIdentifierURL) String() string

String returns the string representation of the path with query string

func (*CreateIdentifierURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateIdentifierURL) WithBasePath

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

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 CreateLocalization

type CreateLocalization struct {
	Context *middleware.Context
	Handler CreateLocalizationHandler
}
CreateLocalization swagger:route POST /localization createLocalization

create new localization type

func NewCreateLocalization

func NewCreateLocalization(ctx *middleware.Context, handler CreateLocalizationHandler) *CreateLocalization

NewCreateLocalization creates a new http.Handler for the create localization operation

func (*CreateLocalization) ServeHTTP

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

type CreateLocalizationBody

type CreateLocalizationBody struct {

	// icon
	Icon string `json:"icon,omitempty"`

	// lang name
	// Required: true
	// Max Length: 255
	// Min Length: 1
	LangName *string `json:"lang_name"`

	// locale
	// Required: true
	// Max Length: 10
	// Min Length: 2
	Locale *string `json:"locale"`
}

CreateLocalizationBody create localization body

swagger:model CreateLocalizationBody

func (*CreateLocalizationBody) ContextValidate

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

ContextValidate validates this create localization body based on context it is used

func (*CreateLocalizationBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateLocalizationBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateLocalizationBody) UnmarshalJSON

func (o *CreateLocalizationBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*CreateLocalizationBody) Validate

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

Validate validates this create localization body

type CreateLocalizationDefault

type CreateLocalizationDefault struct {

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

CreateLocalizationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response createLocalizationDefault

func NewCreateLocalizationDefault

func NewCreateLocalizationDefault(code int) *CreateLocalizationDefault

NewCreateLocalizationDefault creates CreateLocalizationDefault with default headers values

func (*CreateLocalizationDefault) CreateLocalizationResponder

func (o *CreateLocalizationDefault) CreateLocalizationResponder()

func (*CreateLocalizationDefault) SetPayload

func (o *CreateLocalizationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the create localization default response

func (*CreateLocalizationDefault) SetStatusCode

func (o *CreateLocalizationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create localization default response

func (*CreateLocalizationDefault) WithPayload

WithPayload adds the payload to the create localization default response

func (*CreateLocalizationDefault) WithStatusCode

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

WithStatusCode adds the status to the create localization default response

func (*CreateLocalizationDefault) WriteResponse

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

WriteResponse to the client

type CreateLocalizationHandler

type CreateLocalizationHandler interface {
	Handle(CreateLocalizationParams, *app.UserSession) CreateLocalizationResponder
}

CreateLocalizationHandler interface for that can handle valid create localization params

type CreateLocalizationHandlerFunc

type CreateLocalizationHandlerFunc func(CreateLocalizationParams, *app.UserSession) CreateLocalizationResponder

CreateLocalizationHandlerFunc turns a function with the right signature into a create localization handler

func (CreateLocalizationHandlerFunc) Handle

Handle executing the request and returning a response

type CreateLocalizationNoContent

type CreateLocalizationNoContent struct {
}

CreateLocalizationNoContent No content in answer

swagger:response createLocalizationNoContent

func NewCreateLocalizationNoContent

func NewCreateLocalizationNoContent() *CreateLocalizationNoContent

NewCreateLocalizationNoContent creates CreateLocalizationNoContent with default headers values

func (*CreateLocalizationNoContent) CreateLocalizationResponder

func (o *CreateLocalizationNoContent) CreateLocalizationResponder()

func (*CreateLocalizationNoContent) WriteResponse

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

WriteResponse to the client

type CreateLocalizationNotImplementedResponder

type CreateLocalizationNotImplementedResponder struct {
	middleware.Responder
}

func (*CreateLocalizationNotImplementedResponder) CreateLocalizationResponder

func (*CreateLocalizationNotImplementedResponder) CreateLocalizationResponder()

type CreateLocalizationParams

type CreateLocalizationParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args CreateLocalizationBody
}

CreateLocalizationParams contains all the bound params for the create localization operation typically these are obtained from a http.Request

swagger:parameters createLocalization

func NewCreateLocalizationParams

func NewCreateLocalizationParams() CreateLocalizationParams

NewCreateLocalizationParams creates a new CreateLocalizationParams object

There are no default values defined in the spec.

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

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

type CreateLocalizationResponder

type CreateLocalizationResponder interface {
	middleware.Responder
	CreateLocalizationResponder()
}

func CreateLocalizationNotImplemented

func CreateLocalizationNotImplemented() CreateLocalizationResponder

type CreateLocalizationURL

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

CreateLocalizationURL generates an URL for the create localization operation

func (*CreateLocalizationURL) Build

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

Build a url path and query string

func (*CreateLocalizationURL) BuildFull

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

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

func (*CreateLocalizationURL) Must

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

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

func (*CreateLocalizationURL) SetBasePath

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

func (o *CreateLocalizationURL) String() string

String returns the string representation of the path with query string

func (*CreateLocalizationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateLocalizationURL) WithBasePath

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

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 CreateTranslation

type CreateTranslation struct {
	Context *middleware.Context
	Handler CreateTranslationHandler
}
CreateTranslation swagger:route POST /translation createTranslation

create new translation

func NewCreateTranslation

func NewCreateTranslation(ctx *middleware.Context, handler CreateTranslationHandler) *CreateTranslation

NewCreateTranslation creates a new http.Handler for the create translation operation

func (*CreateTranslation) ServeHTTP

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

type CreateTranslationBody

type CreateTranslationBody struct {

	// identifier id
	// Required: true
	IdentifierID *int64 `json:"identifier_id"`

	// localization id
	// Required: true
	LocalizationID *int64 `json:"localization_id"`

	// plural
	// Required: true
	Plural *string `json:"plural"`

	// singular
	// Required: true
	Singular *string `json:"singular"`
}

CreateTranslationBody create translation body

swagger:model CreateTranslationBody

func (*CreateTranslationBody) ContextValidate

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

ContextValidate validates this create translation body based on context it is used

func (*CreateTranslationBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTranslationBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTranslationBody) UnmarshalJSON

func (o *CreateTranslationBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*CreateTranslationBody) Validate

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

Validate validates this create translation body

type CreateTranslationDefault

type CreateTranslationDefault struct {

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

CreateTranslationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response createTranslationDefault

func NewCreateTranslationDefault

func NewCreateTranslationDefault(code int) *CreateTranslationDefault

NewCreateTranslationDefault creates CreateTranslationDefault with default headers values

func (*CreateTranslationDefault) CreateTranslationResponder

func (o *CreateTranslationDefault) CreateTranslationResponder()

func (*CreateTranslationDefault) SetPayload

func (o *CreateTranslationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the create translation default response

func (*CreateTranslationDefault) SetStatusCode

func (o *CreateTranslationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create translation default response

func (*CreateTranslationDefault) WithPayload

WithPayload adds the payload to the create translation default response

func (*CreateTranslationDefault) WithStatusCode

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

WithStatusCode adds the status to the create translation default response

func (*CreateTranslationDefault) WriteResponse

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

WriteResponse to the client

type CreateTranslationFiles

type CreateTranslationFiles struct {
	Context *middleware.Context
	Handler CreateTranslationFilesHandler
}
CreateTranslationFiles swagger:route POST /translation/files createTranslationFiles

create translation files for one localization (language) and different platforms (ios,android,web)

func NewCreateTranslationFiles

func NewCreateTranslationFiles(ctx *middleware.Context, handler CreateTranslationFilesHandler) *CreateTranslationFiles

NewCreateTranslationFiles creates a new http.Handler for the create translation files operation

func (*CreateTranslationFiles) ServeHTTP

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

type CreateTranslationFilesBody

type CreateTranslationFilesBody struct {

	// localization id
	// Required: true
	LocalizationID *int64 `json:"localization_id"`

	// platforms
	// Required: true
	Platforms []string `json:"platforms"`

	// storage type
	// Enum: [local s3]
	StorageType *string `json:"storage_type,omitempty"`
}

CreateTranslationFilesBody create translation files body

swagger:model CreateTranslationFilesBody

func (*CreateTranslationFilesBody) ContextValidate

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

ContextValidate validates this create translation files body based on context it is used

func (*CreateTranslationFilesBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTranslationFilesBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTranslationFilesBody) UnmarshalJSON

func (o *CreateTranslationFilesBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*CreateTranslationFilesBody) Validate

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

Validate validates this create translation files body

type CreateTranslationFilesDefault

type CreateTranslationFilesDefault struct {

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

CreateTranslationFilesDefault General errors using same model as used by go-swagger for validation errors.

swagger:response createTranslationFilesDefault

func NewCreateTranslationFilesDefault

func NewCreateTranslationFilesDefault(code int) *CreateTranslationFilesDefault

NewCreateTranslationFilesDefault creates CreateTranslationFilesDefault with default headers values

func (*CreateTranslationFilesDefault) CreateTranslationFilesResponder

func (o *CreateTranslationFilesDefault) CreateTranslationFilesResponder()

func (*CreateTranslationFilesDefault) SetPayload

func (o *CreateTranslationFilesDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the create translation files default response

func (*CreateTranslationFilesDefault) SetStatusCode

func (o *CreateTranslationFilesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create translation files default response

func (*CreateTranslationFilesDefault) WithPayload

WithPayload adds the payload to the create translation files default response

func (*CreateTranslationFilesDefault) WithStatusCode

WithStatusCode adds the status to the create translation files default response

func (*CreateTranslationFilesDefault) WriteResponse

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

WriteResponse to the client

type CreateTranslationFilesHandler

type CreateTranslationFilesHandler interface {
	Handle(CreateTranslationFilesParams, *app.UserSession) CreateTranslationFilesResponder
}

CreateTranslationFilesHandler interface for that can handle valid create translation files params

type CreateTranslationFilesHandlerFunc

type CreateTranslationFilesHandlerFunc func(CreateTranslationFilesParams, *app.UserSession) CreateTranslationFilesResponder

CreateTranslationFilesHandlerFunc turns a function with the right signature into a create translation files handler

func (CreateTranslationFilesHandlerFunc) Handle

Handle executing the request and returning a response

type CreateTranslationFilesNoContent

type CreateTranslationFilesNoContent struct {
}

CreateTranslationFilesNoContent No content in answer

swagger:response createTranslationFilesNoContent

func NewCreateTranslationFilesNoContent

func NewCreateTranslationFilesNoContent() *CreateTranslationFilesNoContent

NewCreateTranslationFilesNoContent creates CreateTranslationFilesNoContent with default headers values

func (*CreateTranslationFilesNoContent) CreateTranslationFilesResponder

func (o *CreateTranslationFilesNoContent) CreateTranslationFilesResponder()

func (*CreateTranslationFilesNoContent) WriteResponse

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

WriteResponse to the client

type CreateTranslationFilesNotImplementedResponder

type CreateTranslationFilesNotImplementedResponder struct {
	middleware.Responder
}

func (*CreateTranslationFilesNotImplementedResponder) CreateTranslationFilesResponder

func (*CreateTranslationFilesNotImplementedResponder) CreateTranslationFilesResponder()

type CreateTranslationFilesParams

type CreateTranslationFilesParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args CreateTranslationFilesBody
}

CreateTranslationFilesParams contains all the bound params for the create translation files operation typically these are obtained from a http.Request

swagger:parameters createTranslationFiles

func NewCreateTranslationFilesParams

func NewCreateTranslationFilesParams() CreateTranslationFilesParams

NewCreateTranslationFilesParams creates a new CreateTranslationFilesParams object

There are no default values defined in the spec.

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

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

type CreateTranslationFilesResponder

type CreateTranslationFilesResponder interface {
	middleware.Responder
	CreateTranslationFilesResponder()
}

func CreateTranslationFilesNotImplemented

func CreateTranslationFilesNotImplemented() CreateTranslationFilesResponder

type CreateTranslationFilesURL

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

CreateTranslationFilesURL generates an URL for the create translation files operation

func (*CreateTranslationFilesURL) Build

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

Build a url path and query string

func (*CreateTranslationFilesURL) BuildFull

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

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

func (*CreateTranslationFilesURL) Must

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

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

func (*CreateTranslationFilesURL) SetBasePath

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

func (o *CreateTranslationFilesURL) String() string

String returns the string representation of the path with query string

func (*CreateTranslationFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateTranslationFilesURL) 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 CreateTranslationHandler

type CreateTranslationHandler interface {
	Handle(CreateTranslationParams, *app.UserSession) CreateTranslationResponder
}

CreateTranslationHandler interface for that can handle valid create translation params

type CreateTranslationHandlerFunc

type CreateTranslationHandlerFunc func(CreateTranslationParams, *app.UserSession) CreateTranslationResponder

CreateTranslationHandlerFunc turns a function with the right signature into a create translation handler

func (CreateTranslationHandlerFunc) Handle

Handle executing the request and returning a response

type CreateTranslationNoContent

type CreateTranslationNoContent struct {
}

CreateTranslationNoContent No content in answer

swagger:response createTranslationNoContent

func NewCreateTranslationNoContent

func NewCreateTranslationNoContent() *CreateTranslationNoContent

NewCreateTranslationNoContent creates CreateTranslationNoContent with default headers values

func (*CreateTranslationNoContent) CreateTranslationResponder

func (o *CreateTranslationNoContent) CreateTranslationResponder()

func (*CreateTranslationNoContent) WriteResponse

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

WriteResponse to the client

type CreateTranslationNotImplementedResponder

type CreateTranslationNotImplementedResponder struct {
	middleware.Responder
}

func (*CreateTranslationNotImplementedResponder) CreateTranslationResponder

func (*CreateTranslationNotImplementedResponder) CreateTranslationResponder()

type CreateTranslationParams

type CreateTranslationParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args CreateTranslationBody
}

CreateTranslationParams contains all the bound params for the create translation operation typically these are obtained from a http.Request

swagger:parameters createTranslation

func NewCreateTranslationParams

func NewCreateTranslationParams() CreateTranslationParams

NewCreateTranslationParams creates a new CreateTranslationParams object

There are no default values defined in the spec.

func (*CreateTranslationParams) BindRequest

func (o *CreateTranslationParams) 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 NewCreateTranslationParams() beforehand.

type CreateTranslationResponder

type CreateTranslationResponder interface {
	middleware.Responder
	CreateTranslationResponder()
}

func CreateTranslationNotImplemented

func CreateTranslationNotImplemented() CreateTranslationResponder

type CreateTranslationURL

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

CreateTranslationURL generates an URL for the create translation operation

func (*CreateTranslationURL) Build

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

Build a url path and query string

func (*CreateTranslationURL) BuildFull

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

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

func (*CreateTranslationURL) Must

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

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

func (*CreateTranslationURL) SetBasePath

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

func (o *CreateTranslationURL) String() string

String returns the string representation of the path with query string

func (*CreateTranslationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateTranslationURL) WithBasePath

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

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 DeleteCategory

type DeleteCategory struct {
	Context *middleware.Context
	Handler DeleteCategoryHandler
}
DeleteCategory swagger:route DELETE /category/{id} deleteCategory

delete category

func NewDeleteCategory

func NewDeleteCategory(ctx *middleware.Context, handler DeleteCategoryHandler) *DeleteCategory

NewDeleteCategory creates a new http.Handler for the delete category operation

func (*DeleteCategory) ServeHTTP

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

type DeleteCategoryDefault

type DeleteCategoryDefault struct {

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

DeleteCategoryDefault General errors using same model as used by go-swagger for validation errors.

swagger:response deleteCategoryDefault

func NewDeleteCategoryDefault

func NewDeleteCategoryDefault(code int) *DeleteCategoryDefault

NewDeleteCategoryDefault creates DeleteCategoryDefault with default headers values

func (*DeleteCategoryDefault) DeleteCategoryResponder

func (o *DeleteCategoryDefault) DeleteCategoryResponder()

func (*DeleteCategoryDefault) SetPayload

func (o *DeleteCategoryDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the delete category default response

func (*DeleteCategoryDefault) SetStatusCode

func (o *DeleteCategoryDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete category default response

func (*DeleteCategoryDefault) WithPayload

func (o *DeleteCategoryDefault) WithPayload(payload *model.Error) *DeleteCategoryDefault

WithPayload adds the payload to the delete category default response

func (*DeleteCategoryDefault) WithStatusCode

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

WithStatusCode adds the status to the delete category default response

func (*DeleteCategoryDefault) WriteResponse

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

WriteResponse to the client

type DeleteCategoryHandler

type DeleteCategoryHandler interface {
	Handle(DeleteCategoryParams, *app.UserSession) DeleteCategoryResponder
}

DeleteCategoryHandler interface for that can handle valid delete category params

type DeleteCategoryHandlerFunc

type DeleteCategoryHandlerFunc func(DeleteCategoryParams, *app.UserSession) DeleteCategoryResponder

DeleteCategoryHandlerFunc turns a function with the right signature into a delete category handler

func (DeleteCategoryHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteCategoryNoContent

type DeleteCategoryNoContent struct {
}

DeleteCategoryNoContent No content in answer

swagger:response deleteCategoryNoContent

func NewDeleteCategoryNoContent

func NewDeleteCategoryNoContent() *DeleteCategoryNoContent

NewDeleteCategoryNoContent creates DeleteCategoryNoContent with default headers values

func (*DeleteCategoryNoContent) DeleteCategoryResponder

func (o *DeleteCategoryNoContent) DeleteCategoryResponder()

func (*DeleteCategoryNoContent) WriteResponse

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

WriteResponse to the client

type DeleteCategoryNotImplementedResponder

type DeleteCategoryNotImplementedResponder struct {
	middleware.Responder
}

func (*DeleteCategoryNotImplementedResponder) DeleteCategoryResponder

func (*DeleteCategoryNotImplementedResponder) DeleteCategoryResponder()

type DeleteCategoryParams

type DeleteCategoryParams struct {

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

	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

DeleteCategoryParams contains all the bound params for the delete category operation typically these are obtained from a http.Request

swagger:parameters deleteCategory

func NewDeleteCategoryParams

func NewDeleteCategoryParams() DeleteCategoryParams

NewDeleteCategoryParams creates a new DeleteCategoryParams object

There are no default values defined in the spec.

func (*DeleteCategoryParams) BindRequest

func (o *DeleteCategoryParams) 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 NewDeleteCategoryParams() beforehand.

type DeleteCategoryResponder

type DeleteCategoryResponder interface {
	middleware.Responder
	DeleteCategoryResponder()
}

func DeleteCategoryNotImplemented

func DeleteCategoryNotImplemented() DeleteCategoryResponder

type DeleteCategoryURL

type DeleteCategoryURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteCategoryURL generates an URL for the delete category operation

func (*DeleteCategoryURL) Build

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

Build a url path and query string

func (*DeleteCategoryURL) BuildFull

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

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

func (*DeleteCategoryURL) Must

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

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

func (*DeleteCategoryURL) SetBasePath

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

func (o *DeleteCategoryURL) String() string

String returns the string representation of the path with query string

func (*DeleteCategoryURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteCategoryURL) WithBasePath

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

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 DeleteIdentifier

type DeleteIdentifier struct {
	Context *middleware.Context
	Handler DeleteIdentifierHandler
}
DeleteIdentifier swagger:route DELETE /identifier/{id} deleteIdentifier

delete identifier by id only if he dosent use in localizations otherwise error

func NewDeleteIdentifier

func NewDeleteIdentifier(ctx *middleware.Context, handler DeleteIdentifierHandler) *DeleteIdentifier

NewDeleteIdentifier creates a new http.Handler for the delete identifier operation

func (*DeleteIdentifier) ServeHTTP

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

type DeleteIdentifierDefault

type DeleteIdentifierDefault struct {

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

DeleteIdentifierDefault General errors using same model as used by go-swagger for validation errors.

swagger:response deleteIdentifierDefault

func NewDeleteIdentifierDefault

func NewDeleteIdentifierDefault(code int) *DeleteIdentifierDefault

NewDeleteIdentifierDefault creates DeleteIdentifierDefault with default headers values

func (*DeleteIdentifierDefault) DeleteIdentifierResponder

func (o *DeleteIdentifierDefault) DeleteIdentifierResponder()

func (*DeleteIdentifierDefault) SetPayload

func (o *DeleteIdentifierDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the delete identifier default response

func (*DeleteIdentifierDefault) SetStatusCode

func (o *DeleteIdentifierDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete identifier default response

func (*DeleteIdentifierDefault) WithPayload

func (o *DeleteIdentifierDefault) WithPayload(payload *model.Error) *DeleteIdentifierDefault

WithPayload adds the payload to the delete identifier default response

func (*DeleteIdentifierDefault) WithStatusCode

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

WithStatusCode adds the status to the delete identifier default response

func (*DeleteIdentifierDefault) WriteResponse

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

WriteResponse to the client

type DeleteIdentifierHandler

type DeleteIdentifierHandler interface {
	Handle(DeleteIdentifierParams, *app.UserSession) DeleteIdentifierResponder
}

DeleteIdentifierHandler interface for that can handle valid delete identifier params

type DeleteIdentifierHandlerFunc

type DeleteIdentifierHandlerFunc func(DeleteIdentifierParams, *app.UserSession) DeleteIdentifierResponder

DeleteIdentifierHandlerFunc turns a function with the right signature into a delete identifier handler

func (DeleteIdentifierHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteIdentifierNoContent

type DeleteIdentifierNoContent struct {
}

DeleteIdentifierNoContent No content in answer

swagger:response deleteIdentifierNoContent

func NewDeleteIdentifierNoContent

func NewDeleteIdentifierNoContent() *DeleteIdentifierNoContent

NewDeleteIdentifierNoContent creates DeleteIdentifierNoContent with default headers values

func (*DeleteIdentifierNoContent) DeleteIdentifierResponder

func (o *DeleteIdentifierNoContent) DeleteIdentifierResponder()

func (*DeleteIdentifierNoContent) WriteResponse

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

WriteResponse to the client

type DeleteIdentifierNotImplementedResponder

type DeleteIdentifierNotImplementedResponder struct {
	middleware.Responder
}

func (*DeleteIdentifierNotImplementedResponder) DeleteIdentifierResponder

func (*DeleteIdentifierNotImplementedResponder) DeleteIdentifierResponder()

type DeleteIdentifierParams

type DeleteIdentifierParams struct {

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

	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

DeleteIdentifierParams contains all the bound params for the delete identifier operation typically these are obtained from a http.Request

swagger:parameters deleteIdentifier

func NewDeleteIdentifierParams

func NewDeleteIdentifierParams() DeleteIdentifierParams

NewDeleteIdentifierParams creates a new DeleteIdentifierParams object

There are no default values defined in the spec.

func (*DeleteIdentifierParams) BindRequest

func (o *DeleteIdentifierParams) 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 NewDeleteIdentifierParams() beforehand.

type DeleteIdentifierResponder

type DeleteIdentifierResponder interface {
	middleware.Responder
	DeleteIdentifierResponder()
}

func DeleteIdentifierNotImplemented

func DeleteIdentifierNotImplemented() DeleteIdentifierResponder

type DeleteIdentifierURL

type DeleteIdentifierURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteIdentifierURL generates an URL for the delete identifier operation

func (*DeleteIdentifierURL) Build

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

Build a url path and query string

func (*DeleteIdentifierURL) BuildFull

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

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

func (*DeleteIdentifierURL) Must

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

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

func (*DeleteIdentifierURL) SetBasePath

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

func (o *DeleteIdentifierURL) String() string

String returns the string representation of the path with query string

func (*DeleteIdentifierURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteIdentifierURL) WithBasePath

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

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 DeleteLocalization

type DeleteLocalization struct {
	Context *middleware.Context
	Handler DeleteLocalizationHandler
}
DeleteLocalization swagger:route DELETE /localization/{id} deleteLocalization

delete localization by id

func NewDeleteLocalization

func NewDeleteLocalization(ctx *middleware.Context, handler DeleteLocalizationHandler) *DeleteLocalization

NewDeleteLocalization creates a new http.Handler for the delete localization operation

func (*DeleteLocalization) ServeHTTP

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

type DeleteLocalizationDefault

type DeleteLocalizationDefault struct {

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

DeleteLocalizationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response deleteLocalizationDefault

func NewDeleteLocalizationDefault

func NewDeleteLocalizationDefault(code int) *DeleteLocalizationDefault

NewDeleteLocalizationDefault creates DeleteLocalizationDefault with default headers values

func (*DeleteLocalizationDefault) DeleteLocalizationResponder

func (o *DeleteLocalizationDefault) DeleteLocalizationResponder()

func (*DeleteLocalizationDefault) SetPayload

func (o *DeleteLocalizationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the delete localization default response

func (*DeleteLocalizationDefault) SetStatusCode

func (o *DeleteLocalizationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete localization default response

func (*DeleteLocalizationDefault) WithPayload

WithPayload adds the payload to the delete localization default response

func (*DeleteLocalizationDefault) WithStatusCode

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

WithStatusCode adds the status to the delete localization default response

func (*DeleteLocalizationDefault) WriteResponse

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

WriteResponse to the client

type DeleteLocalizationHandler

type DeleteLocalizationHandler interface {
	Handle(DeleteLocalizationParams, *app.UserSession) DeleteLocalizationResponder
}

DeleteLocalizationHandler interface for that can handle valid delete localization params

type DeleteLocalizationHandlerFunc

type DeleteLocalizationHandlerFunc func(DeleteLocalizationParams, *app.UserSession) DeleteLocalizationResponder

DeleteLocalizationHandlerFunc turns a function with the right signature into a delete localization handler

func (DeleteLocalizationHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteLocalizationNoContent

type DeleteLocalizationNoContent struct {
}

DeleteLocalizationNoContent No content in answer

swagger:response deleteLocalizationNoContent

func NewDeleteLocalizationNoContent

func NewDeleteLocalizationNoContent() *DeleteLocalizationNoContent

NewDeleteLocalizationNoContent creates DeleteLocalizationNoContent with default headers values

func (*DeleteLocalizationNoContent) DeleteLocalizationResponder

func (o *DeleteLocalizationNoContent) DeleteLocalizationResponder()

func (*DeleteLocalizationNoContent) WriteResponse

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

WriteResponse to the client

type DeleteLocalizationNotImplementedResponder

type DeleteLocalizationNotImplementedResponder struct {
	middleware.Responder
}

func (*DeleteLocalizationNotImplementedResponder) DeleteLocalizationResponder

func (*DeleteLocalizationNotImplementedResponder) DeleteLocalizationResponder()

type DeleteLocalizationParams

type DeleteLocalizationParams struct {

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

	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

DeleteLocalizationParams contains all the bound params for the delete localization operation typically these are obtained from a http.Request

swagger:parameters deleteLocalization

func NewDeleteLocalizationParams

func NewDeleteLocalizationParams() DeleteLocalizationParams

NewDeleteLocalizationParams creates a new DeleteLocalizationParams object

There are no default values defined in the spec.

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

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

type DeleteLocalizationResponder

type DeleteLocalizationResponder interface {
	middleware.Responder
	DeleteLocalizationResponder()
}

func DeleteLocalizationNotImplemented

func DeleteLocalizationNotImplemented() DeleteLocalizationResponder

type DeleteLocalizationURL

type DeleteLocalizationURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteLocalizationURL generates an URL for the delete localization operation

func (*DeleteLocalizationURL) Build

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

Build a url path and query string

func (*DeleteLocalizationURL) BuildFull

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

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

func (*DeleteLocalizationURL) Must

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

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

func (*DeleteLocalizationURL) SetBasePath

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

func (o *DeleteLocalizationURL) String() string

String returns the string representation of the path with query string

func (*DeleteLocalizationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteLocalizationURL) WithBasePath

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

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 DeleteTranslation

type DeleteTranslation struct {
	Context *middleware.Context
	Handler DeleteTranslationHandler
}
DeleteTranslation swagger:route DELETE /translation/{id} deleteTranslation

delete translation

func NewDeleteTranslation

func NewDeleteTranslation(ctx *middleware.Context, handler DeleteTranslationHandler) *DeleteTranslation

NewDeleteTranslation creates a new http.Handler for the delete translation operation

func (*DeleteTranslation) ServeHTTP

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

type DeleteTranslationDefault

type DeleteTranslationDefault struct {

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

DeleteTranslationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response deleteTranslationDefault

func NewDeleteTranslationDefault

func NewDeleteTranslationDefault(code int) *DeleteTranslationDefault

NewDeleteTranslationDefault creates DeleteTranslationDefault with default headers values

func (*DeleteTranslationDefault) DeleteTranslationResponder

func (o *DeleteTranslationDefault) DeleteTranslationResponder()

func (*DeleteTranslationDefault) SetPayload

func (o *DeleteTranslationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the delete translation default response

func (*DeleteTranslationDefault) SetStatusCode

func (o *DeleteTranslationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete translation default response

func (*DeleteTranslationDefault) WithPayload

WithPayload adds the payload to the delete translation default response

func (*DeleteTranslationDefault) WithStatusCode

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

WithStatusCode adds the status to the delete translation default response

func (*DeleteTranslationDefault) WriteResponse

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

WriteResponse to the client

type DeleteTranslationFile

type DeleteTranslationFile struct {
	Context *middleware.Context
	Handler DeleteTranslationFileHandler
}
DeleteTranslationFile swagger:route DELETE /translation/file/{id} deleteTranslationFile

delete translation file by id

func NewDeleteTranslationFile

func NewDeleteTranslationFile(ctx *middleware.Context, handler DeleteTranslationFileHandler) *DeleteTranslationFile

NewDeleteTranslationFile creates a new http.Handler for the delete translation file operation

func (*DeleteTranslationFile) ServeHTTP

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

type DeleteTranslationFileDefault

type DeleteTranslationFileDefault struct {

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

DeleteTranslationFileDefault General errors using same model as used by go-swagger for validation errors.

swagger:response deleteTranslationFileDefault

func NewDeleteTranslationFileDefault

func NewDeleteTranslationFileDefault(code int) *DeleteTranslationFileDefault

NewDeleteTranslationFileDefault creates DeleteTranslationFileDefault with default headers values

func (*DeleteTranslationFileDefault) DeleteTranslationFileResponder

func (o *DeleteTranslationFileDefault) DeleteTranslationFileResponder()

func (*DeleteTranslationFileDefault) SetPayload

func (o *DeleteTranslationFileDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the delete translation file default response

func (*DeleteTranslationFileDefault) SetStatusCode

func (o *DeleteTranslationFileDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete translation file default response

func (*DeleteTranslationFileDefault) WithPayload

WithPayload adds the payload to the delete translation file default response

func (*DeleteTranslationFileDefault) WithStatusCode

WithStatusCode adds the status to the delete translation file default response

func (*DeleteTranslationFileDefault) WriteResponse

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

WriteResponse to the client

type DeleteTranslationFileHandler

type DeleteTranslationFileHandler interface {
	Handle(DeleteTranslationFileParams, *app.UserSession) DeleteTranslationFileResponder
}

DeleteTranslationFileHandler interface for that can handle valid delete translation file params

type DeleteTranslationFileHandlerFunc

type DeleteTranslationFileHandlerFunc func(DeleteTranslationFileParams, *app.UserSession) DeleteTranslationFileResponder

DeleteTranslationFileHandlerFunc turns a function with the right signature into a delete translation file handler

func (DeleteTranslationFileHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteTranslationFileNoContent

type DeleteTranslationFileNoContent struct {
}

DeleteTranslationFileNoContent No content in answer

swagger:response deleteTranslationFileNoContent

func NewDeleteTranslationFileNoContent

func NewDeleteTranslationFileNoContent() *DeleteTranslationFileNoContent

NewDeleteTranslationFileNoContent creates DeleteTranslationFileNoContent with default headers values

func (*DeleteTranslationFileNoContent) DeleteTranslationFileResponder

func (o *DeleteTranslationFileNoContent) DeleteTranslationFileResponder()

func (*DeleteTranslationFileNoContent) WriteResponse

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

WriteResponse to the client

type DeleteTranslationFileNotImplementedResponder

type DeleteTranslationFileNotImplementedResponder struct {
	middleware.Responder
}

func (*DeleteTranslationFileNotImplementedResponder) DeleteTranslationFileResponder

func (*DeleteTranslationFileNotImplementedResponder) DeleteTranslationFileResponder()

type DeleteTranslationFileParams

type DeleteTranslationFileParams struct {

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

	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

DeleteTranslationFileParams contains all the bound params for the delete translation file operation typically these are obtained from a http.Request

swagger:parameters deleteTranslationFile

func NewDeleteTranslationFileParams

func NewDeleteTranslationFileParams() DeleteTranslationFileParams

NewDeleteTranslationFileParams creates a new DeleteTranslationFileParams object

There are no default values defined in the spec.

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

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

type DeleteTranslationFileResponder

type DeleteTranslationFileResponder interface {
	middleware.Responder
	DeleteTranslationFileResponder()
}

func DeleteTranslationFileNotImplemented

func DeleteTranslationFileNotImplemented() DeleteTranslationFileResponder

type DeleteTranslationFileURL

type DeleteTranslationFileURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteTranslationFileURL generates an URL for the delete translation file operation

func (*DeleteTranslationFileURL) Build

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

Build a url path and query string

func (*DeleteTranslationFileURL) BuildFull

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

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

func (*DeleteTranslationFileURL) Must

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

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

func (*DeleteTranslationFileURL) SetBasePath

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

func (o *DeleteTranslationFileURL) String() string

String returns the string representation of the path with query string

func (*DeleteTranslationFileURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTranslationFileURL) 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 DeleteTranslationHandler

type DeleteTranslationHandler interface {
	Handle(DeleteTranslationParams, *app.UserSession) DeleteTranslationResponder
}

DeleteTranslationHandler interface for that can handle valid delete translation params

type DeleteTranslationHandlerFunc

type DeleteTranslationHandlerFunc func(DeleteTranslationParams, *app.UserSession) DeleteTranslationResponder

DeleteTranslationHandlerFunc turns a function with the right signature into a delete translation handler

func (DeleteTranslationHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteTranslationNoContent

type DeleteTranslationNoContent struct {
}

DeleteTranslationNoContent No content in answer

swagger:response deleteTranslationNoContent

func NewDeleteTranslationNoContent

func NewDeleteTranslationNoContent() *DeleteTranslationNoContent

NewDeleteTranslationNoContent creates DeleteTranslationNoContent with default headers values

func (*DeleteTranslationNoContent) DeleteTranslationResponder

func (o *DeleteTranslationNoContent) DeleteTranslationResponder()

func (*DeleteTranslationNoContent) WriteResponse

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

WriteResponse to the client

type DeleteTranslationNotImplementedResponder

type DeleteTranslationNotImplementedResponder struct {
	middleware.Responder
}

func (*DeleteTranslationNotImplementedResponder) DeleteTranslationResponder

func (*DeleteTranslationNotImplementedResponder) DeleteTranslationResponder()

type DeleteTranslationParams

type DeleteTranslationParams struct {

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

	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

DeleteTranslationParams contains all the bound params for the delete translation operation typically these are obtained from a http.Request

swagger:parameters deleteTranslation

func NewDeleteTranslationParams

func NewDeleteTranslationParams() DeleteTranslationParams

NewDeleteTranslationParams creates a new DeleteTranslationParams object

There are no default values defined in the spec.

func (*DeleteTranslationParams) BindRequest

func (o *DeleteTranslationParams) 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 NewDeleteTranslationParams() beforehand.

type DeleteTranslationResponder

type DeleteTranslationResponder interface {
	middleware.Responder
	DeleteTranslationResponder()
}

func DeleteTranslationNotImplemented

func DeleteTranslationNotImplemented() DeleteTranslationResponder

type DeleteTranslationURL

type DeleteTranslationURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteTranslationURL generates an URL for the delete translation operation

func (*DeleteTranslationURL) Build

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

Build a url path and query string

func (*DeleteTranslationURL) BuildFull

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

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

func (*DeleteTranslationURL) Must

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

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

func (*DeleteTranslationURL) SetBasePath

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

func (o *DeleteTranslationURL) String() string

String returns the string representation of the path with query string

func (*DeleteTranslationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTranslationURL) WithBasePath

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

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 FreonFrontendAPI

type FreonFrontendAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator

	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator

	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// JWTBearerAuth registers a function that takes a token and returns a principal
	// it performs authentication based on an api key Authorization provided in the header
	JWTBearerAuth func(string) (*app.UserSession, error)

	// APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal
	APIAuthorizer runtime.Authorizer

	// AutoTranslationHandler sets the operation handler for the auto translation operation
	AutoTranslationHandler AutoTranslationHandler
	// AutoTranslationByIDHandler sets the operation handler for the auto translation by ID operation
	AutoTranslationByIDHandler AutoTranslationByIDHandler
	// CreateCategoryHandler sets the operation handler for the create category operation
	CreateCategoryHandler CreateCategoryHandler
	// CreateIdentifierHandler sets the operation handler for the create identifier operation
	CreateIdentifierHandler CreateIdentifierHandler
	// CreateLocalizationHandler sets the operation handler for the create localization operation
	CreateLocalizationHandler CreateLocalizationHandler
	// CreateTranslationHandler sets the operation handler for the create translation operation
	CreateTranslationHandler CreateTranslationHandler
	// CreateTranslationFilesHandler sets the operation handler for the create translation files operation
	CreateTranslationFilesHandler CreateTranslationFilesHandler
	// DeleteCategoryHandler sets the operation handler for the delete category operation
	DeleteCategoryHandler DeleteCategoryHandler
	// DeleteIdentifierHandler sets the operation handler for the delete identifier operation
	DeleteIdentifierHandler DeleteIdentifierHandler
	// DeleteLocalizationHandler sets the operation handler for the delete localization operation
	DeleteLocalizationHandler DeleteLocalizationHandler
	// DeleteTranslationHandler sets the operation handler for the delete translation operation
	DeleteTranslationHandler DeleteTranslationHandler
	// DeleteTranslationFileHandler sets the operation handler for the delete translation file operation
	DeleteTranslationFileHandler DeleteTranslationFileHandler
	// HealthCheckHandler sets the operation handler for the health check operation
	HealthCheckHandler HealthCheckHandler
	// InfoHandler sets the operation handler for the info operation
	InfoHandler InfoHandler
	// ListCategoriesHandler sets the operation handler for the list categories operation
	ListCategoriesHandler ListCategoriesHandler
	// ListIdentifiersHandler sets the operation handler for the list identifiers operation
	ListIdentifiersHandler ListIdentifiersHandler
	// ListLocalizationHandler sets the operation handler for the list localization operation
	ListLocalizationHandler ListLocalizationHandler
	// ListTranslationFilesHandler sets the operation handler for the list translation files operation
	ListTranslationFilesHandler ListTranslationFilesHandler
	// ListTranslationsHandler sets the operation handler for the list translations operation
	ListTranslationsHandler ListTranslationsHandler
	// ListUserHandler sets the operation handler for the list user operation
	ListUserHandler ListUserHandler
	// LoginHandler sets the operation handler for the login operation
	LoginHandler LoginHandler
	// LogoutUserHandler sets the operation handler for the logout user operation
	LogoutUserHandler LogoutUserHandler
	// RegUserHandler sets the operation handler for the reg user operation
	RegUserHandler RegUserHandler
	// SettingFirstLaunchHandler sets the operation handler for the setting first launch operation
	SettingFirstLaunchHandler SettingFirstLaunchHandler
	// SettingStorageHandler sets the operation handler for the setting storage operation
	SettingStorageHandler SettingStorageHandler
	// SettingTranslationHandler sets the operation handler for the setting translation operation
	SettingTranslationHandler SettingTranslationHandler
	// SettingsHandler sets the operation handler for the settings operation
	SettingsHandler SettingsHandler
	// StatisticHandler sets the operation handler for the statistic operation
	StatisticHandler StatisticHandler
	// StatusTranslationHandler sets the operation handler for the status translation operation
	StatusTranslationHandler StatusTranslationHandler
	// SupportedLanguagesHandler sets the operation handler for the supported languages operation
	SupportedLanguagesHandler SupportedLanguagesHandler
	// UpdateCategoryHandler sets the operation handler for the update category operation
	UpdateCategoryHandler UpdateCategoryHandler
	// UpdateIdentifierHandler sets the operation handler for the update identifier operation
	UpdateIdentifierHandler UpdateIdentifierHandler
	// UpdateTranslationHandler sets the operation handler for the update translation operation
	UpdateTranslationHandler UpdateTranslationHandler
	// UserChangePasswordHandler sets the operation handler for the user change password operation
	UserChangePasswordHandler UserChangePasswordHandler
	// UserChangeProfileHandler sets the operation handler for the user change profile operation
	UserChangeProfileHandler UserChangeProfileHandler
	// UserChangeStatusHandler sets the operation handler for the user change status operation
	UserChangeStatusHandler UserChangeStatusHandler
	// UserMeHandler sets the operation handler for the user me operation
	UserMeHandler UserMeHandler
	// VersionHandler sets the operation handler for the version operation
	VersionHandler VersionHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

FreonFrontendAPI Frontend Server for rest api

func NewFreonFrontendAPI

func NewFreonFrontendAPI(spec *loads.Document) *FreonFrontendAPI

NewFreonFrontendAPI creates a new FreonFrontend instance

func (*FreonFrontendAPI) AddMiddlewareFor

func (o *FreonFrontendAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*FreonFrontendAPI) AuthenticatorsFor

func (o *FreonFrontendAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*FreonFrontendAPI) Authorizer

func (o *FreonFrontendAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*FreonFrontendAPI) ConsumersFor

func (o *FreonFrontendAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*FreonFrontendAPI) Context

func (o *FreonFrontendAPI) Context() *middleware.Context

Context returns the middleware context for the freon frontend API

func (*FreonFrontendAPI) DefaultConsumes

func (o *FreonFrontendAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*FreonFrontendAPI) DefaultProduces

func (o *FreonFrontendAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*FreonFrontendAPI) Formats

func (o *FreonFrontendAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*FreonFrontendAPI) HandlerFor

func (o *FreonFrontendAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*FreonFrontendAPI) Init

func (o *FreonFrontendAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*FreonFrontendAPI) ProducersFor

func (o *FreonFrontendAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*FreonFrontendAPI) RegisterConsumer

func (o *FreonFrontendAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*FreonFrontendAPI) RegisterFormat

func (o *FreonFrontendAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*FreonFrontendAPI) RegisterProducer

func (o *FreonFrontendAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*FreonFrontendAPI) Serve

func (o *FreonFrontendAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*FreonFrontendAPI) ServeErrorFor

func (o *FreonFrontendAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*FreonFrontendAPI) SetDefaultConsumes

func (o *FreonFrontendAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*FreonFrontendAPI) SetDefaultProduces

func (o *FreonFrontendAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*FreonFrontendAPI) SetSpec

func (o *FreonFrontendAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*FreonFrontendAPI) UseRedoc

func (o *FreonFrontendAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*FreonFrontendAPI) UseSwaggerUI

func (o *FreonFrontendAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*FreonFrontendAPI) Validate

func (o *FreonFrontendAPI) Validate() error

Validate validates the registrations in the FreonFrontendAPI

type HealthCheck

type HealthCheck struct {
	Context *middleware.Context
	Handler HealthCheckHandler
}
HealthCheck swagger:route GET /health-check healthCheck

Returns 200 if service works okay.

func NewHealthCheck

func NewHealthCheck(ctx *middleware.Context, handler HealthCheckHandler) *HealthCheck

NewHealthCheck creates a new http.Handler for the health check operation

func (*HealthCheck) ServeHTTP

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

type HealthCheckDefault

type HealthCheckDefault struct {

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

HealthCheckDefault General errors using same model as used by go-swagger for validation errors.

swagger:response healthCheckDefault

func NewHealthCheckDefault

func NewHealthCheckDefault(code int) *HealthCheckDefault

NewHealthCheckDefault creates HealthCheckDefault with default headers values

func (*HealthCheckDefault) HealthCheckResponder

func (o *HealthCheckDefault) HealthCheckResponder()

func (*HealthCheckDefault) SetPayload

func (o *HealthCheckDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the health check default response

func (*HealthCheckDefault) SetStatusCode

func (o *HealthCheckDefault) SetStatusCode(code int)

SetStatusCode sets the status to the health check default response

func (*HealthCheckDefault) WithPayload

func (o *HealthCheckDefault) WithPayload(payload *model.Error) *HealthCheckDefault

WithPayload adds the payload to the health check default response

func (*HealthCheckDefault) WithStatusCode

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

WithStatusCode adds the status to the health check default response

func (*HealthCheckDefault) WriteResponse

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

WriteResponse to the client

type HealthCheckHandler

type HealthCheckHandler interface {
	Handle(HealthCheckParams) HealthCheckResponder
}

HealthCheckHandler interface for that can handle valid health check params

type HealthCheckHandlerFunc

type HealthCheckHandlerFunc func(HealthCheckParams) HealthCheckResponder

HealthCheckHandlerFunc turns a function with the right signature into a health check handler

func (HealthCheckHandlerFunc) Handle

Handle executing the request and returning a response

type HealthCheckNotImplementedResponder

type HealthCheckNotImplementedResponder struct {
	middleware.Responder
}

func (*HealthCheckNotImplementedResponder) HealthCheckResponder

func (*HealthCheckNotImplementedResponder) HealthCheckResponder()

type HealthCheckOK

type HealthCheckOK struct {

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

HealthCheckOK Freon internal health-check

swagger:response healthCheckOK

func NewHealthCheckOK

func NewHealthCheckOK() *HealthCheckOK

NewHealthCheckOK creates HealthCheckOK with default headers values

func (*HealthCheckOK) HealthCheckResponder

func (o *HealthCheckOK) HealthCheckResponder()

func (*HealthCheckOK) SetPayload

func (o *HealthCheckOK) SetPayload(payload interface{})

SetPayload sets the payload to the health check o k response

func (*HealthCheckOK) WithPayload

func (o *HealthCheckOK) WithPayload(payload interface{}) *HealthCheckOK

WithPayload adds the payload to the health check o k response

func (*HealthCheckOK) WriteResponse

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

WriteResponse to the client

type HealthCheckParams

type HealthCheckParams struct {

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

HealthCheckParams contains all the bound params for the health check operation typically these are obtained from a http.Request

swagger:parameters healthCheck

func NewHealthCheckParams

func NewHealthCheckParams() HealthCheckParams

NewHealthCheckParams creates a new HealthCheckParams object

There are no default values defined in the spec.

func (*HealthCheckParams) BindRequest

func (o *HealthCheckParams) 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 NewHealthCheckParams() beforehand.

type HealthCheckResponder

type HealthCheckResponder interface {
	middleware.Responder
	HealthCheckResponder()
}

func HealthCheckNotImplemented

func HealthCheckNotImplemented() HealthCheckResponder

type HealthCheckURL

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

HealthCheckURL generates an URL for the health check operation

func (*HealthCheckURL) Build

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

Build a url path and query string

func (*HealthCheckURL) BuildFull

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

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

func (*HealthCheckURL) Must

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

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

func (*HealthCheckURL) SetBasePath

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

func (o *HealthCheckURL) String() string

String returns the string representation of the path with query string

func (*HealthCheckURL) StringFull

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

StringFull returns the string representation of a complete url

func (*HealthCheckURL) WithBasePath

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

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 Info

type Info struct {
	Context *middleware.Context
	Handler InfoHandler
}
Info swagger:route GET /info info

getting actual user session and system configurations

func NewInfo

func NewInfo(ctx *middleware.Context, handler InfoHandler) *Info

NewInfo creates a new http.Handler for the info operation

func (*Info) ServeHTTP

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

type InfoDefault

type InfoDefault struct {

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

InfoDefault General errors using same model as used by go-swagger for validation errors.

swagger:response infoDefault

func NewInfoDefault

func NewInfoDefault(code int) *InfoDefault

NewInfoDefault creates InfoDefault with default headers values

func (*InfoDefault) InfoResponder

func (o *InfoDefault) InfoResponder()

func (*InfoDefault) SetPayload

func (o *InfoDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the info default response

func (*InfoDefault) SetStatusCode

func (o *InfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the info default response

func (*InfoDefault) WithPayload

func (o *InfoDefault) WithPayload(payload *model.Error) *InfoDefault

WithPayload adds the payload to the info default response

func (*InfoDefault) WithStatusCode

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

WithStatusCode adds the status to the info default response

func (*InfoDefault) WriteResponse

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

WriteResponse to the client

type InfoHandler

type InfoHandler interface {
	Handle(InfoParams, *app.UserSession) InfoResponder
}

InfoHandler interface for that can handle valid info params

type InfoHandlerFunc

type InfoHandlerFunc func(InfoParams, *app.UserSession) InfoResponder

InfoHandlerFunc turns a function with the right signature into a info handler

func (InfoHandlerFunc) Handle

func (fn InfoHandlerFunc) Handle(params InfoParams, principal *app.UserSession) InfoResponder

Handle executing the request and returning a response

type InfoNotImplementedResponder

type InfoNotImplementedResponder struct {
	middleware.Responder
}

func (*InfoNotImplementedResponder) InfoResponder

func (*InfoNotImplementedResponder) InfoResponder()

type InfoOK

type InfoOK struct {

	/*
	  In: Body
	*/
	Payload *model.Info `json:"body,omitempty"`
}

InfoOK response

swagger:response infoOK

func NewInfoOK

func NewInfoOK() *InfoOK

NewInfoOK creates InfoOK with default headers values

func (*InfoOK) InfoResponder

func (o *InfoOK) InfoResponder()

func (*InfoOK) SetPayload

func (o *InfoOK) SetPayload(payload *model.Info)

SetPayload sets the payload to the info o k response

func (*InfoOK) WithPayload

func (o *InfoOK) WithPayload(payload *model.Info) *InfoOK

WithPayload adds the payload to the info o k response

func (*InfoOK) WriteResponse

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

WriteResponse to the client

type InfoParams

type InfoParams struct {

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

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

swagger:parameters info

func NewInfoParams

func NewInfoParams() InfoParams

NewInfoParams creates a new InfoParams object

There are no default values defined in the spec.

func (*InfoParams) BindRequest

func (o *InfoParams) 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 NewInfoParams() beforehand.

type InfoResponder

type InfoResponder interface {
	middleware.Responder
	InfoResponder()
}

func InfoNotImplemented

func InfoNotImplemented() InfoResponder

type InfoURL

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

InfoURL generates an URL for the info operation

func (*InfoURL) Build

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

Build a url path and query string

func (*InfoURL) BuildFull

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

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

func (*InfoURL) Must

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

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

func (*InfoURL) SetBasePath

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

func (o *InfoURL) String() string

String returns the string representation of the path with query string

func (*InfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*InfoURL) WithBasePath

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

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 ListCategories

type ListCategories struct {
	Context *middleware.Context
	Handler ListCategoriesHandler
}
ListCategories swagger:route GET /categories listCategories

get full list of available categories

func NewListCategories

func NewListCategories(ctx *middleware.Context, handler ListCategoriesHandler) *ListCategories

NewListCategories creates a new http.Handler for the list categories operation

func (*ListCategories) ServeHTTP

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

type ListCategoriesDefault

type ListCategoriesDefault struct {

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

ListCategoriesDefault General errors using same model as used by go-swagger for validation errors.

swagger:response listCategoriesDefault

func NewListCategoriesDefault

func NewListCategoriesDefault(code int) *ListCategoriesDefault

NewListCategoriesDefault creates ListCategoriesDefault with default headers values

func (*ListCategoriesDefault) ListCategoriesResponder

func (o *ListCategoriesDefault) ListCategoriesResponder()

func (*ListCategoriesDefault) SetPayload

func (o *ListCategoriesDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the list categories default response

func (*ListCategoriesDefault) SetStatusCode

func (o *ListCategoriesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list categories default response

func (*ListCategoriesDefault) WithPayload

func (o *ListCategoriesDefault) WithPayload(payload *model.Error) *ListCategoriesDefault

WithPayload adds the payload to the list categories default response

func (*ListCategoriesDefault) WithStatusCode

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

WithStatusCode adds the status to the list categories default response

func (*ListCategoriesDefault) WriteResponse

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

WriteResponse to the client

type ListCategoriesHandler

type ListCategoriesHandler interface {
	Handle(ListCategoriesParams, *app.UserSession) ListCategoriesResponder
}

ListCategoriesHandler interface for that can handle valid list categories params

type ListCategoriesHandlerFunc

type ListCategoriesHandlerFunc func(ListCategoriesParams, *app.UserSession) ListCategoriesResponder

ListCategoriesHandlerFunc turns a function with the right signature into a list categories handler

func (ListCategoriesHandlerFunc) Handle

Handle executing the request and returning a response

type ListCategoriesNotImplementedResponder

type ListCategoriesNotImplementedResponder struct {
	middleware.Responder
}

func (*ListCategoriesNotImplementedResponder) ListCategoriesResponder

func (*ListCategoriesNotImplementedResponder) ListCategoriesResponder()

type ListCategoriesOK

type ListCategoriesOK struct {

	/*
	  In: Body
	*/
	Payload []*model.Category `json:"body,omitempty"`
}

ListCategoriesOK List with all categories

swagger:response listCategoriesOK

func NewListCategoriesOK

func NewListCategoriesOK() *ListCategoriesOK

NewListCategoriesOK creates ListCategoriesOK with default headers values

func (*ListCategoriesOK) ListCategoriesResponder

func (o *ListCategoriesOK) ListCategoriesResponder()

func (*ListCategoriesOK) SetPayload

func (o *ListCategoriesOK) SetPayload(payload []*model.Category)

SetPayload sets the payload to the list categories o k response

func (*ListCategoriesOK) WithPayload

func (o *ListCategoriesOK) WithPayload(payload []*model.Category) *ListCategoriesOK

WithPayload adds the payload to the list categories o k response

func (*ListCategoriesOK) WriteResponse

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

WriteResponse to the client

type ListCategoriesParams

type ListCategoriesParams struct {

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

ListCategoriesParams contains all the bound params for the list categories operation typically these are obtained from a http.Request

swagger:parameters listCategories

func NewListCategoriesParams

func NewListCategoriesParams() ListCategoriesParams

NewListCategoriesParams creates a new ListCategoriesParams object

There are no default values defined in the spec.

func (*ListCategoriesParams) BindRequest

func (o *ListCategoriesParams) 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 NewListCategoriesParams() beforehand.

type ListCategoriesResponder

type ListCategoriesResponder interface {
	middleware.Responder
	ListCategoriesResponder()
}

func ListCategoriesNotImplemented

func ListCategoriesNotImplemented() ListCategoriesResponder

type ListCategoriesURL

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

ListCategoriesURL generates an URL for the list categories operation

func (*ListCategoriesURL) Build

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

Build a url path and query string

func (*ListCategoriesURL) BuildFull

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

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

func (*ListCategoriesURL) Must

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

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

func (*ListCategoriesURL) SetBasePath

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

func (o *ListCategoriesURL) String() string

String returns the string representation of the path with query string

func (*ListCategoriesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListCategoriesURL) WithBasePath

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

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 ListIdentifiers

type ListIdentifiers struct {
	Context *middleware.Context
	Handler ListIdentifiersHandler
}
ListIdentifiers swagger:route GET /identifiers listIdentifiers

get full list of available identifiers

func NewListIdentifiers

func NewListIdentifiers(ctx *middleware.Context, handler ListIdentifiersHandler) *ListIdentifiers

NewListIdentifiers creates a new http.Handler for the list identifiers operation

func (*ListIdentifiers) ServeHTTP

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

type ListIdentifiersDefault

type ListIdentifiersDefault struct {

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

ListIdentifiersDefault General errors using same model as used by go-swagger for validation errors.

swagger:response listIdentifiersDefault

func NewListIdentifiersDefault

func NewListIdentifiersDefault(code int) *ListIdentifiersDefault

NewListIdentifiersDefault creates ListIdentifiersDefault with default headers values

func (*ListIdentifiersDefault) ListIdentifiersResponder

func (o *ListIdentifiersDefault) ListIdentifiersResponder()

func (*ListIdentifiersDefault) SetPayload

func (o *ListIdentifiersDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the list identifiers default response

func (*ListIdentifiersDefault) SetStatusCode

func (o *ListIdentifiersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list identifiers default response

func (*ListIdentifiersDefault) WithPayload

func (o *ListIdentifiersDefault) WithPayload(payload *model.Error) *ListIdentifiersDefault

WithPayload adds the payload to the list identifiers default response

func (*ListIdentifiersDefault) WithStatusCode

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

WithStatusCode adds the status to the list identifiers default response

func (*ListIdentifiersDefault) WriteResponse

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

WriteResponse to the client

type ListIdentifiersHandler

type ListIdentifiersHandler interface {
	Handle(ListIdentifiersParams, *app.UserSession) ListIdentifiersResponder
}

ListIdentifiersHandler interface for that can handle valid list identifiers params

type ListIdentifiersHandlerFunc

type ListIdentifiersHandlerFunc func(ListIdentifiersParams, *app.UserSession) ListIdentifiersResponder

ListIdentifiersHandlerFunc turns a function with the right signature into a list identifiers handler

func (ListIdentifiersHandlerFunc) Handle

Handle executing the request and returning a response

type ListIdentifiersNotImplementedResponder

type ListIdentifiersNotImplementedResponder struct {
	middleware.Responder
}

func (*ListIdentifiersNotImplementedResponder) ListIdentifiersResponder

func (*ListIdentifiersNotImplementedResponder) ListIdentifiersResponder()

type ListIdentifiersOK

type ListIdentifiersOK struct {

	/*
	  In: Body
	*/
	Payload []*model.Identifier `json:"body,omitempty"`
}

ListIdentifiersOK List with all identifiers

swagger:response listIdentifiersOK

func NewListIdentifiersOK

func NewListIdentifiersOK() *ListIdentifiersOK

NewListIdentifiersOK creates ListIdentifiersOK with default headers values

func (*ListIdentifiersOK) ListIdentifiersResponder

func (o *ListIdentifiersOK) ListIdentifiersResponder()

func (*ListIdentifiersOK) SetPayload

func (o *ListIdentifiersOK) SetPayload(payload []*model.Identifier)

SetPayload sets the payload to the list identifiers o k response

func (*ListIdentifiersOK) WithPayload

func (o *ListIdentifiersOK) WithPayload(payload []*model.Identifier) *ListIdentifiersOK

WithPayload adds the payload to the list identifiers o k response

func (*ListIdentifiersOK) WriteResponse

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

WriteResponse to the client

type ListIdentifiersParams

type ListIdentifiersParams struct {

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

	/*
	  Minimum: 1
	  In: query
	*/
	CategoryID *int64
}

ListIdentifiersParams contains all the bound params for the list identifiers operation typically these are obtained from a http.Request

swagger:parameters listIdentifiers

func NewListIdentifiersParams

func NewListIdentifiersParams() ListIdentifiersParams

NewListIdentifiersParams creates a new ListIdentifiersParams object

There are no default values defined in the spec.

func (*ListIdentifiersParams) BindRequest

func (o *ListIdentifiersParams) 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 NewListIdentifiersParams() beforehand.

type ListIdentifiersResponder

type ListIdentifiersResponder interface {
	middleware.Responder
	ListIdentifiersResponder()
}

func ListIdentifiersNotImplemented

func ListIdentifiersNotImplemented() ListIdentifiersResponder

type ListIdentifiersURL

type ListIdentifiersURL struct {
	CategoryID *int64
	// contains filtered or unexported fields
}

ListIdentifiersURL generates an URL for the list identifiers operation

func (*ListIdentifiersURL) Build

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

Build a url path and query string

func (*ListIdentifiersURL) BuildFull

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

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

func (*ListIdentifiersURL) Must

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

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

func (*ListIdentifiersURL) SetBasePath

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

func (o *ListIdentifiersURL) String() string

String returns the string representation of the path with query string

func (*ListIdentifiersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListIdentifiersURL) WithBasePath

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

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 ListLocalization

type ListLocalization struct {
	Context *middleware.Context
	Handler ListLocalizationHandler
}
ListLocalization swagger:route GET /localizations listLocalization

get list localization sorted by user permission

func NewListLocalization

func NewListLocalization(ctx *middleware.Context, handler ListLocalizationHandler) *ListLocalization

NewListLocalization creates a new http.Handler for the list localization operation

func (*ListLocalization) ServeHTTP

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

type ListLocalizationDefault

type ListLocalizationDefault struct {

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

ListLocalizationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response listLocalizationDefault

func NewListLocalizationDefault

func NewListLocalizationDefault(code int) *ListLocalizationDefault

NewListLocalizationDefault creates ListLocalizationDefault with default headers values

func (*ListLocalizationDefault) ListLocalizationResponder

func (o *ListLocalizationDefault) ListLocalizationResponder()

func (*ListLocalizationDefault) SetPayload

func (o *ListLocalizationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the list localization default response

func (*ListLocalizationDefault) SetStatusCode

func (o *ListLocalizationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list localization default response

func (*ListLocalizationDefault) WithPayload

func (o *ListLocalizationDefault) WithPayload(payload *model.Error) *ListLocalizationDefault

WithPayload adds the payload to the list localization default response

func (*ListLocalizationDefault) WithStatusCode

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

WithStatusCode adds the status to the list localization default response

func (*ListLocalizationDefault) WriteResponse

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

WriteResponse to the client

type ListLocalizationHandler

type ListLocalizationHandler interface {
	Handle(ListLocalizationParams, *app.UserSession) ListLocalizationResponder
}

ListLocalizationHandler interface for that can handle valid list localization params

type ListLocalizationHandlerFunc

type ListLocalizationHandlerFunc func(ListLocalizationParams, *app.UserSession) ListLocalizationResponder

ListLocalizationHandlerFunc turns a function with the right signature into a list localization handler

func (ListLocalizationHandlerFunc) Handle

Handle executing the request and returning a response

type ListLocalizationNotImplementedResponder

type ListLocalizationNotImplementedResponder struct {
	middleware.Responder
}

func (*ListLocalizationNotImplementedResponder) ListLocalizationResponder

func (*ListLocalizationNotImplementedResponder) ListLocalizationResponder()

type ListLocalizationOK

type ListLocalizationOK struct {

	/*
	  In: Body
	*/
	Payload []*model.Localization `json:"body,omitempty"`
}

ListLocalizationOK List of localizations available for current user

swagger:response listLocalizationOK

func NewListLocalizationOK

func NewListLocalizationOK() *ListLocalizationOK

NewListLocalizationOK creates ListLocalizationOK with default headers values

func (*ListLocalizationOK) ListLocalizationResponder

func (o *ListLocalizationOK) ListLocalizationResponder()

func (*ListLocalizationOK) SetPayload

func (o *ListLocalizationOK) SetPayload(payload []*model.Localization)

SetPayload sets the payload to the list localization o k response

func (*ListLocalizationOK) WithPayload

func (o *ListLocalizationOK) WithPayload(payload []*model.Localization) *ListLocalizationOK

WithPayload adds the payload to the list localization o k response

func (*ListLocalizationOK) WriteResponse

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

WriteResponse to the client

type ListLocalizationParams

type ListLocalizationParams struct {

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

ListLocalizationParams contains all the bound params for the list localization operation typically these are obtained from a http.Request

swagger:parameters listLocalization

func NewListLocalizationParams

func NewListLocalizationParams() ListLocalizationParams

NewListLocalizationParams creates a new ListLocalizationParams object

There are no default values defined in the spec.

func (*ListLocalizationParams) BindRequest

func (o *ListLocalizationParams) 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 NewListLocalizationParams() beforehand.

type ListLocalizationResponder

type ListLocalizationResponder interface {
	middleware.Responder
	ListLocalizationResponder()
}

func ListLocalizationNotImplemented

func ListLocalizationNotImplemented() ListLocalizationResponder

type ListLocalizationURL

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

ListLocalizationURL generates an URL for the list localization operation

func (*ListLocalizationURL) Build

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

Build a url path and query string

func (*ListLocalizationURL) BuildFull

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

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

func (*ListLocalizationURL) Must

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

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

func (*ListLocalizationURL) SetBasePath

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

func (o *ListLocalizationURL) String() string

String returns the string representation of the path with query string

func (*ListLocalizationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListLocalizationURL) WithBasePath

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

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 ListTranslationFiles

type ListTranslationFiles struct {
	Context *middleware.Context
	Handler ListTranslationFilesHandler
}
ListTranslationFiles swagger:route GET /translation/files listTranslationFiles

get full list of available translation files

func NewListTranslationFiles

func NewListTranslationFiles(ctx *middleware.Context, handler ListTranslationFilesHandler) *ListTranslationFiles

NewListTranslationFiles creates a new http.Handler for the list translation files operation

func (*ListTranslationFiles) ServeHTTP

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

type ListTranslationFilesDefault

type ListTranslationFilesDefault struct {

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

ListTranslationFilesDefault General errors using same model as used by go-swagger for validation errors.

swagger:response listTranslationFilesDefault

func NewListTranslationFilesDefault

func NewListTranslationFilesDefault(code int) *ListTranslationFilesDefault

NewListTranslationFilesDefault creates ListTranslationFilesDefault with default headers values

func (*ListTranslationFilesDefault) ListTranslationFilesResponder

func (o *ListTranslationFilesDefault) ListTranslationFilesResponder()

func (*ListTranslationFilesDefault) SetPayload

func (o *ListTranslationFilesDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the list translation files default response

func (*ListTranslationFilesDefault) SetStatusCode

func (o *ListTranslationFilesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list translation files default response

func (*ListTranslationFilesDefault) WithPayload

WithPayload adds the payload to the list translation files default response

func (*ListTranslationFilesDefault) WithStatusCode

WithStatusCode adds the status to the list translation files default response

func (*ListTranslationFilesDefault) WriteResponse

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

WriteResponse to the client

type ListTranslationFilesHandler

type ListTranslationFilesHandler interface {
	Handle(ListTranslationFilesParams, *app.UserSession) ListTranslationFilesResponder
}

ListTranslationFilesHandler interface for that can handle valid list translation files params

type ListTranslationFilesHandlerFunc

type ListTranslationFilesHandlerFunc func(ListTranslationFilesParams, *app.UserSession) ListTranslationFilesResponder

ListTranslationFilesHandlerFunc turns a function with the right signature into a list translation files handler

func (ListTranslationFilesHandlerFunc) Handle

Handle executing the request and returning a response

type ListTranslationFilesNotImplementedResponder

type ListTranslationFilesNotImplementedResponder struct {
	middleware.Responder
}

func (*ListTranslationFilesNotImplementedResponder) ListTranslationFilesResponder

func (*ListTranslationFilesNotImplementedResponder) ListTranslationFilesResponder()

type ListTranslationFilesOK

type ListTranslationFilesOK struct {

	/*
	  In: Body
	*/
	Payload []*model.TranslationFile `json:"body,omitempty"`
}

ListTranslationFilesOK List with all translation files

swagger:response listTranslationFilesOK

func NewListTranslationFilesOK

func NewListTranslationFilesOK() *ListTranslationFilesOK

NewListTranslationFilesOK creates ListTranslationFilesOK with default headers values

func (*ListTranslationFilesOK) ListTranslationFilesResponder

func (o *ListTranslationFilesOK) ListTranslationFilesResponder()

func (*ListTranslationFilesOK) SetPayload

func (o *ListTranslationFilesOK) SetPayload(payload []*model.TranslationFile)

SetPayload sets the payload to the list translation files o k response

func (*ListTranslationFilesOK) WithPayload

WithPayload adds the payload to the list translation files o k response

func (*ListTranslationFilesOK) WriteResponse

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

WriteResponse to the client

type ListTranslationFilesParams

type ListTranslationFilesParams struct {

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

	/*
	  Minimum: 1
	  In: query
	*/
	LocalizationID *int64
	/*
	  In: query
	*/
	Platform *string
}

ListTranslationFilesParams contains all the bound params for the list translation files operation typically these are obtained from a http.Request

swagger:parameters listTranslationFiles

func NewListTranslationFilesParams

func NewListTranslationFilesParams() ListTranslationFilesParams

NewListTranslationFilesParams creates a new ListTranslationFilesParams object

There are no default values defined in the spec.

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

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

type ListTranslationFilesResponder

type ListTranslationFilesResponder interface {
	middleware.Responder
	ListTranslationFilesResponder()
}

func ListTranslationFilesNotImplemented

func ListTranslationFilesNotImplemented() ListTranslationFilesResponder

type ListTranslationFilesURL

type ListTranslationFilesURL struct {
	LocalizationID *int64
	Platform       *string
	// contains filtered or unexported fields
}

ListTranslationFilesURL generates an URL for the list translation files operation

func (*ListTranslationFilesURL) Build

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

Build a url path and query string

func (*ListTranslationFilesURL) BuildFull

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

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

func (*ListTranslationFilesURL) Must

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

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

func (*ListTranslationFilesURL) SetBasePath

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

func (o *ListTranslationFilesURL) String() string

String returns the string representation of the path with query string

func (*ListTranslationFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListTranslationFilesURL) 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 ListTranslations

type ListTranslations struct {
	Context *middleware.Context
	Handler ListTranslationsHandler
}
ListTranslations swagger:route GET /translations listTranslations

get full list of available translations

func NewListTranslations

func NewListTranslations(ctx *middleware.Context, handler ListTranslationsHandler) *ListTranslations

NewListTranslations creates a new http.Handler for the list translations operation

func (*ListTranslations) ServeHTTP

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

type ListTranslationsDefault

type ListTranslationsDefault struct {

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

ListTranslationsDefault General errors using same model as used by go-swagger for validation errors.

swagger:response listTranslationsDefault

func NewListTranslationsDefault

func NewListTranslationsDefault(code int) *ListTranslationsDefault

NewListTranslationsDefault creates ListTranslationsDefault with default headers values

func (*ListTranslationsDefault) ListTranslationsResponder

func (o *ListTranslationsDefault) ListTranslationsResponder()

func (*ListTranslationsDefault) SetPayload

func (o *ListTranslationsDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the list translations default response

func (*ListTranslationsDefault) SetStatusCode

func (o *ListTranslationsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list translations default response

func (*ListTranslationsDefault) WithPayload

func (o *ListTranslationsDefault) WithPayload(payload *model.Error) *ListTranslationsDefault

WithPayload adds the payload to the list translations default response

func (*ListTranslationsDefault) WithStatusCode

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

WithStatusCode adds the status to the list translations default response

func (*ListTranslationsDefault) WriteResponse

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

WriteResponse to the client

type ListTranslationsHandler

type ListTranslationsHandler interface {
	Handle(ListTranslationsParams, *app.UserSession) ListTranslationsResponder
}

ListTranslationsHandler interface for that can handle valid list translations params

type ListTranslationsHandlerFunc

type ListTranslationsHandlerFunc func(ListTranslationsParams, *app.UserSession) ListTranslationsResponder

ListTranslationsHandlerFunc turns a function with the right signature into a list translations handler

func (ListTranslationsHandlerFunc) Handle

Handle executing the request and returning a response

type ListTranslationsNotImplementedResponder

type ListTranslationsNotImplementedResponder struct {
	middleware.Responder
}

func (*ListTranslationsNotImplementedResponder) ListTranslationsResponder

func (*ListTranslationsNotImplementedResponder) ListTranslationsResponder()

type ListTranslationsOK

type ListTranslationsOK struct {

	/*
	  In: Body
	*/
	Payload []*model.Translation `json:"body,omitempty"`
}

ListTranslationsOK List with all translations

swagger:response listTranslationsOK

func NewListTranslationsOK

func NewListTranslationsOK() *ListTranslationsOK

NewListTranslationsOK creates ListTranslationsOK with default headers values

func (*ListTranslationsOK) ListTranslationsResponder

func (o *ListTranslationsOK) ListTranslationsResponder()

func (*ListTranslationsOK) SetPayload

func (o *ListTranslationsOK) SetPayload(payload []*model.Translation)

SetPayload sets the payload to the list translations o k response

func (*ListTranslationsOK) WithPayload

func (o *ListTranslationsOK) WithPayload(payload []*model.Translation) *ListTranslationsOK

WithPayload adds the payload to the list translations o k response

func (*ListTranslationsOK) WriteResponse

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

WriteResponse to the client

type ListTranslationsParams

type ListTranslationsParams struct {

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

	/*
	  Minimum: 1
	  In: query
	*/
	LocalizationID *int64
}

ListTranslationsParams contains all the bound params for the list translations operation typically these are obtained from a http.Request

swagger:parameters listTranslations

func NewListTranslationsParams

func NewListTranslationsParams() ListTranslationsParams

NewListTranslationsParams creates a new ListTranslationsParams object

There are no default values defined in the spec.

func (*ListTranslationsParams) BindRequest

func (o *ListTranslationsParams) 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 NewListTranslationsParams() beforehand.

type ListTranslationsResponder

type ListTranslationsResponder interface {
	middleware.Responder
	ListTranslationsResponder()
}

func ListTranslationsNotImplemented

func ListTranslationsNotImplemented() ListTranslationsResponder

type ListTranslationsURL

type ListTranslationsURL struct {
	LocalizationID *int64
	// contains filtered or unexported fields
}

ListTranslationsURL generates an URL for the list translations operation

func (*ListTranslationsURL) Build

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

Build a url path and query string

func (*ListTranslationsURL) BuildFull

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

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

func (*ListTranslationsURL) Must

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

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

func (*ListTranslationsURL) SetBasePath

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

func (o *ListTranslationsURL) String() string

String returns the string representation of the path with query string

func (*ListTranslationsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListTranslationsURL) WithBasePath

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

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 ListUser

type ListUser struct {
	Context *middleware.Context
	Handler ListUserHandler
}
ListUser swagger:route GET /users listUser

get list user

func NewListUser

func NewListUser(ctx *middleware.Context, handler ListUserHandler) *ListUser

NewListUser creates a new http.Handler for the list user operation

func (*ListUser) ServeHTTP

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

type ListUserDefault

type ListUserDefault struct {

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

ListUserDefault General errors using same model as used by go-swagger for validation errors.

swagger:response listUserDefault

func NewListUserDefault

func NewListUserDefault(code int) *ListUserDefault

NewListUserDefault creates ListUserDefault with default headers values

func (*ListUserDefault) ListUserResponder

func (o *ListUserDefault) ListUserResponder()

func (*ListUserDefault) SetPayload

func (o *ListUserDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the list user default response

func (*ListUserDefault) SetStatusCode

func (o *ListUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list user default response

func (*ListUserDefault) WithPayload

func (o *ListUserDefault) WithPayload(payload *model.Error) *ListUserDefault

WithPayload adds the payload to the list user default response

func (*ListUserDefault) WithStatusCode

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

WithStatusCode adds the status to the list user default response

func (*ListUserDefault) WriteResponse

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

WriteResponse to the client

type ListUserHandler

type ListUserHandler interface {
	Handle(ListUserParams, *app.UserSession) ListUserResponder
}

ListUserHandler interface for that can handle valid list user params

type ListUserHandlerFunc

type ListUserHandlerFunc func(ListUserParams, *app.UserSession) ListUserResponder

ListUserHandlerFunc turns a function with the right signature into a list user handler

func (ListUserHandlerFunc) Handle

func (fn ListUserHandlerFunc) Handle(params ListUserParams, principal *app.UserSession) ListUserResponder

Handle executing the request and returning a response

type ListUserNotImplementedResponder

type ListUserNotImplementedResponder struct {
	middleware.Responder
}

func (*ListUserNotImplementedResponder) ListUserResponder

func (*ListUserNotImplementedResponder) ListUserResponder()

type ListUserOK

type ListUserOK struct {

	/*
	  In: Body
	*/
	Payload []*model.User `json:"body,omitempty"`
}

ListUserOK List of all registred users

swagger:response listUserOK

func NewListUserOK

func NewListUserOK() *ListUserOK

NewListUserOK creates ListUserOK with default headers values

func (*ListUserOK) ListUserResponder

func (o *ListUserOK) ListUserResponder()

func (*ListUserOK) SetPayload

func (o *ListUserOK) SetPayload(payload []*model.User)

SetPayload sets the payload to the list user o k response

func (*ListUserOK) WithPayload

func (o *ListUserOK) WithPayload(payload []*model.User) *ListUserOK

WithPayload adds the payload to the list user o k response

func (*ListUserOK) WriteResponse

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

WriteResponse to the client

type ListUserParams

type ListUserParams struct {

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

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

swagger:parameters listUser

func NewListUserParams

func NewListUserParams() ListUserParams

NewListUserParams creates a new ListUserParams object

There are no default values defined in the spec.

func (*ListUserParams) BindRequest

func (o *ListUserParams) 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 NewListUserParams() beforehand.

type ListUserResponder

type ListUserResponder interface {
	middleware.Responder
	ListUserResponder()
}

func ListUserNotImplemented

func ListUserNotImplemented() ListUserResponder

type ListUserURL

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

ListUserURL generates an URL for the list user operation

func (*ListUserURL) Build

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

Build a url path and query string

func (*ListUserURL) BuildFull

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

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

func (*ListUserURL) Must

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

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

func (*ListUserURL) SetBasePath

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

func (o *ListUserURL) String() string

String returns the string representation of the path with query string

func (*ListUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListUserURL) WithBasePath

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

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

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

login user by email and password

func NewLogin

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

NewLogin creates a new http.Handler for the login operation

func (*Login) ServeHTTP

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

type LoginBody

type LoginBody struct {

	// email
	// Required: true
	// Max Length: 255
	// Min Length: 1
	// Pattern: ^[\x21-\x7F]{1,64}@[\x21-\x3F\x41-\x7F]+$
	Email *string `json:"email"`

	// password
	// Required: true
	// Max Length: 100
	// Min Length: 6
	// Format: password
	Password *strfmt.Password `json:"password"`
}

LoginBody login body

swagger:model LoginBody

func (*LoginBody) ContextValidate

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

ContextValidate validates this login body based on context it is used

func (*LoginBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginBody) UnmarshalJSON

func (o *LoginBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*LoginBody) Validate

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

Validate validates this login body

type LoginDefault

type LoginDefault struct {

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

LoginDefault General errors using same model as used by go-swagger for validation errors.

swagger:response loginDefault

func NewLoginDefault

func NewLoginDefault(code int) *LoginDefault

NewLoginDefault creates LoginDefault with default headers values

func (*LoginDefault) LoginResponder

func (o *LoginDefault) LoginResponder()

func (*LoginDefault) SetPayload

func (o *LoginDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the login default response

func (*LoginDefault) SetStatusCode

func (o *LoginDefault) SetStatusCode(code int)

SetStatusCode sets the status to the login default response

func (*LoginDefault) WithPayload

func (o *LoginDefault) WithPayload(payload *model.Error) *LoginDefault

WithPayload adds the payload to the login default response

func (*LoginDefault) WithStatusCode

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

WithStatusCode adds the status to the login default response

func (*LoginDefault) WriteResponse

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

WriteResponse to the client

type LoginHandler

type LoginHandler interface {
	Handle(LoginParams) LoginResponder
}

LoginHandler interface for that can handle valid login params

type LoginHandlerFunc

type LoginHandlerFunc func(LoginParams) LoginResponder

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

func (LoginHandlerFunc) Handle

func (fn LoginHandlerFunc) Handle(params LoginParams) LoginResponder

Handle executing the request and returning a response

type LoginNotImplementedResponder

type LoginNotImplementedResponder struct {
	middleware.Responder
}

func (*LoginNotImplementedResponder) LoginResponder

func (*LoginNotImplementedResponder) LoginResponder()

type LoginOK

type LoginOK struct {

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

LoginOK OK

swagger:response loginOK

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates LoginOK with default headers values

func (*LoginOK) LoginResponder

func (o *LoginOK) LoginResponder()

func (*LoginOK) SetPayload

func (o *LoginOK) SetPayload(payload *LoginOKBody)

SetPayload sets the payload to the login o k response

func (*LoginOK) WithPayload

func (o *LoginOK) WithPayload(payload *LoginOKBody) *LoginOK

WithPayload adds the payload to the login o k response

func (*LoginOK) WriteResponse

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

WriteResponse to the client

type LoginOKBody

type LoginOKBody struct {

	// token
	// Required: true
	Token *string `json:"token"`

	// user
	// Required: true
	User *LoginOKBodyUser `json:"user"`
}

LoginOKBody login o k body

swagger:model LoginOKBody

func (*LoginOKBody) ContextValidate

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

ContextValidate validate this login o k body based on the context it is used

func (*LoginOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginOKBody) UnmarshalJSON

func (o *LoginOKBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*LoginOKBody) Validate

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

Validate validates this login o k body

type LoginOKBodyUser

type LoginOKBodyUser struct {

	// email
	// Required: true
	Email *string `json:"email"`

	// first name
	// Required: true
	FirstName *string `json:"first_name"`

	// role
	// Required: true
	Role *int64 `json:"role"`

	// second name
	// Required: true
	SecondName *string `json:"second_name"`

	// uuid id
	// Required: true
	UUIDID *string `json:"uuid_id"`
}

LoginOKBodyUser login o k body user

swagger:model LoginOKBodyUser

func (*LoginOKBodyUser) ContextValidate

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

ContextValidate validates this login o k body user based on context it is used

func (*LoginOKBodyUser) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginOKBodyUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginOKBodyUser) UnmarshalJSON

func (o *LoginOKBodyUser) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*LoginOKBodyUser) Validate

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

Validate validates this login o k body user

type LoginParams

type LoginParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args LoginBody
}

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

swagger:parameters login

func NewLoginParams

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object

There are no default values defined in the spec.

func (*LoginParams) BindRequest

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 LoginResponder

type LoginResponder interface {
	middleware.Responder
	LoginResponder()
}

func LoginNotImplemented

func LoginNotImplemented() LoginResponder

type LoginURL

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

LoginURL generates an URL for the login operation

func (*LoginURL) Build

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

Build a url path and query string

func (*LoginURL) BuildFull

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

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

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

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath

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 LogoutUser

type LogoutUser struct {
	Context *middleware.Context
	Handler LogoutUserHandler
}
LogoutUser swagger:route POST /logout logoutUser

logout user, remove jwt session

func NewLogoutUser

func NewLogoutUser(ctx *middleware.Context, handler LogoutUserHandler) *LogoutUser

NewLogoutUser creates a new http.Handler for the logout user operation

func (*LogoutUser) ServeHTTP

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

type LogoutUserDefault

type LogoutUserDefault struct {

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

LogoutUserDefault General errors using same model as used by go-swagger for validation errors.

swagger:response logoutUserDefault

func NewLogoutUserDefault

func NewLogoutUserDefault(code int) *LogoutUserDefault

NewLogoutUserDefault creates LogoutUserDefault with default headers values

func (*LogoutUserDefault) LogoutUserResponder

func (o *LogoutUserDefault) LogoutUserResponder()

func (*LogoutUserDefault) SetPayload

func (o *LogoutUserDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the logout user default response

func (*LogoutUserDefault) SetStatusCode

func (o *LogoutUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the logout user default response

func (*LogoutUserDefault) WithPayload

func (o *LogoutUserDefault) WithPayload(payload *model.Error) *LogoutUserDefault

WithPayload adds the payload to the logout user default response

func (*LogoutUserDefault) WithStatusCode

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

WithStatusCode adds the status to the logout user default response

func (*LogoutUserDefault) WriteResponse

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

WriteResponse to the client

type LogoutUserHandler

type LogoutUserHandler interface {
	Handle(LogoutUserParams, *app.UserSession) LogoutUserResponder
}

LogoutUserHandler interface for that can handle valid logout user params

type LogoutUserHandlerFunc

type LogoutUserHandlerFunc func(LogoutUserParams, *app.UserSession) LogoutUserResponder

LogoutUserHandlerFunc turns a function with the right signature into a logout user handler

func (LogoutUserHandlerFunc) Handle

Handle executing the request and returning a response

type LogoutUserNoContent

type LogoutUserNoContent struct {
}

LogoutUserNoContent No content in answer

swagger:response logoutUserNoContent

func NewLogoutUserNoContent

func NewLogoutUserNoContent() *LogoutUserNoContent

NewLogoutUserNoContent creates LogoutUserNoContent with default headers values

func (*LogoutUserNoContent) LogoutUserResponder

func (o *LogoutUserNoContent) LogoutUserResponder()

func (*LogoutUserNoContent) WriteResponse

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

WriteResponse to the client

type LogoutUserNotImplementedResponder

type LogoutUserNotImplementedResponder struct {
	middleware.Responder
}

func (*LogoutUserNotImplementedResponder) LogoutUserResponder

func (*LogoutUserNotImplementedResponder) LogoutUserResponder()

type LogoutUserParams

type LogoutUserParams struct {

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

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

swagger:parameters logoutUser

func NewLogoutUserParams

func NewLogoutUserParams() LogoutUserParams

NewLogoutUserParams creates a new LogoutUserParams object

There are no default values defined in the spec.

func (*LogoutUserParams) BindRequest

func (o *LogoutUserParams) 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 NewLogoutUserParams() beforehand.

type LogoutUserResponder

type LogoutUserResponder interface {
	middleware.Responder
	LogoutUserResponder()
}

func LogoutUserNotImplemented

func LogoutUserNotImplemented() LogoutUserResponder

type LogoutUserURL

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

LogoutUserURL generates an URL for the logout user operation

func (*LogoutUserURL) Build

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

Build a url path and query string

func (*LogoutUserURL) BuildFull

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

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

func (*LogoutUserURL) Must

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

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

func (*LogoutUserURL) SetBasePath

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

func (o *LogoutUserURL) String() string

String returns the string representation of the path with query string

func (*LogoutUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LogoutUserURL) WithBasePath

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

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 RegUser

type RegUser struct {
	Context *middleware.Context
	Handler RegUserHandler
}
RegUser swagger:route POST /user/register regUser

registration new user

func NewRegUser

func NewRegUser(ctx *middleware.Context, handler RegUserHandler) *RegUser

NewRegUser creates a new http.Handler for the reg user operation

func (*RegUser) ServeHTTP

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

type RegUserBody

type RegUserBody struct {

	// email
	// Required: true
	// Max Length: 255
	// Min Length: 1
	// Pattern: ^[\x21-\x7F]{1,64}@[\x21-\x3F\x41-\x7F]+$
	Email *string `json:"email"`

	// first name
	// Required: true
	// Max Length: 100
	// Min Length: 1
	FirstName *string `json:"first_name"`

	// password
	// Required: true
	// Max Length: 100
	// Min Length: 8
	// Format: password
	Password *strfmt.Password `json:"password"`

	// repeat password
	// Required: true
	// Max Length: 100
	// Min Length: 8
	// Format: password
	RepeatPassword *strfmt.Password `json:"repeat_password"`

	// role
	// Required: true
	Role *string `json:"role"`

	// second name
	// Required: true
	// Max Length: 100
	// Min Length: 1
	SecondName *string `json:"second_name"`
}

RegUserBody reg user body

swagger:model RegUserBody

func (*RegUserBody) ContextValidate

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

ContextValidate validates this reg user body based on context it is used

func (*RegUserBody) MarshalBinary

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

MarshalBinary interface implementation

func (*RegUserBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegUserBody) UnmarshalJSON

func (o *RegUserBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*RegUserBody) Validate

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

Validate validates this reg user body

type RegUserDefault

type RegUserDefault struct {

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

RegUserDefault General errors using same model as used by go-swagger for validation errors.

swagger:response regUserDefault

func NewRegUserDefault

func NewRegUserDefault(code int) *RegUserDefault

NewRegUserDefault creates RegUserDefault with default headers values

func (*RegUserDefault) RegUserResponder

func (o *RegUserDefault) RegUserResponder()

func (*RegUserDefault) SetPayload

func (o *RegUserDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the reg user default response

func (*RegUserDefault) SetStatusCode

func (o *RegUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the reg user default response

func (*RegUserDefault) WithPayload

func (o *RegUserDefault) WithPayload(payload *model.Error) *RegUserDefault

WithPayload adds the payload to the reg user default response

func (*RegUserDefault) WithStatusCode

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

WithStatusCode adds the status to the reg user default response

func (*RegUserDefault) WriteResponse

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

WriteResponse to the client

type RegUserHandler

type RegUserHandler interface {
	Handle(RegUserParams, *app.UserSession) RegUserResponder
}

RegUserHandler interface for that can handle valid reg user params

type RegUserHandlerFunc

type RegUserHandlerFunc func(RegUserParams, *app.UserSession) RegUserResponder

RegUserHandlerFunc turns a function with the right signature into a reg user handler

func (RegUserHandlerFunc) Handle

func (fn RegUserHandlerFunc) Handle(params RegUserParams, principal *app.UserSession) RegUserResponder

Handle executing the request and returning a response

type RegUserNoContent

type RegUserNoContent struct {
}

RegUserNoContent No content in answer

swagger:response regUserNoContent

func NewRegUserNoContent

func NewRegUserNoContent() *RegUserNoContent

NewRegUserNoContent creates RegUserNoContent with default headers values

func (*RegUserNoContent) RegUserResponder

func (o *RegUserNoContent) RegUserResponder()

func (*RegUserNoContent) WriteResponse

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

WriteResponse to the client

type RegUserNotImplementedResponder

type RegUserNotImplementedResponder struct {
	middleware.Responder
}

func (*RegUserNotImplementedResponder) RegUserResponder

func (*RegUserNotImplementedResponder) RegUserResponder()

type RegUserParams

type RegUserParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args RegUserBody
}

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

swagger:parameters regUser

func NewRegUserParams

func NewRegUserParams() RegUserParams

NewRegUserParams creates a new RegUserParams object

There are no default values defined in the spec.

func (*RegUserParams) BindRequest

func (o *RegUserParams) 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 NewRegUserParams() beforehand.

type RegUserResponder

type RegUserResponder interface {
	middleware.Responder
	RegUserResponder()
}

func RegUserNotImplemented

func RegUserNotImplemented() RegUserResponder

type RegUserURL

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

RegUserURL generates an URL for the reg user operation

func (*RegUserURL) Build

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

Build a url path and query string

func (*RegUserURL) BuildFull

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

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

func (*RegUserURL) Must

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

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

func (*RegUserURL) SetBasePath

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

func (o *RegUserURL) String() string

String returns the string representation of the path with query string

func (*RegUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RegUserURL) WithBasePath

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

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 SettingStorage

type SettingStorage struct {
	Context *middleware.Context
	Handler SettingStorageHandler
}
SettingStorage swagger:route PUT /setting/storage settingStorage

settingStorage

func NewSettingStorage

func NewSettingStorage(ctx *middleware.Context, handler SettingStorageHandler) *SettingStorage

NewSettingStorage creates a new http.Handler for the setting storage operation

func (*SettingStorage) ServeHTTP

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

type SettingStorageBody

type SettingStorageBody struct {

	// use
	Use int32 `json:"use,omitempty"`
}

SettingStorageBody setting storage body

swagger:model SettingStorageBody

func (*SettingStorageBody) ContextValidate

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

ContextValidate validates this setting storage body based on context it is used

func (*SettingStorageBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SettingStorageBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SettingStorageBody) UnmarshalJSON

func (o *SettingStorageBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*SettingStorageBody) Validate

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

Validate validates this setting storage body

type SettingStorageDefault

type SettingStorageDefault struct {

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

SettingStorageDefault General errors using same model as used by go-swagger for validation errors.

swagger:response settingStorageDefault

func NewSettingStorageDefault

func NewSettingStorageDefault(code int) *SettingStorageDefault

NewSettingStorageDefault creates SettingStorageDefault with default headers values

func (*SettingStorageDefault) SetPayload

func (o *SettingStorageDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the setting storage default response

func (*SettingStorageDefault) SetStatusCode

func (o *SettingStorageDefault) SetStatusCode(code int)

SetStatusCode sets the status to the setting storage default response

func (*SettingStorageDefault) SettingStorageResponder

func (o *SettingStorageDefault) SettingStorageResponder()

func (*SettingStorageDefault) WithPayload

func (o *SettingStorageDefault) WithPayload(payload *model.Error) *SettingStorageDefault

WithPayload adds the payload to the setting storage default response

func (*SettingStorageDefault) WithStatusCode

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

WithStatusCode adds the status to the setting storage default response

func (*SettingStorageDefault) WriteResponse

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

WriteResponse to the client

type SettingStorageHandler

type SettingStorageHandler interface {
	Handle(SettingStorageParams, *app.UserSession) SettingStorageResponder
}

SettingStorageHandler interface for that can handle valid setting storage params

type SettingStorageHandlerFunc

type SettingStorageHandlerFunc func(SettingStorageParams, *app.UserSession) SettingStorageResponder

SettingStorageHandlerFunc turns a function with the right signature into a setting storage handler

func (SettingStorageHandlerFunc) Handle

Handle executing the request and returning a response

type SettingStorageNoContent

type SettingStorageNoContent struct {
}

SettingStorageNoContent No content in answer

swagger:response settingStorageNoContent

func NewSettingStorageNoContent

func NewSettingStorageNoContent() *SettingStorageNoContent

NewSettingStorageNoContent creates SettingStorageNoContent with default headers values

func (*SettingStorageNoContent) SettingStorageResponder

func (o *SettingStorageNoContent) SettingStorageResponder()

func (*SettingStorageNoContent) WriteResponse

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

WriteResponse to the client

type SettingStorageNotImplementedResponder

type SettingStorageNotImplementedResponder struct {
	middleware.Responder
}

func (*SettingStorageNotImplementedResponder) SettingStorageResponder

func (*SettingStorageNotImplementedResponder) SettingStorageResponder()

type SettingStorageParams

type SettingStorageParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args SettingStorageBody
}

SettingStorageParams contains all the bound params for the setting storage operation typically these are obtained from a http.Request

swagger:parameters settingStorage

func NewSettingStorageParams

func NewSettingStorageParams() SettingStorageParams

NewSettingStorageParams creates a new SettingStorageParams object

There are no default values defined in the spec.

func (*SettingStorageParams) BindRequest

func (o *SettingStorageParams) 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 NewSettingStorageParams() beforehand.

type SettingStorageResponder

type SettingStorageResponder interface {
	middleware.Responder
	SettingStorageResponder()
}

func SettingStorageNotImplemented

func SettingStorageNotImplemented() SettingStorageResponder

type SettingStorageURL

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

SettingStorageURL generates an URL for the setting storage operation

func (*SettingStorageURL) Build

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

Build a url path and query string

func (*SettingStorageURL) BuildFull

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

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

func (*SettingStorageURL) Must

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

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

func (*SettingStorageURL) SetBasePath

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

func (o *SettingStorageURL) String() string

String returns the string representation of the path with query string

func (*SettingStorageURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SettingStorageURL) WithBasePath

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

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 SettingTranslation

type SettingTranslation struct {
	Context *middleware.Context
	Handler SettingTranslationHandler
}
SettingTranslation swagger:route PUT /setting/translation settingTranslation

settingTranslation

func NewSettingTranslation

func NewSettingTranslation(ctx *middleware.Context, handler SettingTranslationHandler) *SettingTranslation

NewSettingTranslation creates a new http.Handler for the setting translation operation

func (*SettingTranslation) ServeHTTP

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

type SettingTranslationBody

type SettingTranslationBody struct {

	// auto
	Auto bool `json:"auto,omitempty"`

	// main language
	// Min Length: 2
	MainLanguage string `json:"main_language,omitempty"`

	// use
	Use int32 `json:"use,omitempty"`
}

SettingTranslationBody setting translation body

swagger:model SettingTranslationBody

func (*SettingTranslationBody) ContextValidate

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

ContextValidate validates this setting translation body based on context it is used

func (*SettingTranslationBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SettingTranslationBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SettingTranslationBody) UnmarshalJSON

func (o *SettingTranslationBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*SettingTranslationBody) Validate

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

Validate validates this setting translation body

type SettingTranslationDefault

type SettingTranslationDefault struct {

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

SettingTranslationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response settingTranslationDefault

func NewSettingTranslationDefault

func NewSettingTranslationDefault(code int) *SettingTranslationDefault

NewSettingTranslationDefault creates SettingTranslationDefault with default headers values

func (*SettingTranslationDefault) SetPayload

func (o *SettingTranslationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the setting translation default response

func (*SettingTranslationDefault) SetStatusCode

func (o *SettingTranslationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the setting translation default response

func (*SettingTranslationDefault) SettingTranslationResponder

func (o *SettingTranslationDefault) SettingTranslationResponder()

func (*SettingTranslationDefault) WithPayload

WithPayload adds the payload to the setting translation default response

func (*SettingTranslationDefault) WithStatusCode

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

WithStatusCode adds the status to the setting translation default response

func (*SettingTranslationDefault) WriteResponse

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

WriteResponse to the client

type SettingTranslationHandler

type SettingTranslationHandler interface {
	Handle(SettingTranslationParams, *app.UserSession) SettingTranslationResponder
}

SettingTranslationHandler interface for that can handle valid setting translation params

type SettingTranslationHandlerFunc

type SettingTranslationHandlerFunc func(SettingTranslationParams, *app.UserSession) SettingTranslationResponder

SettingTranslationHandlerFunc turns a function with the right signature into a setting translation handler

func (SettingTranslationHandlerFunc) Handle

Handle executing the request and returning a response

type SettingTranslationNoContent

type SettingTranslationNoContent struct {
}

SettingTranslationNoContent No content in answer

swagger:response settingTranslationNoContent

func NewSettingTranslationNoContent

func NewSettingTranslationNoContent() *SettingTranslationNoContent

NewSettingTranslationNoContent creates SettingTranslationNoContent with default headers values

func (*SettingTranslationNoContent) SettingTranslationResponder

func (o *SettingTranslationNoContent) SettingTranslationResponder()

func (*SettingTranslationNoContent) WriteResponse

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

WriteResponse to the client

type SettingTranslationNotImplementedResponder

type SettingTranslationNotImplementedResponder struct {
	middleware.Responder
}

func (*SettingTranslationNotImplementedResponder) SettingTranslationResponder

func (*SettingTranslationNotImplementedResponder) SettingTranslationResponder()

type SettingTranslationParams

type SettingTranslationParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args SettingTranslationBody
}

SettingTranslationParams contains all the bound params for the setting translation operation typically these are obtained from a http.Request

swagger:parameters settingTranslation

func NewSettingTranslationParams

func NewSettingTranslationParams() SettingTranslationParams

NewSettingTranslationParams creates a new SettingTranslationParams object

There are no default values defined in the spec.

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

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

type SettingTranslationResponder

type SettingTranslationResponder interface {
	middleware.Responder
	SettingTranslationResponder()
}

func SettingTranslationNotImplemented

func SettingTranslationNotImplemented() SettingTranslationResponder

type SettingTranslationURL

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

SettingTranslationURL generates an URL for the setting translation operation

func (*SettingTranslationURL) Build

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

Build a url path and query string

func (*SettingTranslationURL) BuildFull

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

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

func (*SettingTranslationURL) Must

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

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

func (*SettingTranslationURL) SetBasePath

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

func (o *SettingTranslationURL) String() string

String returns the string representation of the path with query string

func (*SettingTranslationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SettingTranslationURL) WithBasePath

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

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 Settings

type Settings struct {
	Context *middleware.Context
	Handler SettingsHandler
}
Settings swagger:route GET /settings settings

settings

func NewSettings

func NewSettings(ctx *middleware.Context, handler SettingsHandler) *Settings

NewSettings creates a new http.Handler for the settings operation

func (*Settings) ServeHTTP

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

type SettingsDefault

type SettingsDefault struct {

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

SettingsDefault General errors using same model as used by go-swagger for validation errors.

swagger:response settingsDefault

func NewSettingsDefault

func NewSettingsDefault(code int) *SettingsDefault

NewSettingsDefault creates SettingsDefault with default headers values

func (*SettingsDefault) SetPayload

func (o *SettingsDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the settings default response

func (*SettingsDefault) SetStatusCode

func (o *SettingsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the settings default response

func (*SettingsDefault) SettingsResponder

func (o *SettingsDefault) SettingsResponder()

func (*SettingsDefault) WithPayload

func (o *SettingsDefault) WithPayload(payload *model.Error) *SettingsDefault

WithPayload adds the payload to the settings default response

func (*SettingsDefault) WithStatusCode

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

WithStatusCode adds the status to the settings default response

func (*SettingsDefault) WriteResponse

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

WriteResponse to the client

type SettingsHandler

type SettingsHandler interface {
	Handle(SettingsParams, *app.UserSession) SettingsResponder
}

SettingsHandler interface for that can handle valid settings params

type SettingsHandlerFunc

type SettingsHandlerFunc func(SettingsParams, *app.UserSession) SettingsResponder

SettingsHandlerFunc turns a function with the right signature into a settings handler

func (SettingsHandlerFunc) Handle

func (fn SettingsHandlerFunc) Handle(params SettingsParams, principal *app.UserSession) SettingsResponder

Handle executing the request and returning a response

type SettingsNotImplementedResponder

type SettingsNotImplementedResponder struct {
	middleware.Responder
}

func (*SettingsNotImplementedResponder) SettingsResponder

func (*SettingsNotImplementedResponder) SettingsResponder()

type SettingsOK

type SettingsOK struct {

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

SettingsOK get current settings full system (translation, storage, etc)

swagger:response settingsOK

func NewSettingsOK

func NewSettingsOK() *SettingsOK

NewSettingsOK creates SettingsOK with default headers values

func (*SettingsOK) SetPayload

func (o *SettingsOK) SetPayload(payload *SettingsOKBody)

SetPayload sets the payload to the settings o k response

func (*SettingsOK) SettingsResponder

func (o *SettingsOK) SettingsResponder()

func (*SettingsOK) WithPayload

func (o *SettingsOK) WithPayload(payload *SettingsOKBody) *SettingsOK

WithPayload adds the payload to the settings o k response

func (*SettingsOK) WriteResponse

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

WriteResponse to the client

type SettingsOKBody

type SettingsOKBody struct {

	// first launch
	// Required: true
	FirstLaunch bool `json:"first_launch"`

	// storage
	// Required: true
	Storage *model.StorageConfiguration `json:"storage"`

	// translation
	// Required: true
	Translation *model.TranslationConfiguration `json:"translation"`
}

SettingsOKBody settings o k body

swagger:model SettingsOKBody

func (*SettingsOKBody) ContextValidate

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

ContextValidate validate this settings o k body based on the context it is used

func (*SettingsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SettingsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SettingsOKBody) UnmarshalJSON

func (o *SettingsOKBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*SettingsOKBody) Validate

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

Validate validates this settings o k body

type SettingsParams

type SettingsParams struct {

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

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

swagger:parameters settings

func NewSettingsParams

func NewSettingsParams() SettingsParams

NewSettingsParams creates a new SettingsParams object

There are no default values defined in the spec.

func (*SettingsParams) BindRequest

func (o *SettingsParams) 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 NewSettingsParams() beforehand.

type SettingsResponder

type SettingsResponder interface {
	middleware.Responder
	SettingsResponder()
}

func SettingsNotImplemented

func SettingsNotImplemented() SettingsResponder

type SettingsURL

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

SettingsURL generates an URL for the settings operation

func (*SettingsURL) Build

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

Build a url path and query string

func (*SettingsURL) BuildFull

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

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

func (*SettingsURL) Must

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

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

func (*SettingsURL) SetBasePath

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

func (o *SettingsURL) String() string

String returns the string representation of the path with query string

func (*SettingsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SettingsURL) WithBasePath

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

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 Statistic

type Statistic struct {
	Context *middleware.Context
	Handler StatisticHandler
}
Statistic swagger:route GET /statistic statistic

get service statistic

func NewStatistic

func NewStatistic(ctx *middleware.Context, handler StatisticHandler) *Statistic

NewStatistic creates a new http.Handler for the statistic operation

func (*Statistic) ServeHTTP

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

type StatisticDefault

type StatisticDefault struct {

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

StatisticDefault General errors using same model as used by go-swagger for validation errors.

swagger:response statisticDefault

func NewStatisticDefault

func NewStatisticDefault(code int) *StatisticDefault

NewStatisticDefault creates StatisticDefault with default headers values

func (*StatisticDefault) SetPayload

func (o *StatisticDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the statistic default response

func (*StatisticDefault) SetStatusCode

func (o *StatisticDefault) SetStatusCode(code int)

SetStatusCode sets the status to the statistic default response

func (*StatisticDefault) StatisticResponder

func (o *StatisticDefault) StatisticResponder()

func (*StatisticDefault) WithPayload

func (o *StatisticDefault) WithPayload(payload *model.Error) *StatisticDefault

WithPayload adds the payload to the statistic default response

func (*StatisticDefault) WithStatusCode

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

WithStatusCode adds the status to the statistic default response

func (*StatisticDefault) WriteResponse

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

WriteResponse to the client

type StatisticHandler

type StatisticHandler interface {
	Handle(StatisticParams, *app.UserSession) StatisticResponder
}

StatisticHandler interface for that can handle valid statistic params

type StatisticHandlerFunc

type StatisticHandlerFunc func(StatisticParams, *app.UserSession) StatisticResponder

StatisticHandlerFunc turns a function with the right signature into a statistic handler

func (StatisticHandlerFunc) Handle

Handle executing the request and returning a response

type StatisticNotImplementedResponder

type StatisticNotImplementedResponder struct {
	middleware.Responder
}

func (*StatisticNotImplementedResponder) StatisticResponder

func (*StatisticNotImplementedResponder) StatisticResponder()

type StatisticOK

type StatisticOK struct {

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

StatisticOK get service statistic

swagger:response statisticOK

func NewStatisticOK

func NewStatisticOK() *StatisticOK

NewStatisticOK creates StatisticOK with default headers values

func (*StatisticOK) SetPayload

func (o *StatisticOK) SetPayload(payload *StatisticOKBody)

SetPayload sets the payload to the statistic o k response

func (*StatisticOK) StatisticResponder

func (o *StatisticOK) StatisticResponder()

func (*StatisticOK) WithPayload

func (o *StatisticOK) WithPayload(payload *StatisticOKBody) *StatisticOK

WithPayload adds the payload to the statistic o k response

func (*StatisticOK) WriteResponse

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

WriteResponse to the client

type StatisticOKBody

type StatisticOKBody struct {

	// count categories
	// Required: true
	// Minimum: 0
	CountCategories *int64 `json:"count_categories"`

	// count identifiers
	// Required: true
	// Minimum: 0
	CountIdentifiers *int64 `json:"count_identifiers"`

	// count localizations
	// Required: true
	// Minimum: 0
	CountLocalizations *int64 `json:"count_localizations"`

	// count users
	// Required: true
	// Minimum: 0
	CountUsers *int64 `json:"count_users"`

	// stat completed translations
	// Required: true
	StatCompletedTranslations []*StatisticOKBodyStatCompletedTranslationsItems0 `json:"stat_completed_translations"`
}

StatisticOKBody statistic o k body

swagger:model StatisticOKBody

func (*StatisticOKBody) ContextValidate

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

ContextValidate validate this statistic o k body based on the context it is used

func (*StatisticOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*StatisticOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatisticOKBody) UnmarshalJSON

func (o *StatisticOKBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*StatisticOKBody) Validate

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

Validate validates this statistic o k body

type StatisticOKBodyStatCompletedTranslationsItems0

type StatisticOKBodyStatCompletedTranslationsItems0 struct {

	// lang name
	// Required: true
	LangName *string `json:"lang_name"`

	// percentage
	// Required: true
	Percentage *float64 `json:"percentage"`
}

StatisticOKBodyStatCompletedTranslationsItems0 statistic o k body stat completed translations items0

swagger:model StatisticOKBodyStatCompletedTranslationsItems0

func (*StatisticOKBodyStatCompletedTranslationsItems0) ContextValidate

ContextValidate validates this statistic o k body stat completed translations items0 based on context it is used

func (*StatisticOKBodyStatCompletedTranslationsItems0) MarshalBinary

MarshalBinary interface implementation

func (*StatisticOKBodyStatCompletedTranslationsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*StatisticOKBodyStatCompletedTranslationsItems0) UnmarshalJSON

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*StatisticOKBodyStatCompletedTranslationsItems0) Validate

Validate validates this statistic o k body stat completed translations items0

type StatisticParams

type StatisticParams struct {

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

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

swagger:parameters statistic

func NewStatisticParams

func NewStatisticParams() StatisticParams

NewStatisticParams creates a new StatisticParams object

There are no default values defined in the spec.

func (*StatisticParams) BindRequest

func (o *StatisticParams) 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 NewStatisticParams() beforehand.

type StatisticResponder

type StatisticResponder interface {
	middleware.Responder
	StatisticResponder()
}

func StatisticNotImplemented

func StatisticNotImplemented() StatisticResponder

type StatisticURL

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

StatisticURL generates an URL for the statistic operation

func (*StatisticURL) Build

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

Build a url path and query string

func (*StatisticURL) BuildFull

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

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

func (*StatisticURL) Must

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

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

func (*StatisticURL) SetBasePath

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

func (o *StatisticURL) String() string

String returns the string representation of the path with query string

func (*StatisticURL) StringFull

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

StringFull returns the string representation of a complete url

func (*StatisticURL) WithBasePath

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

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 StatusTranslation

type StatusTranslation struct {
	Context *middleware.Context
	Handler StatusTranslationHandler
}
StatusTranslation swagger:route PUT /translation/{id}/status/{status} statusTranslation

change current status translation (hidden, draft, release)

func NewStatusTranslation

func NewStatusTranslation(ctx *middleware.Context, handler StatusTranslationHandler) *StatusTranslation

NewStatusTranslation creates a new http.Handler for the status translation operation

func (*StatusTranslation) ServeHTTP

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

type StatusTranslationDefault

type StatusTranslationDefault struct {

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

StatusTranslationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response statusTranslationDefault

func NewStatusTranslationDefault

func NewStatusTranslationDefault(code int) *StatusTranslationDefault

NewStatusTranslationDefault creates StatusTranslationDefault with default headers values

func (*StatusTranslationDefault) SetPayload

func (o *StatusTranslationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the status translation default response

func (*StatusTranslationDefault) SetStatusCode

func (o *StatusTranslationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the status translation default response

func (*StatusTranslationDefault) StatusTranslationResponder

func (o *StatusTranslationDefault) StatusTranslationResponder()

func (*StatusTranslationDefault) WithPayload

WithPayload adds the payload to the status translation default response

func (*StatusTranslationDefault) WithStatusCode

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

WithStatusCode adds the status to the status translation default response

func (*StatusTranslationDefault) WriteResponse

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

WriteResponse to the client

type StatusTranslationHandler

type StatusTranslationHandler interface {
	Handle(StatusTranslationParams, *app.UserSession) StatusTranslationResponder
}

StatusTranslationHandler interface for that can handle valid status translation params

type StatusTranslationHandlerFunc

type StatusTranslationHandlerFunc func(StatusTranslationParams, *app.UserSession) StatusTranslationResponder

StatusTranslationHandlerFunc turns a function with the right signature into a status translation handler

func (StatusTranslationHandlerFunc) Handle

Handle executing the request and returning a response

type StatusTranslationNoContent

type StatusTranslationNoContent struct {
}

StatusTranslationNoContent No content in answer

swagger:response statusTranslationNoContent

func NewStatusTranslationNoContent

func NewStatusTranslationNoContent() *StatusTranslationNoContent

NewStatusTranslationNoContent creates StatusTranslationNoContent with default headers values

func (*StatusTranslationNoContent) StatusTranslationResponder

func (o *StatusTranslationNoContent) StatusTranslationResponder()

func (*StatusTranslationNoContent) WriteResponse

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

WriteResponse to the client

type StatusTranslationNotImplementedResponder

type StatusTranslationNotImplementedResponder struct {
	middleware.Responder
}

func (*StatusTranslationNotImplementedResponder) StatusTranslationResponder

func (*StatusTranslationNotImplementedResponder) StatusTranslationResponder()

type StatusTranslationParams

type StatusTranslationParams struct {

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

	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  Minimum: 0
	  In: path
	*/
	Status int64
}

StatusTranslationParams contains all the bound params for the status translation operation typically these are obtained from a http.Request

swagger:parameters statusTranslation

func NewStatusTranslationParams

func NewStatusTranslationParams() StatusTranslationParams

NewStatusTranslationParams creates a new StatusTranslationParams object

There are no default values defined in the spec.

func (*StatusTranslationParams) BindRequest

func (o *StatusTranslationParams) 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 NewStatusTranslationParams() beforehand.

type StatusTranslationResponder

type StatusTranslationResponder interface {
	middleware.Responder
	StatusTranslationResponder()
}

func StatusTranslationNotImplemented

func StatusTranslationNotImplemented() StatusTranslationResponder

type StatusTranslationURL

type StatusTranslationURL struct {
	ID     int64
	Status int64
	// contains filtered or unexported fields
}

StatusTranslationURL generates an URL for the status translation operation

func (*StatusTranslationURL) Build

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

Build a url path and query string

func (*StatusTranslationURL) BuildFull

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

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

func (*StatusTranslationURL) Must

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

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

func (*StatusTranslationURL) SetBasePath

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

func (o *StatusTranslationURL) String() string

String returns the string representation of the path with query string

func (*StatusTranslationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*StatusTranslationURL) WithBasePath

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

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 SupportedLanguages

type SupportedLanguages struct {
	Context *middleware.Context
	Handler SupportedLanguagesHandler
}
SupportedLanguages swagger:route GET /supported-languages supportedLanguages

supported-languages

func NewSupportedLanguages

func NewSupportedLanguages(ctx *middleware.Context, handler SupportedLanguagesHandler) *SupportedLanguages

NewSupportedLanguages creates a new http.Handler for the supported languages operation

func (*SupportedLanguages) ServeHTTP

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

type SupportedLanguagesDefault

type SupportedLanguagesDefault struct {

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

SupportedLanguagesDefault General errors using same model as used by go-swagger for validation errors.

swagger:response supportedLanguagesDefault

func NewSupportedLanguagesDefault

func NewSupportedLanguagesDefault(code int) *SupportedLanguagesDefault

NewSupportedLanguagesDefault creates SupportedLanguagesDefault with default headers values

func (*SupportedLanguagesDefault) SetPayload

func (o *SupportedLanguagesDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the supported languages default response

func (*SupportedLanguagesDefault) SetStatusCode

func (o *SupportedLanguagesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the supported languages default response

func (*SupportedLanguagesDefault) SupportedLanguagesResponder

func (o *SupportedLanguagesDefault) SupportedLanguagesResponder()

func (*SupportedLanguagesDefault) WithPayload

WithPayload adds the payload to the supported languages default response

func (*SupportedLanguagesDefault) WithStatusCode

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

WithStatusCode adds the status to the supported languages default response

func (*SupportedLanguagesDefault) WriteResponse

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

WriteResponse to the client

type SupportedLanguagesHandler

type SupportedLanguagesHandler interface {
	Handle(SupportedLanguagesParams, *app.UserSession) SupportedLanguagesResponder
}

SupportedLanguagesHandler interface for that can handle valid supported languages params

type SupportedLanguagesHandlerFunc

type SupportedLanguagesHandlerFunc func(SupportedLanguagesParams, *app.UserSession) SupportedLanguagesResponder

SupportedLanguagesHandlerFunc turns a function with the right signature into a supported languages handler

func (SupportedLanguagesHandlerFunc) Handle

Handle executing the request and returning a response

type SupportedLanguagesNotImplementedResponder

type SupportedLanguagesNotImplementedResponder struct {
	middleware.Responder
}

func (*SupportedLanguagesNotImplementedResponder) SupportedLanguagesResponder

func (*SupportedLanguagesNotImplementedResponder) SupportedLanguagesResponder()

type SupportedLanguagesOK

type SupportedLanguagesOK struct {

	/*
	  In: Body
	*/
	Payload []*model.Language `json:"body,omitempty"`
}

SupportedLanguagesOK get list of all supported languages

swagger:response supportedLanguagesOK

func NewSupportedLanguagesOK

func NewSupportedLanguagesOK() *SupportedLanguagesOK

NewSupportedLanguagesOK creates SupportedLanguagesOK with default headers values

func (*SupportedLanguagesOK) SetPayload

func (o *SupportedLanguagesOK) SetPayload(payload []*model.Language)

SetPayload sets the payload to the supported languages o k response

func (*SupportedLanguagesOK) SupportedLanguagesResponder

func (o *SupportedLanguagesOK) SupportedLanguagesResponder()

func (*SupportedLanguagesOK) WithPayload

func (o *SupportedLanguagesOK) WithPayload(payload []*model.Language) *SupportedLanguagesOK

WithPayload adds the payload to the supported languages o k response

func (*SupportedLanguagesOK) WriteResponse

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

WriteResponse to the client

type SupportedLanguagesParams

type SupportedLanguagesParams struct {

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

SupportedLanguagesParams contains all the bound params for the supported languages operation typically these are obtained from a http.Request

swagger:parameters supportedLanguages

func NewSupportedLanguagesParams

func NewSupportedLanguagesParams() SupportedLanguagesParams

NewSupportedLanguagesParams creates a new SupportedLanguagesParams object

There are no default values defined in the spec.

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

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

type SupportedLanguagesResponder

type SupportedLanguagesResponder interface {
	middleware.Responder
	SupportedLanguagesResponder()
}

func SupportedLanguagesNotImplemented

func SupportedLanguagesNotImplemented() SupportedLanguagesResponder

type SupportedLanguagesURL

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

SupportedLanguagesURL generates an URL for the supported languages operation

func (*SupportedLanguagesURL) Build

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

Build a url path and query string

func (*SupportedLanguagesURL) BuildFull

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

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

func (*SupportedLanguagesURL) Must

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

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

func (*SupportedLanguagesURL) SetBasePath

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

func (o *SupportedLanguagesURL) String() string

String returns the string representation of the path with query string

func (*SupportedLanguagesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SupportedLanguagesURL) WithBasePath

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

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 UpdateCategory

type UpdateCategory struct {
	Context *middleware.Context
	Handler UpdateCategoryHandler
}
UpdateCategory swagger:route PUT /category/{id} updateCategory

update category

func NewUpdateCategory

func NewUpdateCategory(ctx *middleware.Context, handler UpdateCategoryHandler) *UpdateCategory

NewUpdateCategory creates a new http.Handler for the update category operation

func (*UpdateCategory) ServeHTTP

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

type UpdateCategoryBody

type UpdateCategoryBody struct {

	// name
	// Required: true
	// Max Length: 255
	// Min Length: 1
	Name *string `json:"name"`
}

UpdateCategoryBody update category body

swagger:model UpdateCategoryBody

func (*UpdateCategoryBody) ContextValidate

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

ContextValidate validates this update category body based on context it is used

func (*UpdateCategoryBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateCategoryBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateCategoryBody) UnmarshalJSON

func (o *UpdateCategoryBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*UpdateCategoryBody) Validate

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

Validate validates this update category body

type UpdateCategoryDefault

type UpdateCategoryDefault struct {

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

UpdateCategoryDefault General errors using same model as used by go-swagger for validation errors.

swagger:response updateCategoryDefault

func NewUpdateCategoryDefault

func NewUpdateCategoryDefault(code int) *UpdateCategoryDefault

NewUpdateCategoryDefault creates UpdateCategoryDefault with default headers values

func (*UpdateCategoryDefault) SetPayload

func (o *UpdateCategoryDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the update category default response

func (*UpdateCategoryDefault) SetStatusCode

func (o *UpdateCategoryDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update category default response

func (*UpdateCategoryDefault) UpdateCategoryResponder

func (o *UpdateCategoryDefault) UpdateCategoryResponder()

func (*UpdateCategoryDefault) WithPayload

func (o *UpdateCategoryDefault) WithPayload(payload *model.Error) *UpdateCategoryDefault

WithPayload adds the payload to the update category default response

func (*UpdateCategoryDefault) WithStatusCode

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

WithStatusCode adds the status to the update category default response

func (*UpdateCategoryDefault) WriteResponse

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

WriteResponse to the client

type UpdateCategoryHandler

type UpdateCategoryHandler interface {
	Handle(UpdateCategoryParams, *app.UserSession) UpdateCategoryResponder
}

UpdateCategoryHandler interface for that can handle valid update category params

type UpdateCategoryHandlerFunc

type UpdateCategoryHandlerFunc func(UpdateCategoryParams, *app.UserSession) UpdateCategoryResponder

UpdateCategoryHandlerFunc turns a function with the right signature into a update category handler

func (UpdateCategoryHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateCategoryNoContent

type UpdateCategoryNoContent struct {
}

UpdateCategoryNoContent No content in answer

swagger:response updateCategoryNoContent

func NewUpdateCategoryNoContent

func NewUpdateCategoryNoContent() *UpdateCategoryNoContent

NewUpdateCategoryNoContent creates UpdateCategoryNoContent with default headers values

func (*UpdateCategoryNoContent) UpdateCategoryResponder

func (o *UpdateCategoryNoContent) UpdateCategoryResponder()

func (*UpdateCategoryNoContent) WriteResponse

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

WriteResponse to the client

type UpdateCategoryNotImplementedResponder

type UpdateCategoryNotImplementedResponder struct {
	middleware.Responder
}

func (*UpdateCategoryNotImplementedResponder) UpdateCategoryResponder

func (*UpdateCategoryNotImplementedResponder) UpdateCategoryResponder()

type UpdateCategoryParams

type UpdateCategoryParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UpdateCategoryBody
	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

UpdateCategoryParams contains all the bound params for the update category operation typically these are obtained from a http.Request

swagger:parameters updateCategory

func NewUpdateCategoryParams

func NewUpdateCategoryParams() UpdateCategoryParams

NewUpdateCategoryParams creates a new UpdateCategoryParams object

There are no default values defined in the spec.

func (*UpdateCategoryParams) BindRequest

func (o *UpdateCategoryParams) 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 NewUpdateCategoryParams() beforehand.

type UpdateCategoryResponder

type UpdateCategoryResponder interface {
	middleware.Responder
	UpdateCategoryResponder()
}

func UpdateCategoryNotImplemented

func UpdateCategoryNotImplemented() UpdateCategoryResponder

type UpdateCategoryURL

type UpdateCategoryURL struct {
	ID int64
	// contains filtered or unexported fields
}

UpdateCategoryURL generates an URL for the update category operation

func (*UpdateCategoryURL) Build

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

Build a url path and query string

func (*UpdateCategoryURL) BuildFull

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

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

func (*UpdateCategoryURL) Must

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

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

func (*UpdateCategoryURL) SetBasePath

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

func (o *UpdateCategoryURL) String() string

String returns the string representation of the path with query string

func (*UpdateCategoryURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateCategoryURL) WithBasePath

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

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 UpdateIdentifier

type UpdateIdentifier struct {
	Context *middleware.Context
	Handler UpdateIdentifierHandler
}
UpdateIdentifier swagger:route PUT /identifier/{id} updateIdentifier

update identifier fields

func NewUpdateIdentifier

func NewUpdateIdentifier(ctx *middleware.Context, handler UpdateIdentifierHandler) *UpdateIdentifier

NewUpdateIdentifier creates a new http.Handler for the update identifier operation

func (*UpdateIdentifier) ServeHTTP

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

type UpdateIdentifierBody

type UpdateIdentifierBody struct {

	// category id
	CategoryID int64 `json:"category_id,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// name
	// Required: true
	// Max Length: 255
	// Min Length: 1
	Name *string `json:"name"`

	// parent id
	ParentID int64 `json:"parent_id,omitempty"`

	// platforms
	Platforms []string `json:"platforms"`

	// text plural
	TextPlural string `json:"text_plural,omitempty"`

	// text singular
	TextSingular string `json:"text_singular,omitempty"`
}

UpdateIdentifierBody update identifier body

swagger:model UpdateIdentifierBody

func (*UpdateIdentifierBody) ContextValidate

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

ContextValidate validates this update identifier body based on context it is used

func (*UpdateIdentifierBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateIdentifierBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateIdentifierBody) UnmarshalJSON

func (o *UpdateIdentifierBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*UpdateIdentifierBody) Validate

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

Validate validates this update identifier body

type UpdateIdentifierDefault

type UpdateIdentifierDefault struct {

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

UpdateIdentifierDefault General errors using same model as used by go-swagger for validation errors.

swagger:response updateIdentifierDefault

func NewUpdateIdentifierDefault

func NewUpdateIdentifierDefault(code int) *UpdateIdentifierDefault

NewUpdateIdentifierDefault creates UpdateIdentifierDefault with default headers values

func (*UpdateIdentifierDefault) SetPayload

func (o *UpdateIdentifierDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the update identifier default response

func (*UpdateIdentifierDefault) SetStatusCode

func (o *UpdateIdentifierDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update identifier default response

func (*UpdateIdentifierDefault) UpdateIdentifierResponder

func (o *UpdateIdentifierDefault) UpdateIdentifierResponder()

func (*UpdateIdentifierDefault) WithPayload

func (o *UpdateIdentifierDefault) WithPayload(payload *model.Error) *UpdateIdentifierDefault

WithPayload adds the payload to the update identifier default response

func (*UpdateIdentifierDefault) WithStatusCode

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

WithStatusCode adds the status to the update identifier default response

func (*UpdateIdentifierDefault) WriteResponse

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

WriteResponse to the client

type UpdateIdentifierHandler

type UpdateIdentifierHandler interface {
	Handle(UpdateIdentifierParams, *app.UserSession) UpdateIdentifierResponder
}

UpdateIdentifierHandler interface for that can handle valid update identifier params

type UpdateIdentifierHandlerFunc

type UpdateIdentifierHandlerFunc func(UpdateIdentifierParams, *app.UserSession) UpdateIdentifierResponder

UpdateIdentifierHandlerFunc turns a function with the right signature into a update identifier handler

func (UpdateIdentifierHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateIdentifierNoContent

type UpdateIdentifierNoContent struct {
}

UpdateIdentifierNoContent No content in answer

swagger:response updateIdentifierNoContent

func NewUpdateIdentifierNoContent

func NewUpdateIdentifierNoContent() *UpdateIdentifierNoContent

NewUpdateIdentifierNoContent creates UpdateIdentifierNoContent with default headers values

func (*UpdateIdentifierNoContent) UpdateIdentifierResponder

func (o *UpdateIdentifierNoContent) UpdateIdentifierResponder()

func (*UpdateIdentifierNoContent) WriteResponse

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

WriteResponse to the client

type UpdateIdentifierNotImplementedResponder

type UpdateIdentifierNotImplementedResponder struct {
	middleware.Responder
}

func (*UpdateIdentifierNotImplementedResponder) UpdateIdentifierResponder

func (*UpdateIdentifierNotImplementedResponder) UpdateIdentifierResponder()

type UpdateIdentifierParams

type UpdateIdentifierParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UpdateIdentifierBody
	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

UpdateIdentifierParams contains all the bound params for the update identifier operation typically these are obtained from a http.Request

swagger:parameters updateIdentifier

func NewUpdateIdentifierParams

func NewUpdateIdentifierParams() UpdateIdentifierParams

NewUpdateIdentifierParams creates a new UpdateIdentifierParams object

There are no default values defined in the spec.

func (*UpdateIdentifierParams) BindRequest

func (o *UpdateIdentifierParams) 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 NewUpdateIdentifierParams() beforehand.

type UpdateIdentifierResponder

type UpdateIdentifierResponder interface {
	middleware.Responder
	UpdateIdentifierResponder()
}

func UpdateIdentifierNotImplemented

func UpdateIdentifierNotImplemented() UpdateIdentifierResponder

type UpdateIdentifierURL

type UpdateIdentifierURL struct {
	ID int64
	// contains filtered or unexported fields
}

UpdateIdentifierURL generates an URL for the update identifier operation

func (*UpdateIdentifierURL) Build

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

Build a url path and query string

func (*UpdateIdentifierURL) BuildFull

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

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

func (*UpdateIdentifierURL) Must

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

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

func (*UpdateIdentifierURL) SetBasePath

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

func (o *UpdateIdentifierURL) String() string

String returns the string representation of the path with query string

func (*UpdateIdentifierURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateIdentifierURL) WithBasePath

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

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 UpdateTranslation

type UpdateTranslation struct {
	Context *middleware.Context
	Handler UpdateTranslationHandler
}
UpdateTranslation swagger:route PUT /translation/{id} updateTranslation

update translation

func NewUpdateTranslation

func NewUpdateTranslation(ctx *middleware.Context, handler UpdateTranslationHandler) *UpdateTranslation

NewUpdateTranslation creates a new http.Handler for the update translation operation

func (*UpdateTranslation) ServeHTTP

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

type UpdateTranslationBody

type UpdateTranslationBody struct {

	// plural
	Plural string `json:"plural,omitempty"`

	// singular
	// Required: true
	Singular *string `json:"singular"`
}

UpdateTranslationBody update translation body

swagger:model UpdateTranslationBody

func (*UpdateTranslationBody) ContextValidate

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

ContextValidate validates this update translation body based on context it is used

func (*UpdateTranslationBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateTranslationBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateTranslationBody) UnmarshalJSON

func (o *UpdateTranslationBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*UpdateTranslationBody) Validate

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

Validate validates this update translation body

type UpdateTranslationDefault

type UpdateTranslationDefault struct {

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

UpdateTranslationDefault General errors using same model as used by go-swagger for validation errors.

swagger:response updateTranslationDefault

func NewUpdateTranslationDefault

func NewUpdateTranslationDefault(code int) *UpdateTranslationDefault

NewUpdateTranslationDefault creates UpdateTranslationDefault with default headers values

func (*UpdateTranslationDefault) SetPayload

func (o *UpdateTranslationDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the update translation default response

func (*UpdateTranslationDefault) SetStatusCode

func (o *UpdateTranslationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update translation default response

func (*UpdateTranslationDefault) UpdateTranslationResponder

func (o *UpdateTranslationDefault) UpdateTranslationResponder()

func (*UpdateTranslationDefault) WithPayload

WithPayload adds the payload to the update translation default response

func (*UpdateTranslationDefault) WithStatusCode

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

WithStatusCode adds the status to the update translation default response

func (*UpdateTranslationDefault) WriteResponse

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

WriteResponse to the client

type UpdateTranslationHandler

type UpdateTranslationHandler interface {
	Handle(UpdateTranslationParams, *app.UserSession) UpdateTranslationResponder
}

UpdateTranslationHandler interface for that can handle valid update translation params

type UpdateTranslationHandlerFunc

type UpdateTranslationHandlerFunc func(UpdateTranslationParams, *app.UserSession) UpdateTranslationResponder

UpdateTranslationHandlerFunc turns a function with the right signature into a update translation handler

func (UpdateTranslationHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateTranslationNoContent

type UpdateTranslationNoContent struct {
}

UpdateTranslationNoContent No content in answer

swagger:response updateTranslationNoContent

func NewUpdateTranslationNoContent

func NewUpdateTranslationNoContent() *UpdateTranslationNoContent

NewUpdateTranslationNoContent creates UpdateTranslationNoContent with default headers values

func (*UpdateTranslationNoContent) UpdateTranslationResponder

func (o *UpdateTranslationNoContent) UpdateTranslationResponder()

func (*UpdateTranslationNoContent) WriteResponse

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

WriteResponse to the client

type UpdateTranslationNotImplementedResponder

type UpdateTranslationNotImplementedResponder struct {
	middleware.Responder
}

func (*UpdateTranslationNotImplementedResponder) UpdateTranslationResponder

func (*UpdateTranslationNotImplementedResponder) UpdateTranslationResponder()

type UpdateTranslationParams

type UpdateTranslationParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UpdateTranslationBody
	/*
	  Required: true
	  Minimum: 1
	  In: path
	*/
	ID int64
}

UpdateTranslationParams contains all the bound params for the update translation operation typically these are obtained from a http.Request

swagger:parameters updateTranslation

func NewUpdateTranslationParams

func NewUpdateTranslationParams() UpdateTranslationParams

NewUpdateTranslationParams creates a new UpdateTranslationParams object

There are no default values defined in the spec.

func (*UpdateTranslationParams) BindRequest

func (o *UpdateTranslationParams) 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 NewUpdateTranslationParams() beforehand.

type UpdateTranslationResponder

type UpdateTranslationResponder interface {
	middleware.Responder
	UpdateTranslationResponder()
}

func UpdateTranslationNotImplemented

func UpdateTranslationNotImplemented() UpdateTranslationResponder

type UpdateTranslationURL

type UpdateTranslationURL struct {
	ID int64
	// contains filtered or unexported fields
}

UpdateTranslationURL generates an URL for the update translation operation

func (*UpdateTranslationURL) Build

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

Build a url path and query string

func (*UpdateTranslationURL) BuildFull

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

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

func (*UpdateTranslationURL) Must

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

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

func (*UpdateTranslationURL) SetBasePath

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

func (o *UpdateTranslationURL) String() string

String returns the string representation of the path with query string

func (*UpdateTranslationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateTranslationURL) WithBasePath

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

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 UserChangePassword

type UserChangePassword struct {
	Context *middleware.Context
	Handler UserChangePasswordHandler
}
UserChangePassword swagger:route PUT /user/change-password userChangePassword

user change password

func NewUserChangePassword

func NewUserChangePassword(ctx *middleware.Context, handler UserChangePasswordHandler) *UserChangePassword

NewUserChangePassword creates a new http.Handler for the user change password operation

func (*UserChangePassword) ServeHTTP

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

type UserChangePasswordBody

type UserChangePasswordBody struct {

	// new password
	// Required: true
	// Max Length: 100
	// Min Length: 8
	NewPassword *string `json:"new_password"`

	// old password
	// Required: true
	// Max Length: 100
	// Min Length: 8
	OldPassword *string `json:"old_password"`

	// repeat password
	// Required: true
	// Max Length: 100
	// Min Length: 8
	RepeatPassword *string `json:"repeat_password"`
}

UserChangePasswordBody user change password body

swagger:model UserChangePasswordBody

func (*UserChangePasswordBody) ContextValidate

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

ContextValidate validates this user change password body based on context it is used

func (*UserChangePasswordBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UserChangePasswordBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserChangePasswordBody) UnmarshalJSON

func (o *UserChangePasswordBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*UserChangePasswordBody) Validate

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

Validate validates this user change password body

type UserChangePasswordDefault

type UserChangePasswordDefault struct {

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

UserChangePasswordDefault General errors using same model as used by go-swagger for validation errors.

swagger:response userChangePasswordDefault

func NewUserChangePasswordDefault

func NewUserChangePasswordDefault(code int) *UserChangePasswordDefault

NewUserChangePasswordDefault creates UserChangePasswordDefault with default headers values

func (*UserChangePasswordDefault) SetPayload

func (o *UserChangePasswordDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the user change password default response

func (*UserChangePasswordDefault) SetStatusCode

func (o *UserChangePasswordDefault) SetStatusCode(code int)

SetStatusCode sets the status to the user change password default response

func (*UserChangePasswordDefault) UserChangePasswordResponder

func (o *UserChangePasswordDefault) UserChangePasswordResponder()

func (*UserChangePasswordDefault) WithPayload

WithPayload adds the payload to the user change password default response

func (*UserChangePasswordDefault) WithStatusCode

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

WithStatusCode adds the status to the user change password default response

func (*UserChangePasswordDefault) WriteResponse

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

WriteResponse to the client

type UserChangePasswordHandler

type UserChangePasswordHandler interface {
	Handle(UserChangePasswordParams, *app.UserSession) UserChangePasswordResponder
}

UserChangePasswordHandler interface for that can handle valid user change password params

type UserChangePasswordHandlerFunc

type UserChangePasswordHandlerFunc func(UserChangePasswordParams, *app.UserSession) UserChangePasswordResponder

UserChangePasswordHandlerFunc turns a function with the right signature into a user change password handler

func (UserChangePasswordHandlerFunc) Handle

Handle executing the request and returning a response

type UserChangePasswordNoContent

type UserChangePasswordNoContent struct {
}

UserChangePasswordNoContent No content in answer

swagger:response userChangePasswordNoContent

func NewUserChangePasswordNoContent

func NewUserChangePasswordNoContent() *UserChangePasswordNoContent

NewUserChangePasswordNoContent creates UserChangePasswordNoContent with default headers values

func (*UserChangePasswordNoContent) UserChangePasswordResponder

func (o *UserChangePasswordNoContent) UserChangePasswordResponder()

func (*UserChangePasswordNoContent) WriteResponse

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

WriteResponse to the client

type UserChangePasswordNotImplementedResponder

type UserChangePasswordNotImplementedResponder struct {
	middleware.Responder
}

func (*UserChangePasswordNotImplementedResponder) UserChangePasswordResponder

func (*UserChangePasswordNotImplementedResponder) UserChangePasswordResponder()

type UserChangePasswordParams

type UserChangePasswordParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UserChangePasswordBody
}

UserChangePasswordParams contains all the bound params for the user change password operation typically these are obtained from a http.Request

swagger:parameters userChangePassword

func NewUserChangePasswordParams

func NewUserChangePasswordParams() UserChangePasswordParams

NewUserChangePasswordParams creates a new UserChangePasswordParams object

There are no default values defined in the spec.

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

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

type UserChangePasswordResponder

type UserChangePasswordResponder interface {
	middleware.Responder
	UserChangePasswordResponder()
}

func UserChangePasswordNotImplemented

func UserChangePasswordNotImplemented() UserChangePasswordResponder

type UserChangePasswordURL

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

UserChangePasswordURL generates an URL for the user change password operation

func (*UserChangePasswordURL) Build

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

Build a url path and query string

func (*UserChangePasswordURL) BuildFull

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

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

func (*UserChangePasswordURL) Must

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

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

func (*UserChangePasswordURL) SetBasePath

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

func (o *UserChangePasswordURL) String() string

String returns the string representation of the path with query string

func (*UserChangePasswordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UserChangePasswordURL) WithBasePath

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

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 UserChangeProfile

type UserChangeProfile struct {
	Context *middleware.Context
	Handler UserChangeProfileHandler
}
UserChangeProfile swagger:route PUT /user/change-profile userChangeProfile

user change profile

func NewUserChangeProfile

func NewUserChangeProfile(ctx *middleware.Context, handler UserChangeProfileHandler) *UserChangeProfile

NewUserChangeProfile creates a new http.Handler for the user change profile operation

func (*UserChangeProfile) ServeHTTP

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

type UserChangeProfileBody

type UserChangeProfileBody struct {

	// email
	// Required: true
	// Max Length: 100
	// Min Length: 1
	Email *string `json:"email"`

	// first name
	// Required: true
	// Max Length: 100
	// Min Length: 1
	FirstName *string `json:"first_name"`

	// role
	// Enum: [admin moderator translator user]
	Role *string `json:"role,omitempty"`

	// second name
	// Required: true
	// Max Length: 100
	// Min Length: 1
	SecondName *string `json:"second_name"`

	// status
	// Enum: [active not active banned]
	Status *string `json:"status,omitempty"`

	// user id
	UserID int64 `json:"user_id,omitempty"`
}

UserChangeProfileBody user change profile body

swagger:model UserChangeProfileBody

func (*UserChangeProfileBody) ContextValidate

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

ContextValidate validates this user change profile body based on context it is used

func (*UserChangeProfileBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UserChangeProfileBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserChangeProfileBody) UnmarshalJSON

func (o *UserChangeProfileBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*UserChangeProfileBody) Validate

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

Validate validates this user change profile body

type UserChangeProfileDefault

type UserChangeProfileDefault struct {

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

UserChangeProfileDefault General errors using same model as used by go-swagger for validation errors.

swagger:response userChangeProfileDefault

func NewUserChangeProfileDefault

func NewUserChangeProfileDefault(code int) *UserChangeProfileDefault

NewUserChangeProfileDefault creates UserChangeProfileDefault with default headers values

func (*UserChangeProfileDefault) SetPayload

func (o *UserChangeProfileDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the user change profile default response

func (*UserChangeProfileDefault) SetStatusCode

func (o *UserChangeProfileDefault) SetStatusCode(code int)

SetStatusCode sets the status to the user change profile default response

func (*UserChangeProfileDefault) UserChangeProfileResponder

func (o *UserChangeProfileDefault) UserChangeProfileResponder()

func (*UserChangeProfileDefault) WithPayload

WithPayload adds the payload to the user change profile default response

func (*UserChangeProfileDefault) WithStatusCode

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

WithStatusCode adds the status to the user change profile default response

func (*UserChangeProfileDefault) WriteResponse

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

WriteResponse to the client

type UserChangeProfileHandler

type UserChangeProfileHandler interface {
	Handle(UserChangeProfileParams, *app.UserSession) UserChangeProfileResponder
}

UserChangeProfileHandler interface for that can handle valid user change profile params

type UserChangeProfileHandlerFunc

type UserChangeProfileHandlerFunc func(UserChangeProfileParams, *app.UserSession) UserChangeProfileResponder

UserChangeProfileHandlerFunc turns a function with the right signature into a user change profile handler

func (UserChangeProfileHandlerFunc) Handle

Handle executing the request and returning a response

type UserChangeProfileNoContent

type UserChangeProfileNoContent struct {
}

UserChangeProfileNoContent No content in answer

swagger:response userChangeProfileNoContent

func NewUserChangeProfileNoContent

func NewUserChangeProfileNoContent() *UserChangeProfileNoContent

NewUserChangeProfileNoContent creates UserChangeProfileNoContent with default headers values

func (*UserChangeProfileNoContent) UserChangeProfileResponder

func (o *UserChangeProfileNoContent) UserChangeProfileResponder()

func (*UserChangeProfileNoContent) WriteResponse

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

WriteResponse to the client

type UserChangeProfileNotImplementedResponder

type UserChangeProfileNotImplementedResponder struct {
	middleware.Responder
}

func (*UserChangeProfileNotImplementedResponder) UserChangeProfileResponder

func (*UserChangeProfileNotImplementedResponder) UserChangeProfileResponder()

type UserChangeProfileParams

type UserChangeProfileParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UserChangeProfileBody
}

UserChangeProfileParams contains all the bound params for the user change profile operation typically these are obtained from a http.Request

swagger:parameters userChangeProfile

func NewUserChangeProfileParams

func NewUserChangeProfileParams() UserChangeProfileParams

NewUserChangeProfileParams creates a new UserChangeProfileParams object

There are no default values defined in the spec.

func (*UserChangeProfileParams) BindRequest

func (o *UserChangeProfileParams) 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 NewUserChangeProfileParams() beforehand.

type UserChangeProfileResponder

type UserChangeProfileResponder interface {
	middleware.Responder
	UserChangeProfileResponder()
}

func UserChangeProfileNotImplemented

func UserChangeProfileNotImplemented() UserChangeProfileResponder

type UserChangeProfileURL

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

UserChangeProfileURL generates an URL for the user change profile operation

func (*UserChangeProfileURL) Build

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

Build a url path and query string

func (*UserChangeProfileURL) BuildFull

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

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

func (*UserChangeProfileURL) Must

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

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

func (*UserChangeProfileURL) SetBasePath

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

func (o *UserChangeProfileURL) String() string

String returns the string representation of the path with query string

func (*UserChangeProfileURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UserChangeProfileURL) WithBasePath

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

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 UserChangeStatus

type UserChangeStatus struct {
	Context *middleware.Context
	Handler UserChangeStatusHandler
}
UserChangeStatus swagger:route PUT /user/change-status userChangeStatus

user change status

func NewUserChangeStatus

func NewUserChangeStatus(ctx *middleware.Context, handler UserChangeStatusHandler) *UserChangeStatus

NewUserChangeStatus creates a new http.Handler for the user change status operation

func (*UserChangeStatus) ServeHTTP

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

type UserChangeStatusBody

type UserChangeStatusBody struct {

	// status
	// Required: true
	Status *int64 `json:"status"`

	// user id
	// Required: true
	UserID *int64 `json:"user_id"`
}

UserChangeStatusBody user change status body

swagger:model UserChangeStatusBody

func (*UserChangeStatusBody) ContextValidate

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

ContextValidate validates this user change status body based on context it is used

func (*UserChangeStatusBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UserChangeStatusBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserChangeStatusBody) UnmarshalJSON

func (o *UserChangeStatusBody) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*UserChangeStatusBody) Validate

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

Validate validates this user change status body

type UserChangeStatusDefault

type UserChangeStatusDefault struct {

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

UserChangeStatusDefault General errors using same model as used by go-swagger for validation errors.

swagger:response userChangeStatusDefault

func NewUserChangeStatusDefault

func NewUserChangeStatusDefault(code int) *UserChangeStatusDefault

NewUserChangeStatusDefault creates UserChangeStatusDefault with default headers values

func (*UserChangeStatusDefault) SetPayload

func (o *UserChangeStatusDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the user change status default response

func (*UserChangeStatusDefault) SetStatusCode

func (o *UserChangeStatusDefault) SetStatusCode(code int)

SetStatusCode sets the status to the user change status default response

func (*UserChangeStatusDefault) UserChangeStatusResponder

func (o *UserChangeStatusDefault) UserChangeStatusResponder()

func (*UserChangeStatusDefault) WithPayload

func (o *UserChangeStatusDefault) WithPayload(payload *model.Error) *UserChangeStatusDefault

WithPayload adds the payload to the user change status default response

func (*UserChangeStatusDefault) WithStatusCode

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

WithStatusCode adds the status to the user change status default response

func (*UserChangeStatusDefault) WriteResponse

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

WriteResponse to the client

type UserChangeStatusHandler

type UserChangeStatusHandler interface {
	Handle(UserChangeStatusParams, *app.UserSession) UserChangeStatusResponder
}

UserChangeStatusHandler interface for that can handle valid user change status params

type UserChangeStatusHandlerFunc

type UserChangeStatusHandlerFunc func(UserChangeStatusParams, *app.UserSession) UserChangeStatusResponder

UserChangeStatusHandlerFunc turns a function with the right signature into a user change status handler

func (UserChangeStatusHandlerFunc) Handle

Handle executing the request and returning a response

type UserChangeStatusNoContent

type UserChangeStatusNoContent struct {
}

UserChangeStatusNoContent No content in answer

swagger:response userChangeStatusNoContent

func NewUserChangeStatusNoContent

func NewUserChangeStatusNoContent() *UserChangeStatusNoContent

NewUserChangeStatusNoContent creates UserChangeStatusNoContent with default headers values

func (*UserChangeStatusNoContent) UserChangeStatusResponder

func (o *UserChangeStatusNoContent) UserChangeStatusResponder()

func (*UserChangeStatusNoContent) WriteResponse

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

WriteResponse to the client

type UserChangeStatusNotImplementedResponder

type UserChangeStatusNotImplementedResponder struct {
	middleware.Responder
}

func (*UserChangeStatusNotImplementedResponder) UserChangeStatusResponder

func (*UserChangeStatusNotImplementedResponder) UserChangeStatusResponder()

type UserChangeStatusParams

type UserChangeStatusParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UserChangeStatusBody
}

UserChangeStatusParams contains all the bound params for the user change status operation typically these are obtained from a http.Request

swagger:parameters userChangeStatus

func NewUserChangeStatusParams

func NewUserChangeStatusParams() UserChangeStatusParams

NewUserChangeStatusParams creates a new UserChangeStatusParams object

There are no default values defined in the spec.

func (*UserChangeStatusParams) BindRequest

func (o *UserChangeStatusParams) 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 NewUserChangeStatusParams() beforehand.

type UserChangeStatusResponder

type UserChangeStatusResponder interface {
	middleware.Responder
	UserChangeStatusResponder()
}

func UserChangeStatusNotImplemented

func UserChangeStatusNotImplemented() UserChangeStatusResponder

type UserChangeStatusURL

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

UserChangeStatusURL generates an URL for the user change status operation

func (*UserChangeStatusURL) Build

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

Build a url path and query string

func (*UserChangeStatusURL) BuildFull

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

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

func (*UserChangeStatusURL) Must

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

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

func (*UserChangeStatusURL) SetBasePath

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

func (o *UserChangeStatusURL) String() string

String returns the string representation of the path with query string

func (*UserChangeStatusURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UserChangeStatusURL) WithBasePath

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

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 UserMe

type UserMe struct {
	Context *middleware.Context
	Handler UserMeHandler
}
UserMe swagger:route GET /user/me userMe

get own user information

func NewUserMe

func NewUserMe(ctx *middleware.Context, handler UserMeHandler) *UserMe

NewUserMe creates a new http.Handler for the user me operation

func (*UserMe) ServeHTTP

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

type UserMeDefault

type UserMeDefault struct {

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

UserMeDefault General errors using same model as used by go-swagger for validation errors.

swagger:response userMeDefault

func NewUserMeDefault

func NewUserMeDefault(code int) *UserMeDefault

NewUserMeDefault creates UserMeDefault with default headers values

func (*UserMeDefault) SetPayload

func (o *UserMeDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the user me default response

func (*UserMeDefault) SetStatusCode

func (o *UserMeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the user me default response

func (*UserMeDefault) UserMeResponder

func (o *UserMeDefault) UserMeResponder()

func (*UserMeDefault) WithPayload

func (o *UserMeDefault) WithPayload(payload *model.Error) *UserMeDefault

WithPayload adds the payload to the user me default response

func (*UserMeDefault) WithStatusCode

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

WithStatusCode adds the status to the user me default response

func (*UserMeDefault) WriteResponse

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

WriteResponse to the client

type UserMeHandler

type UserMeHandler interface {
	Handle(UserMeParams, *app.UserSession) UserMeResponder
}

UserMeHandler interface for that can handle valid user me params

type UserMeHandlerFunc

type UserMeHandlerFunc func(UserMeParams, *app.UserSession) UserMeResponder

UserMeHandlerFunc turns a function with the right signature into a user me handler

func (UserMeHandlerFunc) Handle

func (fn UserMeHandlerFunc) Handle(params UserMeParams, principal *app.UserSession) UserMeResponder

Handle executing the request and returning a response

type UserMeNotImplementedResponder

type UserMeNotImplementedResponder struct {
	middleware.Responder
}

func (*UserMeNotImplementedResponder) UserMeResponder

func (*UserMeNotImplementedResponder) UserMeResponder()

type UserMeOK

type UserMeOK struct {

	/*
	  In: Body
	*/
	Payload *model.User `json:"body,omitempty"`
}

UserMeOK user model

swagger:response userMeOK

func NewUserMeOK

func NewUserMeOK() *UserMeOK

NewUserMeOK creates UserMeOK with default headers values

func (*UserMeOK) SetPayload

func (o *UserMeOK) SetPayload(payload *model.User)

SetPayload sets the payload to the user me o k response

func (*UserMeOK) UserMeResponder

func (o *UserMeOK) UserMeResponder()

func (*UserMeOK) WithPayload

func (o *UserMeOK) WithPayload(payload *model.User) *UserMeOK

WithPayload adds the payload to the user me o k response

func (*UserMeOK) WriteResponse

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

WriteResponse to the client

type UserMeParams

type UserMeParams struct {

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

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

swagger:parameters userMe

func NewUserMeParams

func NewUserMeParams() UserMeParams

NewUserMeParams creates a new UserMeParams object

There are no default values defined in the spec.

func (*UserMeParams) BindRequest

func (o *UserMeParams) 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 NewUserMeParams() beforehand.

type UserMeResponder

type UserMeResponder interface {
	middleware.Responder
	UserMeResponder()
}

func UserMeNotImplemented

func UserMeNotImplemented() UserMeResponder

type UserMeURL

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

UserMeURL generates an URL for the user me operation

func (*UserMeURL) Build

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

Build a url path and query string

func (*UserMeURL) BuildFull

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

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

func (*UserMeURL) Must

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

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

func (*UserMeURL) SetBasePath

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

func (o *UserMeURL) String() string

String returns the string representation of the path with query string

func (*UserMeURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UserMeURL) WithBasePath

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

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 Version

type Version struct {
	Context *middleware.Context
	Handler VersionHandler
}
Version swagger:route GET /version version

get actual version of translation files ( 0 - web, 1 - ios, 2 - android) or translations (3 - get last updated date)

func NewVersion

func NewVersion(ctx *middleware.Context, handler VersionHandler) *Version

NewVersion creates a new http.Handler for the version operation

func (*Version) ServeHTTP

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

type VersionDefault

type VersionDefault struct {

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

VersionDefault General errors using same model as used by go-swagger for validation errors.

swagger:response versionDefault

func NewVersionDefault

func NewVersionDefault(code int) *VersionDefault

NewVersionDefault creates VersionDefault with default headers values

func (*VersionDefault) SetPayload

func (o *VersionDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the version default response

func (*VersionDefault) SetStatusCode

func (o *VersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the version default response

func (*VersionDefault) VersionResponder

func (o *VersionDefault) VersionResponder()

func (*VersionDefault) WithPayload

func (o *VersionDefault) WithPayload(payload *model.Error) *VersionDefault

WithPayload adds the payload to the version default response

func (*VersionDefault) WithStatusCode

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

WithStatusCode adds the status to the version default response

func (*VersionDefault) WriteResponse

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

WriteResponse to the client

type VersionHandler

type VersionHandler interface {
	Handle(VersionParams, *app.UserSession) VersionResponder
}

VersionHandler interface for that can handle valid version params

type VersionHandlerFunc

type VersionHandlerFunc func(VersionParams, *app.UserSession) VersionResponder

VersionHandlerFunc turns a function with the right signature into a version handler

func (VersionHandlerFunc) Handle

func (fn VersionHandlerFunc) Handle(params VersionParams, principal *app.UserSession) VersionResponder

Handle executing the request and returning a response

type VersionNotImplementedResponder

type VersionNotImplementedResponder struct {
	middleware.Responder
}

func (*VersionNotImplementedResponder) VersionResponder

func (*VersionNotImplementedResponder) VersionResponder()

type VersionOK

type VersionOK struct {

	/*
	  In: Body
	*/
	Payload []*model.Version `json:"body,omitempty"`
}

VersionOK List of all actual version translations

swagger:response versionOK

func NewVersionOK

func NewVersionOK() *VersionOK

NewVersionOK creates VersionOK with default headers values

func (*VersionOK) SetPayload

func (o *VersionOK) SetPayload(payload []*model.Version)

SetPayload sets the payload to the version o k response

func (*VersionOK) VersionResponder

func (o *VersionOK) VersionResponder()

func (*VersionOK) WithPayload

func (o *VersionOK) WithPayload(payload []*model.Version) *VersionOK

WithPayload adds the payload to the version o k response

func (*VersionOK) WriteResponse

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

WriteResponse to the client

type VersionParams

type VersionParams struct {

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

	/*
	  Minimum: 1
	  In: query
	*/
	LocalizationID *int64
	/*
	  Minimum: -1
	  In: query
	  Default: -1
	*/
	Platform *int64
}

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

swagger:parameters version

func NewVersionParams

func NewVersionParams() VersionParams

NewVersionParams creates a new VersionParams object with the default values initialized.

func (*VersionParams) BindRequest

func (o *VersionParams) 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 NewVersionParams() beforehand.

type VersionResponder

type VersionResponder interface {
	middleware.Responder
	VersionResponder()
}

func VersionNotImplemented

func VersionNotImplemented() VersionResponder

type VersionURL

type VersionURL struct {
	LocalizationID *int64
	Platform       *int64
	// contains filtered or unexported fields
}

VersionURL generates an URL for the version operation

func (*VersionURL) Build

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

Build a url path and query string

func (*VersionURL) BuildFull

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

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

func (*VersionURL) Must

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

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

func (*VersionURL) SetBasePath

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

func (o *VersionURL) String() string

String returns the string representation of the path with query string

func (*VersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*VersionURL) WithBasePath

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

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

Source Files

Jump to

Keyboard shortcuts

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