api

package
v0.0.0-...-386b353 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type Ad struct {
	// Идентификатор рекламы.
	ID    int   `json:"id"`
	Image Image `json:"image"`
	Color Color `json:"color"`
	Tg    Tg    `json:"tg"`
	// Должность, связанная с рекламой.
	Post string `json:"post"`
	// Заголовок рекламы.
	Title string `json:"title"`
	// Описание рекламы.
	Description string `json:"description"`
	// Приоритет рекламы.
	Priority AdPriority `json:"priority"`
}

Ref: #

func (*Ad) Decode

func (s *Ad) Decode(d *jx.Decoder) error

Decode decodes Ad from json.

func (*Ad) Encode

func (s *Ad) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Ad) GetColor

func (s *Ad) GetColor() Color

GetColor returns the value of Color.

func (*Ad) GetDescription

func (s *Ad) GetDescription() string

GetDescription returns the value of Description.

func (*Ad) GetID

func (s *Ad) GetID() int

GetID returns the value of ID.

func (*Ad) GetImage

func (s *Ad) GetImage() Image

GetImage returns the value of Image.

func (*Ad) GetPost

func (s *Ad) GetPost() string

GetPost returns the value of Post.

func (*Ad) GetPriority

func (s *Ad) GetPriority() AdPriority

GetPriority returns the value of Priority.

func (*Ad) GetTg

func (s *Ad) GetTg() Tg

GetTg returns the value of Tg.

func (*Ad) GetTitle

func (s *Ad) GetTitle() string

GetTitle returns the value of Title.

func (*Ad) MarshalJSON

func (s *Ad) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Ad) SetColor

func (s *Ad) SetColor(val Color)

SetColor sets the value of Color.

func (*Ad) SetDescription

func (s *Ad) SetDescription(val string)

SetDescription sets the value of Description.

func (*Ad) SetID

func (s *Ad) SetID(val int)

SetID sets the value of ID.

func (*Ad) SetImage

func (s *Ad) SetImage(val Image)

SetImage sets the value of Image.

func (*Ad) SetPost

func (s *Ad) SetPost(val string)

SetPost sets the value of Post.

func (*Ad) SetPriority

func (s *Ad) SetPriority(val AdPriority)

SetPriority sets the value of Priority.

func (*Ad) SetTg

func (s *Ad) SetTg(val Tg)

SetTg sets the value of Tg.

func (*Ad) SetTitle

func (s *Ad) SetTitle(val string)

SetTitle sets the value of Title.

func (*Ad) UnmarshalJSON

func (s *Ad) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Ad) Validate

func (s *Ad) Validate() error

type AdPost

type AdPost struct {
	// Должность, связанная с рекламой.
	Post string `json:"post"`
	// Идентификатор изображения.
	ImagesID int `json:"images_id"`
	// Идентификатор цвета.
	ColorsID int `json:"colors_id"`
	// Идентификатор тега.
	TgID int `json:"tg_id"`
	// Заголовок рекламы.
	Title string `json:"title"`
	// Описание рекламы.
	Description string `json:"description"`
	// Приоритет рекламы.
	Priority AdPostPriority `json:"priority"`
}

Ref: #

func (*AdPost) Decode

func (s *AdPost) Decode(d *jx.Decoder) error

Decode decodes AdPost from json.

func (*AdPost) Encode

func (s *AdPost) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AdPost) GetColorsID

func (s *AdPost) GetColorsID() int

GetColorsID returns the value of ColorsID.

func (*AdPost) GetDescription

func (s *AdPost) GetDescription() string

GetDescription returns the value of Description.

func (*AdPost) GetImagesID

func (s *AdPost) GetImagesID() int

GetImagesID returns the value of ImagesID.

func (*AdPost) GetPost

func (s *AdPost) GetPost() string

GetPost returns the value of Post.

func (*AdPost) GetPriority

func (s *AdPost) GetPriority() AdPostPriority

GetPriority returns the value of Priority.

func (*AdPost) GetTgID

func (s *AdPost) GetTgID() int

GetTgID returns the value of TgID.

func (*AdPost) GetTitle

func (s *AdPost) GetTitle() string

GetTitle returns the value of Title.

func (*AdPost) MarshalJSON

func (s *AdPost) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AdPost) SetColorsID

func (s *AdPost) SetColorsID(val int)

SetColorsID sets the value of ColorsID.

func (*AdPost) SetDescription

func (s *AdPost) SetDescription(val string)

SetDescription sets the value of Description.

func (*AdPost) SetImagesID

func (s *AdPost) SetImagesID(val int)

SetImagesID sets the value of ImagesID.

func (*AdPost) SetPost

func (s *AdPost) SetPost(val string)

SetPost sets the value of Post.

func (*AdPost) SetPriority

func (s *AdPost) SetPriority(val AdPostPriority)

SetPriority sets the value of Priority.

func (*AdPost) SetTgID

func (s *AdPost) SetTgID(val int)

SetTgID sets the value of TgID.

func (*AdPost) SetTitle

func (s *AdPost) SetTitle(val string)

SetTitle sets the value of Title.

func (*AdPost) UnmarshalJSON

func (s *AdPost) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AdPost) Validate

func (s *AdPost) Validate() error

type AdPostPriority

type AdPostPriority int

Приоритет рекламы.

const (
	AdPostPriority1 AdPostPriority = 1
	AdPostPriority2 AdPostPriority = 2
	AdPostPriority3 AdPostPriority = 3
)

func (AdPostPriority) AllValues

func (AdPostPriority) AllValues() []AdPostPriority

AllValues returns all AdPostPriority values.

func (*AdPostPriority) Decode

func (s *AdPostPriority) Decode(d *jx.Decoder) error

Decode decodes AdPostPriority from json.

func (AdPostPriority) Encode

func (s AdPostPriority) Encode(e *jx.Encoder)

Encode encodes AdPostPriority as json.

func (AdPostPriority) MarshalJSON

func (s AdPostPriority) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AdPostPriority) UnmarshalJSON

func (s *AdPostPriority) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (AdPostPriority) Validate

func (s AdPostPriority) Validate() error

type AdPriority

type AdPriority int

Приоритет рекламы.

const (
	AdPriority1 AdPriority = 1
	AdPriority2 AdPriority = 2
	AdPriority3 AdPriority = 3
)

func (AdPriority) AllValues

func (AdPriority) AllValues() []AdPriority

AllValues returns all AdPriority values.

func (*AdPriority) Decode

func (s *AdPriority) Decode(d *jx.Decoder) error

Decode decodes AdPriority from json.

func (AdPriority) Encode

func (s AdPriority) Encode(e *jx.Encoder)

Encode encodes AdPriority as json.

func (AdPriority) MarshalJSON

func (s AdPriority) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AdPriority) UnmarshalJSON

func (s *AdPriority) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (AdPriority) Validate

func (s AdPriority) Validate() error

type AdPut

type AdPut struct {
	// Должность, связанная с рекламой.
	Post OptString `json:"post"`
	// Идентификатор изображения.
	ImagesID OptInt `json:"images_id"`
	// Идентификатор цвета.
	ColorsID OptInt `json:"colors_id"`
	// Идентификатор тега.
	TgID OptInt `json:"tg_id"`
	// Заголовок рекламы.
	Title OptString `json:"title"`
	// Описание рекламы.
	Description OptString `json:"description"`
	// Приоритет рекламы.
	Priority OptAdPutPriority `json:"priority"`
}

Ref: #

func (*AdPut) Decode

func (s *AdPut) Decode(d *jx.Decoder) error

Decode decodes AdPut from json.

func (*AdPut) Encode

func (s *AdPut) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AdPut) GetColorsID

func (s *AdPut) GetColorsID() OptInt

GetColorsID returns the value of ColorsID.

func (*AdPut) GetDescription

func (s *AdPut) GetDescription() OptString

GetDescription returns the value of Description.

func (*AdPut) GetImagesID

func (s *AdPut) GetImagesID() OptInt

GetImagesID returns the value of ImagesID.

func (*AdPut) GetPost

func (s *AdPut) GetPost() OptString

GetPost returns the value of Post.

func (*AdPut) GetPriority

func (s *AdPut) GetPriority() OptAdPutPriority

GetPriority returns the value of Priority.

func (*AdPut) GetTgID

func (s *AdPut) GetTgID() OptInt

GetTgID returns the value of TgID.

func (*AdPut) GetTitle

func (s *AdPut) GetTitle() OptString

GetTitle returns the value of Title.

func (*AdPut) MarshalJSON

func (s *AdPut) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AdPut) SetColorsID

func (s *AdPut) SetColorsID(val OptInt)

SetColorsID sets the value of ColorsID.

func (*AdPut) SetDescription

func (s *AdPut) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*AdPut) SetImagesID

func (s *AdPut) SetImagesID(val OptInt)

SetImagesID sets the value of ImagesID.

func (*AdPut) SetPost

func (s *AdPut) SetPost(val OptString)

SetPost sets the value of Post.

func (*AdPut) SetPriority

func (s *AdPut) SetPriority(val OptAdPutPriority)

SetPriority sets the value of Priority.

func (*AdPut) SetTgID

func (s *AdPut) SetTgID(val OptInt)

SetTgID sets the value of TgID.

func (*AdPut) SetTitle

func (s *AdPut) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*AdPut) UnmarshalJSON

func (s *AdPut) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AdPut) Validate

func (s *AdPut) Validate() error

type AdPutPriority

type AdPutPriority int

Приоритет рекламы.

const (
	AdPutPriority1 AdPutPriority = 1
	AdPutPriority2 AdPutPriority = 2
	AdPutPriority3 AdPutPriority = 3
)

func (AdPutPriority) AllValues

func (AdPutPriority) AllValues() []AdPutPriority

AllValues returns all AdPutPriority values.

func (*AdPutPriority) Decode

func (s *AdPutPriority) Decode(d *jx.Decoder) error

Decode decodes AdPutPriority from json.

func (AdPutPriority) Encode

func (s AdPutPriority) Encode(e *jx.Encoder)

Encode encodes AdPutPriority as json.

func (AdPutPriority) MarshalJSON

func (s AdPutPriority) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AdPutPriority) UnmarshalJSON

func (s *AdPutPriority) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (AdPutPriority) Validate

func (s AdPutPriority) Validate() error

type AdminBearerAuth

type AdminBearerAuth struct {
	Token string
}

func (*AdminBearerAuth) GetToken

func (s *AdminBearerAuth) GetToken() string

GetToken returns the value of Token.

func (*AdminBearerAuth) SetToken

func (s *AdminBearerAuth) SetToken(val string)

SetToken sets the value of Token.

type Ads

type Ads []Ad

func (*Ads) Decode

func (s *Ads) Decode(d *jx.Decoder) error

Decode decodes Ads from json.

func (Ads) Encode

func (s Ads) Encode(e *jx.Encoder)

Encode encodes Ads as json.

func (Ads) MarshalJSON

func (s Ads) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Ads) UnmarshalJSON

func (s *Ads) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Ads) Validate

func (s Ads) Validate() error

type AdsResp

type AdsResp struct {
	Data []Ad `json:"data"`
	// Текущая страница.
	Page int `json:"page"`
	// Количество страниц.
	Pages int `json:"pages"`
	// Количество записей на странице.
	PerPage int `json:"per_page"`
}

Ref: #

func (*AdsResp) Decode

func (s *AdsResp) Decode(d *jx.Decoder) error

Decode decodes AdsResp from json.

func (*AdsResp) Encode

func (s *AdsResp) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AdsResp) GetData

func (s *AdsResp) GetData() []Ad

GetData returns the value of Data.

func (*AdsResp) GetPage

func (s *AdsResp) GetPage() int

GetPage returns the value of Page.

func (*AdsResp) GetPages

func (s *AdsResp) GetPages() int

GetPages returns the value of Pages.

func (*AdsResp) GetPerPage

func (s *AdsResp) GetPerPage() int

GetPerPage returns the value of PerPage.

func (*AdsResp) MarshalJSON

func (s *AdsResp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AdsResp) SetData

func (s *AdsResp) SetData(val []Ad)

SetData sets the value of Data.

func (*AdsResp) SetPage

func (s *AdsResp) SetPage(val int)

SetPage sets the value of Page.

func (*AdsResp) SetPages

func (s *AdsResp) SetPages(val int)

SetPages sets the value of Pages.

func (*AdsResp) SetPerPage

func (s *AdsResp) SetPerPage(val int)

SetPerPage sets the value of PerPage.

func (*AdsResp) UnmarshalJSON

func (s *AdsResp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AdsResp) Validate

func (s *AdsResp) Validate() error

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) V1AdminAdsGet

func (c *Client) V1AdminAdsGet(ctx context.Context, params V1AdminAdsGetParams) (V1AdminAdsGetRes, error)

V1AdminAdsGet invokes GET /v1/admin/ads operation.

Получает список всех реклам с пагинацией.

GET /v1/admin/ads

func (*Client) V1AdminAdsIDDelete

func (c *Client) V1AdminAdsIDDelete(ctx context.Context, params V1AdminAdsIDDeleteParams) (V1AdminAdsIDDeleteRes, error)

V1AdminAdsIDDelete invokes DELETE /v1/admin/ads/{id} operation.

Удаляет рекламу по id.

DELETE /v1/admin/ads/{id}

func (*Client) V1AdminAdsIDPut

func (c *Client) V1AdminAdsIDPut(ctx context.Context, request *AdPut, params V1AdminAdsIDPutParams) (V1AdminAdsIDPutRes, error)

V1AdminAdsIDPut invokes PUT /v1/admin/ads/{id} operation.

Обновляет рекламу по id.

PUT /v1/admin/ads/{id}

func (*Client) V1AdminAdsPost

func (c *Client) V1AdminAdsPost(ctx context.Context, request *AdPost) (V1AdminAdsPostRes, error)

V1AdminAdsPost invokes POST /v1/admin/ads operation.

Создает новую рекламу.

POST /v1/admin/ads

func (*Client) V1AdminColorsGet

func (c *Client) V1AdminColorsGet(ctx context.Context, params V1AdminColorsGetParams) (V1AdminColorsGetRes, error)

V1AdminColorsGet invokes GET /v1/admin/colors operation.

Возвращает список цветов с возможностью пагинации.

GET /v1/admin/colors

func (*Client) V1AdminColorsIDDelete

func (c *Client) V1AdminColorsIDDelete(ctx context.Context, params V1AdminColorsIDDeleteParams) (V1AdminColorsIDDeleteRes, error)

V1AdminColorsIDDelete invokes DELETE /v1/admin/colors/{id} operation.

Удаляет цвет с указанным id.

DELETE /v1/admin/colors/{id}

func (*Client) V1AdminColorsIDPut

func (c *Client) V1AdminColorsIDPut(ctx context.Context, request *ColorPut, params V1AdminColorsIDPutParams) (V1AdminColorsIDPutRes, error)

V1AdminColorsIDPut invokes PUT /v1/admin/colors/{id} operation.

Обновляет цвет с указанным id.

PUT /v1/admin/colors/{id}

func (*Client) V1AdminColorsPost

func (c *Client) V1AdminColorsPost(ctx context.Context, request *ColorPost) (V1AdminColorsPostRes, error)

V1AdminColorsPost invokes POST /v1/admin/colors operation.

Создает новый цвет.

POST /v1/admin/colors

func (*Client) V1AdminImagesGet

func (c *Client) V1AdminImagesGet(ctx context.Context, params V1AdminImagesGetParams) (V1AdminImagesGetRes, error)

V1AdminImagesGet invokes GET /v1/admin/images operation.

Возвращает список изображений с поддержкой пагинации.

GET /v1/admin/images

func (*Client) V1AdminImagesIDDelete

func (c *Client) V1AdminImagesIDDelete(ctx context.Context, params V1AdminImagesIDDeleteParams) (V1AdminImagesIDDeleteRes, error)

V1AdminImagesIDDelete invokes DELETE /v1/admin/images/{id} operation.

Удаляет изображение с указанным ID.

DELETE /v1/admin/images/{id}

func (*Client) V1AdminImagesIDPut

func (c *Client) V1AdminImagesIDPut(ctx context.Context, request *ImagePut, params V1AdminImagesIDPutParams) (V1AdminImagesIDPutRes, error)

V1AdminImagesIDPut invokes PUT /v1/admin/images/{id} operation.

Обновляет данные изображения с указанным ID.

PUT /v1/admin/images/{id}

func (*Client) V1AdminImagesPost

func (c *Client) V1AdminImagesPost(ctx context.Context, request *ImagePost) (V1AdminImagesPostRes, error)

V1AdminImagesPost invokes POST /v1/admin/images operation.

Создает новый элемент изображения.

POST /v1/admin/images

func (*Client) V1AdminTgsGet

func (c *Client) V1AdminTgsGet(ctx context.Context, params V1AdminTgsGetParams) (V1AdminTgsGetRes, error)

V1AdminTgsGet invokes GET /v1/admin/tgs operation.

Возвращает список тг с возможностью пагинации.

GET /v1/admin/tgs

func (*Client) V1AdminTgsIDDelete

func (c *Client) V1AdminTgsIDDelete(ctx context.Context, params V1AdminTgsIDDeleteParams) (V1AdminTgsIDDeleteRes, error)

V1AdminTgsIDDelete invokes DELETE /v1/admin/tgs/{id} operation.

Удаляет тг с указанным id.

DELETE /v1/admin/tgs/{id}

func (*Client) V1AdminTgsIDPut

func (c *Client) V1AdminTgsIDPut(ctx context.Context, request *TgPut, params V1AdminTgsIDPutParams) (V1AdminTgsIDPutRes, error)

V1AdminTgsIDPut invokes PUT /v1/admin/tgs/{id} operation.

Обновляет тг с указанным id.

PUT /v1/admin/tgs/{id}

func (*Client) V1AdminTgsPost

func (c *Client) V1AdminTgsPost(ctx context.Context, request *TgPost) (V1AdminTgsPostRes, error)

V1AdminTgsPost invokes POST /v1/admin/tgs operation.

Создает новый тг.

POST /v1/admin/tgs

func (*Client) V1AdsGet

func (c *Client) V1AdsGet(ctx context.Context, params V1AdsGetParams) (V1AdsGetRes, error)

V1AdsGet invokes GET /v1/ads operation.

Получает список всех реклам с фильтрацией по приоритету и должности.

GET /v1/ads

func (*Client) V1LogosGet

func (c *Client) V1LogosGet(ctx context.Context) (V1LogosGetRes, error)

V1LogosGet invokes GET /v1/logos operation.

Возвращает список всех лого.

GET /v1/logos

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type Color

type Color struct {
	// Идентификатор цвета.
	ID int `json:"id"`
	// Название цвета.
	Title string `json:"title"`
	// HEX код цвета.
	Hex string `json:"hex"`
}

Ref: #

func (*Color) Decode

func (s *Color) Decode(d *jx.Decoder) error

Decode decodes Color from json.

func (*Color) Encode

func (s *Color) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Color) GetHex

func (s *Color) GetHex() string

GetHex returns the value of Hex.

func (*Color) GetID

func (s *Color) GetID() int

GetID returns the value of ID.

func (*Color) GetTitle

func (s *Color) GetTitle() string

GetTitle returns the value of Title.

func (*Color) MarshalJSON

func (s *Color) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Color) SetHex

func (s *Color) SetHex(val string)

SetHex sets the value of Hex.

func (*Color) SetID

func (s *Color) SetID(val int)

SetID sets the value of ID.

func (*Color) SetTitle

func (s *Color) SetTitle(val string)

SetTitle sets the value of Title.

func (*Color) UnmarshalJSON

func (s *Color) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ColorPost

type ColorPost struct {
	// Название цвета.
	Title string `json:"title"`
	// HEX код цвета.
	Hex string `json:"hex"`
}

Ref: #

func (*ColorPost) Decode

func (s *ColorPost) Decode(d *jx.Decoder) error

Decode decodes ColorPost from json.

func (*ColorPost) Encode

func (s *ColorPost) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ColorPost) GetHex

func (s *ColorPost) GetHex() string

GetHex returns the value of Hex.

func (*ColorPost) GetTitle

func (s *ColorPost) GetTitle() string

GetTitle returns the value of Title.

func (*ColorPost) MarshalJSON

func (s *ColorPost) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ColorPost) SetHex

func (s *ColorPost) SetHex(val string)

SetHex sets the value of Hex.

func (*ColorPost) SetTitle

func (s *ColorPost) SetTitle(val string)

SetTitle sets the value of Title.

func (*ColorPost) UnmarshalJSON

func (s *ColorPost) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ColorPost) Validate

func (s *ColorPost) Validate() error

type ColorPut

type ColorPut struct {
	// Название цвета.
	Title OptString `json:"title"`
	// HEX код цвета.
	Hex OptString `json:"hex"`
}

Ref: #

func (*ColorPut) Decode

func (s *ColorPut) Decode(d *jx.Decoder) error

Decode decodes ColorPut from json.

func (*ColorPut) Encode

func (s *ColorPut) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ColorPut) GetHex

func (s *ColorPut) GetHex() OptString

GetHex returns the value of Hex.

func (*ColorPut) GetTitle

func (s *ColorPut) GetTitle() OptString

GetTitle returns the value of Title.

func (*ColorPut) MarshalJSON

func (s *ColorPut) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ColorPut) SetHex

func (s *ColorPut) SetHex(val OptString)

SetHex sets the value of Hex.

func (*ColorPut) SetTitle

func (s *ColorPut) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*ColorPut) UnmarshalJSON

func (s *ColorPut) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ColorPut) Validate

func (s *ColorPut) Validate() error

type ColorsResp

type ColorsResp struct {
	Data []Color `json:"data"`
	// Текущая страница.
	Page int `json:"page"`
	// Количество страниц.
	Pages int `json:"pages"`
	// Количество записей на странице.
	PerPage int `json:"per_page"`
}

Ref: #

func (*ColorsResp) Decode

func (s *ColorsResp) Decode(d *jx.Decoder) error

Decode decodes ColorsResp from json.

func (*ColorsResp) Encode

func (s *ColorsResp) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ColorsResp) GetData

func (s *ColorsResp) GetData() []Color

GetData returns the value of Data.

func (*ColorsResp) GetPage

func (s *ColorsResp) GetPage() int

GetPage returns the value of Page.

func (*ColorsResp) GetPages

func (s *ColorsResp) GetPages() int

GetPages returns the value of Pages.

func (*ColorsResp) GetPerPage

func (s *ColorsResp) GetPerPage() int

GetPerPage returns the value of PerPage.

func (*ColorsResp) MarshalJSON

func (s *ColorsResp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ColorsResp) SetData

func (s *ColorsResp) SetData(val []Color)

SetData sets the value of Data.

func (*ColorsResp) SetPage

func (s *ColorsResp) SetPage(val int)

SetPage sets the value of Page.

func (*ColorsResp) SetPages

func (s *ColorsResp) SetPages(val int)

SetPages sets the value of Pages.

func (*ColorsResp) SetPerPage

func (s *ColorsResp) SetPerPage(val int)

SetPerPage sets the value of PerPage.

func (*ColorsResp) UnmarshalJSON

func (s *ColorsResp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Error

type Error struct {
	// Error message.
	Message string       `json:"message"`
	Details ErrorDetails `json:"details"`
}

Ref: #

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetDetails

func (s *Error) GetDetails() ErrorDetails

GetDetails returns the value of Details.

func (*Error) GetMessage

func (s *Error) GetMessage() string

GetMessage returns the value of Message.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetDetails

func (s *Error) SetDetails(val ErrorDetails)

SetDetails sets the value of Details.

func (*Error) SetMessage

func (s *Error) SetMessage(val string)

SetMessage sets the value of Message.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorDetails

type ErrorDetails map[string]jx.Raw

func (*ErrorDetails) Decode

func (s *ErrorDetails) Decode(d *jx.Decoder) error

Decode decodes ErrorDetails from json.

func (ErrorDetails) Encode

func (s ErrorDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ErrorDetails) MarshalJSON

func (s ErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorDetails) UnmarshalJSON

func (s *ErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ErrorStatusCode

type ErrorStatusCode struct {
	StatusCode int
	Response   Error
}

ErrorStatusCode wraps Error with StatusCode.

func (*ErrorStatusCode) Error

func (s *ErrorStatusCode) Error() string

func (*ErrorStatusCode) GetResponse

func (s *ErrorStatusCode) GetResponse() Error

GetResponse returns the value of Response.

func (*ErrorStatusCode) GetStatusCode

func (s *ErrorStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorStatusCode) SetResponse

func (s *ErrorStatusCode) SetResponse(val Error)

SetResponse sets the value of Response.

func (*ErrorStatusCode) SetStatusCode

func (s *ErrorStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type Handler

type Handler interface {
	// V1AdminAdsGet implements GET /v1/admin/ads operation.
	//
	// Получает список всех реклам с пагинацией.
	//
	// GET /v1/admin/ads
	V1AdminAdsGet(ctx context.Context, params V1AdminAdsGetParams) (V1AdminAdsGetRes, error)
	// V1AdminAdsIDDelete implements DELETE /v1/admin/ads/{id} operation.
	//
	// Удаляет рекламу по id.
	//
	// DELETE /v1/admin/ads/{id}
	V1AdminAdsIDDelete(ctx context.Context, params V1AdminAdsIDDeleteParams) (V1AdminAdsIDDeleteRes, error)
	// V1AdminAdsIDPut implements PUT /v1/admin/ads/{id} operation.
	//
	// Обновляет рекламу по id.
	//
	// PUT /v1/admin/ads/{id}
	V1AdminAdsIDPut(ctx context.Context, req *AdPut, params V1AdminAdsIDPutParams) (V1AdminAdsIDPutRes, error)
	// V1AdminAdsPost implements POST /v1/admin/ads operation.
	//
	// Создает новую рекламу.
	//
	// POST /v1/admin/ads
	V1AdminAdsPost(ctx context.Context, req *AdPost) (V1AdminAdsPostRes, error)
	// V1AdminColorsGet implements GET /v1/admin/colors operation.
	//
	// Возвращает список цветов с возможностью пагинации.
	//
	// GET /v1/admin/colors
	V1AdminColorsGet(ctx context.Context, params V1AdminColorsGetParams) (V1AdminColorsGetRes, error)
	// V1AdminColorsIDDelete implements DELETE /v1/admin/colors/{id} operation.
	//
	// Удаляет цвет с указанным id.
	//
	// DELETE /v1/admin/colors/{id}
	V1AdminColorsIDDelete(ctx context.Context, params V1AdminColorsIDDeleteParams) (V1AdminColorsIDDeleteRes, error)
	// V1AdminColorsIDPut implements PUT /v1/admin/colors/{id} operation.
	//
	// Обновляет цвет с указанным id.
	//
	// PUT /v1/admin/colors/{id}
	V1AdminColorsIDPut(ctx context.Context, req *ColorPut, params V1AdminColorsIDPutParams) (V1AdminColorsIDPutRes, error)
	// V1AdminColorsPost implements POST /v1/admin/colors operation.
	//
	// Создает новый цвет.
	//
	// POST /v1/admin/colors
	V1AdminColorsPost(ctx context.Context, req *ColorPost) (V1AdminColorsPostRes, error)
	// V1AdminImagesGet implements GET /v1/admin/images operation.
	//
	// Возвращает список изображений с поддержкой пагинации.
	//
	// GET /v1/admin/images
	V1AdminImagesGet(ctx context.Context, params V1AdminImagesGetParams) (V1AdminImagesGetRes, error)
	// V1AdminImagesIDDelete implements DELETE /v1/admin/images/{id} operation.
	//
	// Удаляет изображение с указанным ID.
	//
	// DELETE /v1/admin/images/{id}
	V1AdminImagesIDDelete(ctx context.Context, params V1AdminImagesIDDeleteParams) (V1AdminImagesIDDeleteRes, error)
	// V1AdminImagesIDPut implements PUT /v1/admin/images/{id} operation.
	//
	// Обновляет данные изображения с указанным ID.
	//
	// PUT /v1/admin/images/{id}
	V1AdminImagesIDPut(ctx context.Context, req *ImagePut, params V1AdminImagesIDPutParams) (V1AdminImagesIDPutRes, error)
	// V1AdminImagesPost implements POST /v1/admin/images operation.
	//
	// Создает новый элемент изображения.
	//
	// POST /v1/admin/images
	V1AdminImagesPost(ctx context.Context, req *ImagePost) (V1AdminImagesPostRes, error)
	// V1AdminTgsGet implements GET /v1/admin/tgs operation.
	//
	// Возвращает список  тг с возможностью пагинации.
	//
	// GET /v1/admin/tgs
	V1AdminTgsGet(ctx context.Context, params V1AdminTgsGetParams) (V1AdminTgsGetRes, error)
	// V1AdminTgsIDDelete implements DELETE /v1/admin/tgs/{id} operation.
	//
	// Удаляет тг с указанным id.
	//
	// DELETE /v1/admin/tgs/{id}
	V1AdminTgsIDDelete(ctx context.Context, params V1AdminTgsIDDeleteParams) (V1AdminTgsIDDeleteRes, error)
	// V1AdminTgsIDPut implements PUT /v1/admin/tgs/{id} operation.
	//
	// Обновляет тг с указанным id.
	//
	// PUT /v1/admin/tgs/{id}
	V1AdminTgsIDPut(ctx context.Context, req *TgPut, params V1AdminTgsIDPutParams) (V1AdminTgsIDPutRes, error)
	// V1AdminTgsPost implements POST /v1/admin/tgs operation.
	//
	// Создает новый тг.
	//
	// POST /v1/admin/tgs
	V1AdminTgsPost(ctx context.Context, req *TgPost) (V1AdminTgsPostRes, error)
	// V1AdsGet implements GET /v1/ads operation.
	//
	// Получает список всех реклам с фильтрацией по
	// приоритету и должности.
	//
	// GET /v1/ads
	V1AdsGet(ctx context.Context, params V1AdsGetParams) (V1AdsGetRes, error)
	// V1LogosGet implements GET /v1/logos operation.
	//
	// Возвращает список всех лого.
	//
	// GET /v1/logos
	V1LogosGet(ctx context.Context) (V1LogosGetRes, error)
	// NewError creates *ErrorStatusCode from error returned by handler.
	//
	// Used for common default response.
	NewError(ctx context.Context, err error) *ErrorStatusCode
}

Handler handles operations described by OpenAPI v3 specification.

type Image

type Image struct {
	// Идентификатор изображения.
	ID int `json:"id"`
	// Название изображения.
	Title string `json:"title"`
	// URL изображения.
	URL url.URL `json:"url"`
	// Тип изображения (например, 'adv' или 'logo').
	Type ImageType `json:"type"`
}

Ref: #

func (*Image) Decode

func (s *Image) Decode(d *jx.Decoder) error

Decode decodes Image from json.

func (*Image) Encode

func (s *Image) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Image) GetID

func (s *Image) GetID() int

GetID returns the value of ID.

func (*Image) GetTitle

func (s *Image) GetTitle() string

GetTitle returns the value of Title.

func (*Image) GetType

func (s *Image) GetType() ImageType

GetType returns the value of Type.

func (*Image) GetURL

func (s *Image) GetURL() url.URL

GetURL returns the value of URL.

func (*Image) MarshalJSON

func (s *Image) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Image) SetID

func (s *Image) SetID(val int)

SetID sets the value of ID.

func (*Image) SetTitle

func (s *Image) SetTitle(val string)

SetTitle sets the value of Title.

func (*Image) SetType

func (s *Image) SetType(val ImageType)

SetType sets the value of Type.

func (*Image) SetURL

func (s *Image) SetURL(val url.URL)

SetURL sets the value of URL.

func (*Image) UnmarshalJSON

func (s *Image) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Image) Validate

func (s *Image) Validate() error

type ImagePost

type ImagePost struct {
	// Название изображения.
	Title string `json:"title"`
	// URL изображения.
	URL url.URL `json:"url"`
	// Тип изображения (например, 'adv' или 'logo').
	Type ImagePostType `json:"type"`
}

Ref: #

func (*ImagePost) Decode

func (s *ImagePost) Decode(d *jx.Decoder) error

Decode decodes ImagePost from json.

func (*ImagePost) Encode

func (s *ImagePost) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ImagePost) GetTitle

func (s *ImagePost) GetTitle() string

GetTitle returns the value of Title.

func (*ImagePost) GetType

func (s *ImagePost) GetType() ImagePostType

GetType returns the value of Type.

func (*ImagePost) GetURL

func (s *ImagePost) GetURL() url.URL

GetURL returns the value of URL.

func (*ImagePost) MarshalJSON

func (s *ImagePost) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ImagePost) SetTitle

func (s *ImagePost) SetTitle(val string)

SetTitle sets the value of Title.

func (*ImagePost) SetType

func (s *ImagePost) SetType(val ImagePostType)

SetType sets the value of Type.

func (*ImagePost) SetURL

func (s *ImagePost) SetURL(val url.URL)

SetURL sets the value of URL.

func (*ImagePost) UnmarshalJSON

func (s *ImagePost) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ImagePost) Validate

func (s *ImagePost) Validate() error

type ImagePostType

type ImagePostType string

Тип изображения (например, 'adv' или 'logo').

const (
	ImagePostTypeAdv  ImagePostType = "adv"
)

func (ImagePostType) AllValues

func (ImagePostType) AllValues() []ImagePostType

AllValues returns all ImagePostType values.

func (*ImagePostType) Decode

func (s *ImagePostType) Decode(d *jx.Decoder) error

Decode decodes ImagePostType from json.

func (ImagePostType) Encode

func (s ImagePostType) Encode(e *jx.Encoder)

Encode encodes ImagePostType as json.

func (ImagePostType) MarshalJSON

func (s ImagePostType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ImagePostType) MarshalText

func (s ImagePostType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ImagePostType) UnmarshalJSON

func (s *ImagePostType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ImagePostType) UnmarshalText

func (s *ImagePostType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ImagePostType) Validate

func (s ImagePostType) Validate() error

type ImagePut

type ImagePut struct {
	// Название изображения.
	Title OptString `json:"title"`
	// URL изображения.
	URL OptURI `json:"url"`
	// Тип изображения (например, 'adv' или 'logo').
	Type OptImagePutType `json:"type"`
}

Ref: #

func (*ImagePut) Decode

func (s *ImagePut) Decode(d *jx.Decoder) error

Decode decodes ImagePut from json.

func (*ImagePut) Encode

func (s *ImagePut) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ImagePut) GetTitle

func (s *ImagePut) GetTitle() OptString

GetTitle returns the value of Title.

func (*ImagePut) GetType

func (s *ImagePut) GetType() OptImagePutType

GetType returns the value of Type.

func (*ImagePut) GetURL

func (s *ImagePut) GetURL() OptURI

GetURL returns the value of URL.

func (*ImagePut) MarshalJSON

func (s *ImagePut) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ImagePut) SetTitle

func (s *ImagePut) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*ImagePut) SetType

func (s *ImagePut) SetType(val OptImagePutType)

SetType sets the value of Type.

func (*ImagePut) SetURL

func (s *ImagePut) SetURL(val OptURI)

SetURL sets the value of URL.

func (*ImagePut) UnmarshalJSON

func (s *ImagePut) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ImagePut) Validate

func (s *ImagePut) Validate() error

type ImagePutType

type ImagePutType string

Тип изображения (например, 'adv' или 'logo').

const (
	ImagePutTypeAdv  ImagePutType = "adv"
)

func (ImagePutType) AllValues

func (ImagePutType) AllValues() []ImagePutType

AllValues returns all ImagePutType values.

func (*ImagePutType) Decode

func (s *ImagePutType) Decode(d *jx.Decoder) error

Decode decodes ImagePutType from json.

func (ImagePutType) Encode

func (s ImagePutType) Encode(e *jx.Encoder)

Encode encodes ImagePutType as json.

func (ImagePutType) MarshalJSON

func (s ImagePutType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ImagePutType) MarshalText

func (s ImagePutType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ImagePutType) UnmarshalJSON

func (s *ImagePutType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ImagePutType) UnmarshalText

func (s *ImagePutType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ImagePutType) Validate

func (s ImagePutType) Validate() error

type ImageType

type ImageType string

Тип изображения (например, 'adv' или 'logo').

const (
	ImageTypeAdv  ImageType = "adv"
)

func (ImageType) AllValues

func (ImageType) AllValues() []ImageType

AllValues returns all ImageType values.

func (*ImageType) Decode

func (s *ImageType) Decode(d *jx.Decoder) error

Decode decodes ImageType from json.

func (ImageType) Encode

func (s ImageType) Encode(e *jx.Encoder)

Encode encodes ImageType as json.

func (ImageType) MarshalJSON

func (s ImageType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ImageType) MarshalText

func (s ImageType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ImageType) UnmarshalJSON

func (s *ImageType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ImageType) UnmarshalText

func (s *ImageType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ImageType) Validate

func (s ImageType) Validate() error

type ImagesResp

type ImagesResp struct {
	Data []Image `json:"data"`
	// Текущая страница.
	Page int `json:"page"`
	// Количество страниц.
	Pages int `json:"pages"`
	// Количество записей на странице.
	PerPage int `json:"per_page"`
}

Ref: #

func (*ImagesResp) Decode

func (s *ImagesResp) Decode(d *jx.Decoder) error

Decode decodes ImagesResp from json.

func (*ImagesResp) Encode

func (s *ImagesResp) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ImagesResp) GetData

func (s *ImagesResp) GetData() []Image

GetData returns the value of Data.

func (*ImagesResp) GetPage

func (s *ImagesResp) GetPage() int

GetPage returns the value of Page.

func (*ImagesResp) GetPages

func (s *ImagesResp) GetPages() int

GetPages returns the value of Pages.

func (*ImagesResp) GetPerPage

func (s *ImagesResp) GetPerPage() int

GetPerPage returns the value of PerPage.

func (*ImagesResp) MarshalJSON

func (s *ImagesResp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ImagesResp) SetData

func (s *ImagesResp) SetData(val []Image)

SetData sets the value of Data.

func (*ImagesResp) SetPage

func (s *ImagesResp) SetPage(val int)

SetPage sets the value of Page.

func (*ImagesResp) SetPages

func (s *ImagesResp) SetPages(val int)

SetPages sets the value of Pages.

func (*ImagesResp) SetPerPage

func (s *ImagesResp) SetPerPage(val int)

SetPerPage sets the value of PerPage.

func (*ImagesResp) UnmarshalJSON

func (s *ImagesResp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ImagesResp) Validate

func (s *ImagesResp) Validate() error

type Invoker

type Invoker interface {
	// V1AdminAdsGet invokes GET /v1/admin/ads operation.
	//
	// Получает список всех реклам с пагинацией.
	//
	// GET /v1/admin/ads
	V1AdminAdsGet(ctx context.Context, params V1AdminAdsGetParams) (V1AdminAdsGetRes, error)
	// V1AdminAdsIDDelete invokes DELETE /v1/admin/ads/{id} operation.
	//
	// Удаляет рекламу по id.
	//
	// DELETE /v1/admin/ads/{id}
	V1AdminAdsIDDelete(ctx context.Context, params V1AdminAdsIDDeleteParams) (V1AdminAdsIDDeleteRes, error)
	// V1AdminAdsIDPut invokes PUT /v1/admin/ads/{id} operation.
	//
	// Обновляет рекламу по id.
	//
	// PUT /v1/admin/ads/{id}
	V1AdminAdsIDPut(ctx context.Context, request *AdPut, params V1AdminAdsIDPutParams) (V1AdminAdsIDPutRes, error)
	// V1AdminAdsPost invokes POST /v1/admin/ads operation.
	//
	// Создает новую рекламу.
	//
	// POST /v1/admin/ads
	V1AdminAdsPost(ctx context.Context, request *AdPost) (V1AdminAdsPostRes, error)
	// V1AdminColorsGet invokes GET /v1/admin/colors operation.
	//
	// Возвращает список цветов с возможностью пагинации.
	//
	// GET /v1/admin/colors
	V1AdminColorsGet(ctx context.Context, params V1AdminColorsGetParams) (V1AdminColorsGetRes, error)
	// V1AdminColorsIDDelete invokes DELETE /v1/admin/colors/{id} operation.
	//
	// Удаляет цвет с указанным id.
	//
	// DELETE /v1/admin/colors/{id}
	V1AdminColorsIDDelete(ctx context.Context, params V1AdminColorsIDDeleteParams) (V1AdminColorsIDDeleteRes, error)
	// V1AdminColorsIDPut invokes PUT /v1/admin/colors/{id} operation.
	//
	// Обновляет цвет с указанным id.
	//
	// PUT /v1/admin/colors/{id}
	V1AdminColorsIDPut(ctx context.Context, request *ColorPut, params V1AdminColorsIDPutParams) (V1AdminColorsIDPutRes, error)
	// V1AdminColorsPost invokes POST /v1/admin/colors operation.
	//
	// Создает новый цвет.
	//
	// POST /v1/admin/colors
	V1AdminColorsPost(ctx context.Context, request *ColorPost) (V1AdminColorsPostRes, error)
	// V1AdminImagesGet invokes GET /v1/admin/images operation.
	//
	// Возвращает список изображений с поддержкой пагинации.
	//
	// GET /v1/admin/images
	V1AdminImagesGet(ctx context.Context, params V1AdminImagesGetParams) (V1AdminImagesGetRes, error)
	// V1AdminImagesIDDelete invokes DELETE /v1/admin/images/{id} operation.
	//
	// Удаляет изображение с указанным ID.
	//
	// DELETE /v1/admin/images/{id}
	V1AdminImagesIDDelete(ctx context.Context, params V1AdminImagesIDDeleteParams) (V1AdminImagesIDDeleteRes, error)
	// V1AdminImagesIDPut invokes PUT /v1/admin/images/{id} operation.
	//
	// Обновляет данные изображения с указанным ID.
	//
	// PUT /v1/admin/images/{id}
	V1AdminImagesIDPut(ctx context.Context, request *ImagePut, params V1AdminImagesIDPutParams) (V1AdminImagesIDPutRes, error)
	// V1AdminImagesPost invokes POST /v1/admin/images operation.
	//
	// Создает новый элемент изображения.
	//
	// POST /v1/admin/images
	V1AdminImagesPost(ctx context.Context, request *ImagePost) (V1AdminImagesPostRes, error)
	// V1AdminTgsGet invokes GET /v1/admin/tgs operation.
	//
	// Возвращает список  тг с возможностью пагинации.
	//
	// GET /v1/admin/tgs
	V1AdminTgsGet(ctx context.Context, params V1AdminTgsGetParams) (V1AdminTgsGetRes, error)
	// V1AdminTgsIDDelete invokes DELETE /v1/admin/tgs/{id} operation.
	//
	// Удаляет тг с указанным id.
	//
	// DELETE /v1/admin/tgs/{id}
	V1AdminTgsIDDelete(ctx context.Context, params V1AdminTgsIDDeleteParams) (V1AdminTgsIDDeleteRes, error)
	// V1AdminTgsIDPut invokes PUT /v1/admin/tgs/{id} operation.
	//
	// Обновляет тг с указанным id.
	//
	// PUT /v1/admin/tgs/{id}
	V1AdminTgsIDPut(ctx context.Context, request *TgPut, params V1AdminTgsIDPutParams) (V1AdminTgsIDPutRes, error)
	// V1AdminTgsPost invokes POST /v1/admin/tgs operation.
	//
	// Создает новый тг.
	//
	// POST /v1/admin/tgs
	V1AdminTgsPost(ctx context.Context, request *TgPost) (V1AdminTgsPostRes, error)
	// V1AdsGet invokes GET /v1/ads operation.
	//
	// Получает список всех реклам с фильтрацией по
	// приоритету и должности.
	//
	// GET /v1/ads
	V1AdsGet(ctx context.Context, params V1AdsGetParams) (V1AdsGetRes, error)
	// V1LogosGet invokes GET /v1/logos operation.
	//
	// Возвращает список всех лого.
	//
	// GET /v1/logos
	V1LogosGet(ctx context.Context) (V1LogosGetRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type Labeler

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

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type LogosResp

type LogosResp map[string]LogosRespItem

Ref: #

func (*LogosResp) Decode

func (s *LogosResp) Decode(d *jx.Decoder) error

Decode decodes LogosResp from json.

func (LogosResp) Encode

func (s LogosResp) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (LogosResp) MarshalJSON

func (s LogosResp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogosResp) UnmarshalJSON

func (s *LogosResp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (LogosResp) Validate

func (s LogosResp) Validate() error

type LogosRespItem

type LogosRespItem struct {
	// Название элемента.
	Title string `json:"title"`
	// URL элемента.
	URL url.URL `json:"url"`
	// Тип элемента (например, логотип).
	Type LogosRespItemType `json:"type"`
}

func (*LogosRespItem) Decode

func (s *LogosRespItem) Decode(d *jx.Decoder) error

Decode decodes LogosRespItem from json.

func (*LogosRespItem) Encode

func (s *LogosRespItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LogosRespItem) GetTitle

func (s *LogosRespItem) GetTitle() string

GetTitle returns the value of Title.

func (*LogosRespItem) GetType

func (s *LogosRespItem) GetType() LogosRespItemType

GetType returns the value of Type.

func (*LogosRespItem) GetURL

func (s *LogosRespItem) GetURL() url.URL

GetURL returns the value of URL.

func (*LogosRespItem) MarshalJSON

func (s *LogosRespItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogosRespItem) SetTitle

func (s *LogosRespItem) SetTitle(val string)

SetTitle sets the value of Title.

func (*LogosRespItem) SetType

func (s *LogosRespItem) SetType(val LogosRespItemType)

SetType sets the value of Type.

func (*LogosRespItem) SetURL

func (s *LogosRespItem) SetURL(val url.URL)

SetURL sets the value of URL.

func (*LogosRespItem) UnmarshalJSON

func (s *LogosRespItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LogosRespItem) Validate

func (s *LogosRespItem) Validate() error

type LogosRespItemType

type LogosRespItemType string

Тип элемента (например, логотип).

const (
)

func (LogosRespItemType) AllValues

func (LogosRespItemType) AllValues() []LogosRespItemType

AllValues returns all LogosRespItemType values.

func (*LogosRespItemType) Decode

func (s *LogosRespItemType) Decode(d *jx.Decoder) error

Decode decodes LogosRespItemType from json.

func (LogosRespItemType) Encode

func (s LogosRespItemType) Encode(e *jx.Encoder)

Encode encodes LogosRespItemType as json.

func (LogosRespItemType) MarshalJSON

func (s LogosRespItemType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LogosRespItemType) MarshalText

func (s LogosRespItemType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LogosRespItemType) UnmarshalJSON

func (s *LogosRespItemType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LogosRespItemType) UnmarshalText

func (s *LogosRespItemType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LogosRespItemType) Validate

func (s LogosRespItemType) Validate() error

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type OptAdPutPriority

type OptAdPutPriority struct {
	Value AdPutPriority
	Set   bool
}

OptAdPutPriority is optional AdPutPriority.

func NewOptAdPutPriority

func NewOptAdPutPriority(v AdPutPriority) OptAdPutPriority

NewOptAdPutPriority returns new OptAdPutPriority with value set to v.

func (*OptAdPutPriority) Decode

func (o *OptAdPutPriority) Decode(d *jx.Decoder) error

Decode decodes AdPutPriority from json.

func (OptAdPutPriority) Encode

func (o OptAdPutPriority) Encode(e *jx.Encoder)

Encode encodes AdPutPriority as json.

func (OptAdPutPriority) Get

func (o OptAdPutPriority) Get() (v AdPutPriority, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAdPutPriority) IsSet

func (o OptAdPutPriority) IsSet() bool

IsSet returns true if OptAdPutPriority was set.

func (OptAdPutPriority) MarshalJSON

func (s OptAdPutPriority) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAdPutPriority) Or

Or returns value if set, or given parameter if does not.

func (*OptAdPutPriority) Reset

func (o *OptAdPutPriority) Reset()

Reset unsets value.

func (*OptAdPutPriority) SetTo

func (o *OptAdPutPriority) SetTo(v AdPutPriority)

SetTo sets value to v.

func (*OptAdPutPriority) UnmarshalJSON

func (s *OptAdPutPriority) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptImagePutType

type OptImagePutType struct {
	Value ImagePutType
	Set   bool
}

OptImagePutType is optional ImagePutType.

func NewOptImagePutType

func NewOptImagePutType(v ImagePutType) OptImagePutType

NewOptImagePutType returns new OptImagePutType with value set to v.

func (*OptImagePutType) Decode

func (o *OptImagePutType) Decode(d *jx.Decoder) error

Decode decodes ImagePutType from json.

func (OptImagePutType) Encode

func (o OptImagePutType) Encode(e *jx.Encoder)

Encode encodes ImagePutType as json.

func (OptImagePutType) Get

func (o OptImagePutType) Get() (v ImagePutType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptImagePutType) IsSet

func (o OptImagePutType) IsSet() bool

IsSet returns true if OptImagePutType was set.

func (OptImagePutType) MarshalJSON

func (s OptImagePutType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptImagePutType) Or

Or returns value if set, or given parameter if does not.

func (*OptImagePutType) Reset

func (o *OptImagePutType) Reset()

Reset unsets value.

func (*OptImagePutType) SetTo

func (o *OptImagePutType) SetTo(v ImagePutType)

SetTo sets value to v.

func (*OptImagePutType) UnmarshalJSON

func (s *OptImagePutType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptURI

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode

func (o *OptURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptURI) Encode

func (o OptURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptURI) Get

func (o OptURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptURI) IsSet

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) MarshalJSON

func (s OptURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptURI) Or

func (o OptURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptURI) Reset

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetTo

func (o *OptURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptURI) UnmarshalJSON

func (s *OptURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type SecurityHandler

type SecurityHandler interface {
	// HandleAdminBearerAuth handles adminBearerAuth security.
	// JWT token for admin authentication.
	HandleAdminBearerAuth(ctx context.Context, operationName string, t AdminBearerAuth) (context.Context, error)
}

SecurityHandler is handler for security parameters.

type SecuritySource

type SecuritySource interface {
	// AdminBearerAuth provides adminBearerAuth security value.
	// JWT token for admin authentication.
	AdminBearerAuth(ctx context.Context, operationName string) (AdminBearerAuth, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type Server

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

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type Tg

type Tg struct {
	// Идентификатор тг.
	ID int `json:"id"`
	// Название тг.
	Title string `json:"title"`
	// URL тг.
	URL url.URL `json:"url"`
}

Ref: #

func (*Tg) Decode

func (s *Tg) Decode(d *jx.Decoder) error

Decode decodes Tg from json.

func (*Tg) Encode

func (s *Tg) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Tg) GetID

func (s *Tg) GetID() int

GetID returns the value of ID.

func (*Tg) GetTitle

func (s *Tg) GetTitle() string

GetTitle returns the value of Title.

func (*Tg) GetURL

func (s *Tg) GetURL() url.URL

GetURL returns the value of URL.

func (*Tg) MarshalJSON

func (s *Tg) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Tg) SetID

func (s *Tg) SetID(val int)

SetID sets the value of ID.

func (*Tg) SetTitle

func (s *Tg) SetTitle(val string)

SetTitle sets the value of Title.

func (*Tg) SetURL

func (s *Tg) SetURL(val url.URL)

SetURL sets the value of URL.

func (*Tg) UnmarshalJSON

func (s *Tg) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TgPost

type TgPost struct {
	// Название тг.
	Title string `json:"title"`
	// URL тг.
	URL url.URL `json:"url"`
}

Ref: #

func (*TgPost) Decode

func (s *TgPost) Decode(d *jx.Decoder) error

Decode decodes TgPost from json.

func (*TgPost) Encode

func (s *TgPost) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TgPost) GetTitle

func (s *TgPost) GetTitle() string

GetTitle returns the value of Title.

func (*TgPost) GetURL

func (s *TgPost) GetURL() url.URL

GetURL returns the value of URL.

func (*TgPost) MarshalJSON

func (s *TgPost) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TgPost) SetTitle

func (s *TgPost) SetTitle(val string)

SetTitle sets the value of Title.

func (*TgPost) SetURL

func (s *TgPost) SetURL(val url.URL)

SetURL sets the value of URL.

func (*TgPost) UnmarshalJSON

func (s *TgPost) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TgPost) Validate

func (s *TgPost) Validate() error

type TgPut

type TgPut struct {
	// Название ссылки.
	Title OptString `json:"title"`
	// URL ссылки.
	URL OptURI `json:"url"`
}

Ref: #

func (*TgPut) Decode

func (s *TgPut) Decode(d *jx.Decoder) error

Decode decodes TgPut from json.

func (*TgPut) Encode

func (s *TgPut) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TgPut) GetTitle

func (s *TgPut) GetTitle() OptString

GetTitle returns the value of Title.

func (*TgPut) GetURL

func (s *TgPut) GetURL() OptURI

GetURL returns the value of URL.

func (*TgPut) MarshalJSON

func (s *TgPut) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TgPut) SetTitle

func (s *TgPut) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*TgPut) SetURL

func (s *TgPut) SetURL(val OptURI)

SetURL sets the value of URL.

func (*TgPut) UnmarshalJSON

func (s *TgPut) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TgPut) Validate

func (s *TgPut) Validate() error

type TgsResp

type TgsResp struct {
	Data []Tg `json:"data"`
	// Текущая страница.
	Page int `json:"page"`
	// Количество страниц.
	Pages int `json:"pages"`
	// Количество записей на странице.
	PerPage int `json:"per_page"`
}

Ref: #

func (*TgsResp) Decode

func (s *TgsResp) Decode(d *jx.Decoder) error

Decode decodes TgsResp from json.

func (*TgsResp) Encode

func (s *TgsResp) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TgsResp) GetData

func (s *TgsResp) GetData() []Tg

GetData returns the value of Data.

func (*TgsResp) GetPage

func (s *TgsResp) GetPage() int

GetPage returns the value of Page.

func (*TgsResp) GetPages

func (s *TgsResp) GetPages() int

GetPages returns the value of Pages.

func (*TgsResp) GetPerPage

func (s *TgsResp) GetPerPage() int

GetPerPage returns the value of PerPage.

func (*TgsResp) MarshalJSON

func (s *TgsResp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TgsResp) SetData

func (s *TgsResp) SetData(val []Tg)

SetData sets the value of Data.

func (*TgsResp) SetPage

func (s *TgsResp) SetPage(val int)

SetPage sets the value of Page.

func (*TgsResp) SetPages

func (s *TgsResp) SetPages(val int)

SetPages sets the value of Pages.

func (*TgsResp) SetPerPage

func (s *TgsResp) SetPerPage(val int)

SetPerPage sets the value of PerPage.

func (*TgsResp) UnmarshalJSON

func (s *TgsResp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) NewError

func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)

NewError creates *ErrorStatusCode from error returned by handler.

Used for common default response.

func (UnimplementedHandler) V1AdminAdsGet

V1AdminAdsGet implements GET /v1/admin/ads operation.

Получает список всех реклам с пагинацией.

GET /v1/admin/ads

func (UnimplementedHandler) V1AdminAdsIDDelete

V1AdminAdsIDDelete implements DELETE /v1/admin/ads/{id} operation.

Удаляет рекламу по id.

DELETE /v1/admin/ads/{id}

func (UnimplementedHandler) V1AdminAdsIDPut

func (UnimplementedHandler) V1AdminAdsIDPut(ctx context.Context, req *AdPut, params V1AdminAdsIDPutParams) (r V1AdminAdsIDPutRes, _ error)

V1AdminAdsIDPut implements PUT /v1/admin/ads/{id} operation.

Обновляет рекламу по id.

PUT /v1/admin/ads/{id}

func (UnimplementedHandler) V1AdminAdsPost

func (UnimplementedHandler) V1AdminAdsPost(ctx context.Context, req *AdPost) (r V1AdminAdsPostRes, _ error)

V1AdminAdsPost implements POST /v1/admin/ads operation.

Создает новую рекламу.

POST /v1/admin/ads

func (UnimplementedHandler) V1AdminColorsGet

V1AdminColorsGet implements GET /v1/admin/colors operation.

Возвращает список цветов с возможностью пагинации.

GET /v1/admin/colors

func (UnimplementedHandler) V1AdminColorsIDDelete

V1AdminColorsIDDelete implements DELETE /v1/admin/colors/{id} operation.

Удаляет цвет с указанным id.

DELETE /v1/admin/colors/{id}

func (UnimplementedHandler) V1AdminColorsIDPut

V1AdminColorsIDPut implements PUT /v1/admin/colors/{id} operation.

Обновляет цвет с указанным id.

PUT /v1/admin/colors/{id}

func (UnimplementedHandler) V1AdminColorsPost

func (UnimplementedHandler) V1AdminColorsPost(ctx context.Context, req *ColorPost) (r V1AdminColorsPostRes, _ error)

V1AdminColorsPost implements POST /v1/admin/colors operation.

Создает новый цвет.

POST /v1/admin/colors

func (UnimplementedHandler) V1AdminImagesGet

V1AdminImagesGet implements GET /v1/admin/images operation.

Возвращает список изображений с поддержкой пагинации.

GET /v1/admin/images

func (UnimplementedHandler) V1AdminImagesIDDelete

V1AdminImagesIDDelete implements DELETE /v1/admin/images/{id} operation.

Удаляет изображение с указанным ID.

DELETE /v1/admin/images/{id}

func (UnimplementedHandler) V1AdminImagesIDPut

V1AdminImagesIDPut implements PUT /v1/admin/images/{id} operation.

Обновляет данные изображения с указанным ID.

PUT /v1/admin/images/{id}

func (UnimplementedHandler) V1AdminImagesPost

func (UnimplementedHandler) V1AdminImagesPost(ctx context.Context, req *ImagePost) (r V1AdminImagesPostRes, _ error)

V1AdminImagesPost implements POST /v1/admin/images operation.

Создает новый элемент изображения.

POST /v1/admin/images

func (UnimplementedHandler) V1AdminTgsGet

V1AdminTgsGet implements GET /v1/admin/tgs operation.

Возвращает список тг с возможностью пагинации.

GET /v1/admin/tgs

func (UnimplementedHandler) V1AdminTgsIDDelete

V1AdminTgsIDDelete implements DELETE /v1/admin/tgs/{id} operation.

Удаляет тг с указанным id.

DELETE /v1/admin/tgs/{id}

func (UnimplementedHandler) V1AdminTgsIDPut

func (UnimplementedHandler) V1AdminTgsIDPut(ctx context.Context, req *TgPut, params V1AdminTgsIDPutParams) (r V1AdminTgsIDPutRes, _ error)

V1AdminTgsIDPut implements PUT /v1/admin/tgs/{id} operation.

Обновляет тг с указанным id.

PUT /v1/admin/tgs/{id}

func (UnimplementedHandler) V1AdminTgsPost

func (UnimplementedHandler) V1AdminTgsPost(ctx context.Context, req *TgPost) (r V1AdminTgsPostRes, _ error)

V1AdminTgsPost implements POST /v1/admin/tgs operation.

Создает новый тг.

POST /v1/admin/tgs

func (UnimplementedHandler) V1AdsGet

func (UnimplementedHandler) V1AdsGet(ctx context.Context, params V1AdsGetParams) (r V1AdsGetRes, _ error)

V1AdsGet implements GET /v1/ads operation.

Получает список всех реклам с фильтрацией по приоритету и должности.

GET /v1/ads

func (UnimplementedHandler) V1LogosGet

func (UnimplementedHandler) V1LogosGet(ctx context.Context) (r V1LogosGetRes, _ error)

V1LogosGet implements GET /v1/logos operation.

Возвращает список всех лого.

GET /v1/logos

type V1AdminAdsGetBadRequest

type V1AdminAdsGetBadRequest Error

func (*V1AdminAdsGetBadRequest) Decode

func (s *V1AdminAdsGetBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsGetBadRequest from json.

func (*V1AdminAdsGetBadRequest) Encode

func (s *V1AdminAdsGetBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsGetBadRequest as json.

func (*V1AdminAdsGetBadRequest) MarshalJSON

func (s *V1AdminAdsGetBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsGetBadRequest) UnmarshalJSON

func (s *V1AdminAdsGetBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsGetNotFound

type V1AdminAdsGetNotFound Error

func (*V1AdminAdsGetNotFound) Decode

func (s *V1AdminAdsGetNotFound) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsGetNotFound from json.

func (*V1AdminAdsGetNotFound) Encode

func (s *V1AdminAdsGetNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsGetNotFound as json.

func (*V1AdminAdsGetNotFound) MarshalJSON

func (s *V1AdminAdsGetNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsGetNotFound) UnmarshalJSON

func (s *V1AdminAdsGetNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsGetParams

type V1AdminAdsGetParams struct {
	// Номер страницы для пагинации.
	Page OptInt
	// Количество элементов на странице.
	PerPage OptInt
}

V1AdminAdsGetParams is parameters of GET /v1/admin/ads operation.

type V1AdminAdsGetRes

type V1AdminAdsGetRes interface {
	// contains filtered or unexported methods
}

type V1AdminAdsGetUnauthorized

type V1AdminAdsGetUnauthorized Error

func (*V1AdminAdsGetUnauthorized) Decode

func (s *V1AdminAdsGetUnauthorized) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsGetUnauthorized from json.

func (*V1AdminAdsGetUnauthorized) Encode

func (s *V1AdminAdsGetUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsGetUnauthorized as json.

func (*V1AdminAdsGetUnauthorized) MarshalJSON

func (s *V1AdminAdsGetUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsGetUnauthorized) UnmarshalJSON

func (s *V1AdminAdsGetUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsIDDeleteNoContent

type V1AdminAdsIDDeleteNoContent struct{}

V1AdminAdsIDDeleteNoContent is response for V1AdminAdsIDDelete operation.

type V1AdminAdsIDDeleteNotFound

type V1AdminAdsIDDeleteNotFound Error

func (*V1AdminAdsIDDeleteNotFound) Decode

Decode decodes V1AdminAdsIDDeleteNotFound from json.

func (*V1AdminAdsIDDeleteNotFound) Encode

func (s *V1AdminAdsIDDeleteNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsIDDeleteNotFound as json.

func (*V1AdminAdsIDDeleteNotFound) MarshalJSON

func (s *V1AdminAdsIDDeleteNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsIDDeleteNotFound) UnmarshalJSON

func (s *V1AdminAdsIDDeleteNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsIDDeleteParams

type V1AdminAdsIDDeleteParams struct {
	// Идентификатор рекламы.
	ID int
}

V1AdminAdsIDDeleteParams is parameters of DELETE /v1/admin/ads/{id} operation.

type V1AdminAdsIDDeleteRes

type V1AdminAdsIDDeleteRes interface {
	// contains filtered or unexported methods
}

type V1AdminAdsIDDeleteUnauthorized

type V1AdminAdsIDDeleteUnauthorized Error

func (*V1AdminAdsIDDeleteUnauthorized) Decode

Decode decodes V1AdminAdsIDDeleteUnauthorized from json.

func (*V1AdminAdsIDDeleteUnauthorized) Encode

Encode encodes V1AdminAdsIDDeleteUnauthorized as json.

func (*V1AdminAdsIDDeleteUnauthorized) MarshalJSON

func (s *V1AdminAdsIDDeleteUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsIDDeleteUnauthorized) UnmarshalJSON

func (s *V1AdminAdsIDDeleteUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsIDPutBadRequest

type V1AdminAdsIDPutBadRequest Error

func (*V1AdminAdsIDPutBadRequest) Decode

func (s *V1AdminAdsIDPutBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsIDPutBadRequest from json.

func (*V1AdminAdsIDPutBadRequest) Encode

func (s *V1AdminAdsIDPutBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsIDPutBadRequest as json.

func (*V1AdminAdsIDPutBadRequest) MarshalJSON

func (s *V1AdminAdsIDPutBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsIDPutBadRequest) UnmarshalJSON

func (s *V1AdminAdsIDPutBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsIDPutConflict

type V1AdminAdsIDPutConflict Error

func (*V1AdminAdsIDPutConflict) Decode

func (s *V1AdminAdsIDPutConflict) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsIDPutConflict from json.

func (*V1AdminAdsIDPutConflict) Encode

func (s *V1AdminAdsIDPutConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsIDPutConflict as json.

func (*V1AdminAdsIDPutConflict) MarshalJSON

func (s *V1AdminAdsIDPutConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsIDPutConflict) UnmarshalJSON

func (s *V1AdminAdsIDPutConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsIDPutNotFound

type V1AdminAdsIDPutNotFound Error

func (*V1AdminAdsIDPutNotFound) Decode

func (s *V1AdminAdsIDPutNotFound) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsIDPutNotFound from json.

func (*V1AdminAdsIDPutNotFound) Encode

func (s *V1AdminAdsIDPutNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsIDPutNotFound as json.

func (*V1AdminAdsIDPutNotFound) MarshalJSON

func (s *V1AdminAdsIDPutNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsIDPutNotFound) UnmarshalJSON

func (s *V1AdminAdsIDPutNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsIDPutParams

type V1AdminAdsIDPutParams struct {
	// Id рекламы.
	ID int
}

V1AdminAdsIDPutParams is parameters of PUT /v1/admin/ads/{id} operation.

type V1AdminAdsIDPutRes

type V1AdminAdsIDPutRes interface {
	// contains filtered or unexported methods
}

type V1AdminAdsIDPutUnauthorized

type V1AdminAdsIDPutUnauthorized Error

func (*V1AdminAdsIDPutUnauthorized) Decode

Decode decodes V1AdminAdsIDPutUnauthorized from json.

func (*V1AdminAdsIDPutUnauthorized) Encode

func (s *V1AdminAdsIDPutUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsIDPutUnauthorized as json.

func (*V1AdminAdsIDPutUnauthorized) MarshalJSON

func (s *V1AdminAdsIDPutUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsIDPutUnauthorized) UnmarshalJSON

func (s *V1AdminAdsIDPutUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsPostBadRequest

type V1AdminAdsPostBadRequest Error

func (*V1AdminAdsPostBadRequest) Decode

func (s *V1AdminAdsPostBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsPostBadRequest from json.

func (*V1AdminAdsPostBadRequest) Encode

func (s *V1AdminAdsPostBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsPostBadRequest as json.

func (*V1AdminAdsPostBadRequest) MarshalJSON

func (s *V1AdminAdsPostBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsPostBadRequest) UnmarshalJSON

func (s *V1AdminAdsPostBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsPostConflict

type V1AdminAdsPostConflict Error

func (*V1AdminAdsPostConflict) Decode

func (s *V1AdminAdsPostConflict) Decode(d *jx.Decoder) error

Decode decodes V1AdminAdsPostConflict from json.

func (*V1AdminAdsPostConflict) Encode

func (s *V1AdminAdsPostConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsPostConflict as json.

func (*V1AdminAdsPostConflict) MarshalJSON

func (s *V1AdminAdsPostConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsPostConflict) UnmarshalJSON

func (s *V1AdminAdsPostConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminAdsPostRes

type V1AdminAdsPostRes interface {
	// contains filtered or unexported methods
}

type V1AdminAdsPostUnauthorized

type V1AdminAdsPostUnauthorized Error

func (*V1AdminAdsPostUnauthorized) Decode

Decode decodes V1AdminAdsPostUnauthorized from json.

func (*V1AdminAdsPostUnauthorized) Encode

func (s *V1AdminAdsPostUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminAdsPostUnauthorized as json.

func (*V1AdminAdsPostUnauthorized) MarshalJSON

func (s *V1AdminAdsPostUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminAdsPostUnauthorized) UnmarshalJSON

func (s *V1AdminAdsPostUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsGetBadRequest

type V1AdminColorsGetBadRequest Error

func (*V1AdminColorsGetBadRequest) Decode

Decode decodes V1AdminColorsGetBadRequest from json.

func (*V1AdminColorsGetBadRequest) Encode

func (s *V1AdminColorsGetBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsGetBadRequest as json.

func (*V1AdminColorsGetBadRequest) MarshalJSON

func (s *V1AdminColorsGetBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsGetBadRequest) UnmarshalJSON

func (s *V1AdminColorsGetBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsGetNotFound

type V1AdminColorsGetNotFound Error

func (*V1AdminColorsGetNotFound) Decode

func (s *V1AdminColorsGetNotFound) Decode(d *jx.Decoder) error

Decode decodes V1AdminColorsGetNotFound from json.

func (*V1AdminColorsGetNotFound) Encode

func (s *V1AdminColorsGetNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsGetNotFound as json.

func (*V1AdminColorsGetNotFound) MarshalJSON

func (s *V1AdminColorsGetNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsGetNotFound) UnmarshalJSON

func (s *V1AdminColorsGetNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsGetParams

type V1AdminColorsGetParams struct {
	// Номер страницы для пагинации.
	Page OptInt
	// Количество цветов на странице.
	PerPage OptInt
}

V1AdminColorsGetParams is parameters of GET /v1/admin/colors operation.

type V1AdminColorsGetRes

type V1AdminColorsGetRes interface {
	// contains filtered or unexported methods
}

type V1AdminColorsGetUnauthorized

type V1AdminColorsGetUnauthorized Error

func (*V1AdminColorsGetUnauthorized) Decode

Decode decodes V1AdminColorsGetUnauthorized from json.

func (*V1AdminColorsGetUnauthorized) Encode

func (s *V1AdminColorsGetUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsGetUnauthorized as json.

func (*V1AdminColorsGetUnauthorized) MarshalJSON

func (s *V1AdminColorsGetUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsGetUnauthorized) UnmarshalJSON

func (s *V1AdminColorsGetUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsIDDeleteConflict

type V1AdminColorsIDDeleteConflict Error

func (*V1AdminColorsIDDeleteConflict) Decode

Decode decodes V1AdminColorsIDDeleteConflict from json.

func (*V1AdminColorsIDDeleteConflict) Encode

Encode encodes V1AdminColorsIDDeleteConflict as json.

func (*V1AdminColorsIDDeleteConflict) MarshalJSON

func (s *V1AdminColorsIDDeleteConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsIDDeleteConflict) UnmarshalJSON

func (s *V1AdminColorsIDDeleteConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsIDDeleteNoContent

type V1AdminColorsIDDeleteNoContent struct{}

V1AdminColorsIDDeleteNoContent is response for V1AdminColorsIDDelete operation.

type V1AdminColorsIDDeleteNotFound

type V1AdminColorsIDDeleteNotFound Error

func (*V1AdminColorsIDDeleteNotFound) Decode

Decode decodes V1AdminColorsIDDeleteNotFound from json.

func (*V1AdminColorsIDDeleteNotFound) Encode

Encode encodes V1AdminColorsIDDeleteNotFound as json.

func (*V1AdminColorsIDDeleteNotFound) MarshalJSON

func (s *V1AdminColorsIDDeleteNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsIDDeleteNotFound) UnmarshalJSON

func (s *V1AdminColorsIDDeleteNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsIDDeleteParams

type V1AdminColorsIDDeleteParams struct {
	// Id цвета.
	ID int
}

V1AdminColorsIDDeleteParams is parameters of DELETE /v1/admin/colors/{id} operation.

type V1AdminColorsIDDeleteRes

type V1AdminColorsIDDeleteRes interface {
	// contains filtered or unexported methods
}

type V1AdminColorsIDDeleteUnauthorized

type V1AdminColorsIDDeleteUnauthorized Error

func (*V1AdminColorsIDDeleteUnauthorized) Decode

Decode decodes V1AdminColorsIDDeleteUnauthorized from json.

func (*V1AdminColorsIDDeleteUnauthorized) Encode

Encode encodes V1AdminColorsIDDeleteUnauthorized as json.

func (*V1AdminColorsIDDeleteUnauthorized) MarshalJSON

func (s *V1AdminColorsIDDeleteUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsIDDeleteUnauthorized) UnmarshalJSON

func (s *V1AdminColorsIDDeleteUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsIDPutBadRequest

type V1AdminColorsIDPutBadRequest Error

func (*V1AdminColorsIDPutBadRequest) Decode

Decode decodes V1AdminColorsIDPutBadRequest from json.

func (*V1AdminColorsIDPutBadRequest) Encode

func (s *V1AdminColorsIDPutBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsIDPutBadRequest as json.

func (*V1AdminColorsIDPutBadRequest) MarshalJSON

func (s *V1AdminColorsIDPutBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsIDPutBadRequest) UnmarshalJSON

func (s *V1AdminColorsIDPutBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsIDPutConflict

type V1AdminColorsIDPutConflict Error

func (*V1AdminColorsIDPutConflict) Decode

Decode decodes V1AdminColorsIDPutConflict from json.

func (*V1AdminColorsIDPutConflict) Encode

func (s *V1AdminColorsIDPutConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsIDPutConflict as json.

func (*V1AdminColorsIDPutConflict) MarshalJSON

func (s *V1AdminColorsIDPutConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsIDPutConflict) UnmarshalJSON

func (s *V1AdminColorsIDPutConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsIDPutNotFound

type V1AdminColorsIDPutNotFound Error

func (*V1AdminColorsIDPutNotFound) Decode

Decode decodes V1AdminColorsIDPutNotFound from json.

func (*V1AdminColorsIDPutNotFound) Encode

func (s *V1AdminColorsIDPutNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsIDPutNotFound as json.

func (*V1AdminColorsIDPutNotFound) MarshalJSON

func (s *V1AdminColorsIDPutNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsIDPutNotFound) UnmarshalJSON

func (s *V1AdminColorsIDPutNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsIDPutParams

type V1AdminColorsIDPutParams struct {
	// Id цвета.
	ID int
}

V1AdminColorsIDPutParams is parameters of PUT /v1/admin/colors/{id} operation.

type V1AdminColorsIDPutRes

type V1AdminColorsIDPutRes interface {
	// contains filtered or unexported methods
}

type V1AdminColorsIDPutUnauthorized

type V1AdminColorsIDPutUnauthorized Error

func (*V1AdminColorsIDPutUnauthorized) Decode

Decode decodes V1AdminColorsIDPutUnauthorized from json.

func (*V1AdminColorsIDPutUnauthorized) Encode

Encode encodes V1AdminColorsIDPutUnauthorized as json.

func (*V1AdminColorsIDPutUnauthorized) MarshalJSON

func (s *V1AdminColorsIDPutUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsIDPutUnauthorized) UnmarshalJSON

func (s *V1AdminColorsIDPutUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsPostBadRequest

type V1AdminColorsPostBadRequest Error

func (*V1AdminColorsPostBadRequest) Decode

Decode decodes V1AdminColorsPostBadRequest from json.

func (*V1AdminColorsPostBadRequest) Encode

func (s *V1AdminColorsPostBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsPostBadRequest as json.

func (*V1AdminColorsPostBadRequest) MarshalJSON

func (s *V1AdminColorsPostBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsPostBadRequest) UnmarshalJSON

func (s *V1AdminColorsPostBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsPostConflict

type V1AdminColorsPostConflict Error

func (*V1AdminColorsPostConflict) Decode

func (s *V1AdminColorsPostConflict) Decode(d *jx.Decoder) error

Decode decodes V1AdminColorsPostConflict from json.

func (*V1AdminColorsPostConflict) Encode

func (s *V1AdminColorsPostConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminColorsPostConflict as json.

func (*V1AdminColorsPostConflict) MarshalJSON

func (s *V1AdminColorsPostConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsPostConflict) UnmarshalJSON

func (s *V1AdminColorsPostConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminColorsPostRes

type V1AdminColorsPostRes interface {
	// contains filtered or unexported methods
}

type V1AdminColorsPostUnauthorized

type V1AdminColorsPostUnauthorized Error

func (*V1AdminColorsPostUnauthorized) Decode

Decode decodes V1AdminColorsPostUnauthorized from json.

func (*V1AdminColorsPostUnauthorized) Encode

Encode encodes V1AdminColorsPostUnauthorized as json.

func (*V1AdminColorsPostUnauthorized) MarshalJSON

func (s *V1AdminColorsPostUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminColorsPostUnauthorized) UnmarshalJSON

func (s *V1AdminColorsPostUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesGetBadRequest

type V1AdminImagesGetBadRequest Error

func (*V1AdminImagesGetBadRequest) Decode

Decode decodes V1AdminImagesGetBadRequest from json.

func (*V1AdminImagesGetBadRequest) Encode

func (s *V1AdminImagesGetBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesGetBadRequest as json.

func (*V1AdminImagesGetBadRequest) MarshalJSON

func (s *V1AdminImagesGetBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesGetBadRequest) UnmarshalJSON

func (s *V1AdminImagesGetBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesGetNotFound

type V1AdminImagesGetNotFound Error

func (*V1AdminImagesGetNotFound) Decode

func (s *V1AdminImagesGetNotFound) Decode(d *jx.Decoder) error

Decode decodes V1AdminImagesGetNotFound from json.

func (*V1AdminImagesGetNotFound) Encode

func (s *V1AdminImagesGetNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesGetNotFound as json.

func (*V1AdminImagesGetNotFound) MarshalJSON

func (s *V1AdminImagesGetNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesGetNotFound) UnmarshalJSON

func (s *V1AdminImagesGetNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesGetParams

type V1AdminImagesGetParams struct {
	// Номер страницы для пагинации.
	Page OptInt
	// Количество элементов на странице.
	PerPage OptInt
}

V1AdminImagesGetParams is parameters of GET /v1/admin/images operation.

type V1AdminImagesGetRes

type V1AdminImagesGetRes interface {
	// contains filtered or unexported methods
}

type V1AdminImagesGetUnauthorized

type V1AdminImagesGetUnauthorized Error

func (*V1AdminImagesGetUnauthorized) Decode

Decode decodes V1AdminImagesGetUnauthorized from json.

func (*V1AdminImagesGetUnauthorized) Encode

func (s *V1AdminImagesGetUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesGetUnauthorized as json.

func (*V1AdminImagesGetUnauthorized) MarshalJSON

func (s *V1AdminImagesGetUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesGetUnauthorized) UnmarshalJSON

func (s *V1AdminImagesGetUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesIDDeleteConflict

type V1AdminImagesIDDeleteConflict Error

func (*V1AdminImagesIDDeleteConflict) Decode

Decode decodes V1AdminImagesIDDeleteConflict from json.

func (*V1AdminImagesIDDeleteConflict) Encode

Encode encodes V1AdminImagesIDDeleteConflict as json.

func (*V1AdminImagesIDDeleteConflict) MarshalJSON

func (s *V1AdminImagesIDDeleteConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesIDDeleteConflict) UnmarshalJSON

func (s *V1AdminImagesIDDeleteConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesIDDeleteNoContent

type V1AdminImagesIDDeleteNoContent struct{}

V1AdminImagesIDDeleteNoContent is response for V1AdminImagesIDDelete operation.

type V1AdminImagesIDDeleteNotFound

type V1AdminImagesIDDeleteNotFound Error

func (*V1AdminImagesIDDeleteNotFound) Decode

Decode decodes V1AdminImagesIDDeleteNotFound from json.

func (*V1AdminImagesIDDeleteNotFound) Encode

Encode encodes V1AdminImagesIDDeleteNotFound as json.

func (*V1AdminImagesIDDeleteNotFound) MarshalJSON

func (s *V1AdminImagesIDDeleteNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesIDDeleteNotFound) UnmarshalJSON

func (s *V1AdminImagesIDDeleteNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesIDDeleteParams

type V1AdminImagesIDDeleteParams struct {
	// Id изображения.
	ID int
}

V1AdminImagesIDDeleteParams is parameters of DELETE /v1/admin/images/{id} operation.

type V1AdminImagesIDDeleteRes

type V1AdminImagesIDDeleteRes interface {
	// contains filtered or unexported methods
}

type V1AdminImagesIDDeleteUnauthorized

type V1AdminImagesIDDeleteUnauthorized Error

func (*V1AdminImagesIDDeleteUnauthorized) Decode

Decode decodes V1AdminImagesIDDeleteUnauthorized from json.

func (*V1AdminImagesIDDeleteUnauthorized) Encode

Encode encodes V1AdminImagesIDDeleteUnauthorized as json.

func (*V1AdminImagesIDDeleteUnauthorized) MarshalJSON

func (s *V1AdminImagesIDDeleteUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesIDDeleteUnauthorized) UnmarshalJSON

func (s *V1AdminImagesIDDeleteUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesIDPutBadRequest

type V1AdminImagesIDPutBadRequest Error

func (*V1AdminImagesIDPutBadRequest) Decode

Decode decodes V1AdminImagesIDPutBadRequest from json.

func (*V1AdminImagesIDPutBadRequest) Encode

func (s *V1AdminImagesIDPutBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesIDPutBadRequest as json.

func (*V1AdminImagesIDPutBadRequest) MarshalJSON

func (s *V1AdminImagesIDPutBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesIDPutBadRequest) UnmarshalJSON

func (s *V1AdminImagesIDPutBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesIDPutConflict

type V1AdminImagesIDPutConflict Error

func (*V1AdminImagesIDPutConflict) Decode

Decode decodes V1AdminImagesIDPutConflict from json.

func (*V1AdminImagesIDPutConflict) Encode

func (s *V1AdminImagesIDPutConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesIDPutConflict as json.

func (*V1AdminImagesIDPutConflict) MarshalJSON

func (s *V1AdminImagesIDPutConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesIDPutConflict) UnmarshalJSON

func (s *V1AdminImagesIDPutConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesIDPutNotFound

type V1AdminImagesIDPutNotFound Error

func (*V1AdminImagesIDPutNotFound) Decode

Decode decodes V1AdminImagesIDPutNotFound from json.

func (*V1AdminImagesIDPutNotFound) Encode

func (s *V1AdminImagesIDPutNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesIDPutNotFound as json.

func (*V1AdminImagesIDPutNotFound) MarshalJSON

func (s *V1AdminImagesIDPutNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesIDPutNotFound) UnmarshalJSON

func (s *V1AdminImagesIDPutNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesIDPutParams

type V1AdminImagesIDPutParams struct {
	// Id изображения.
	ID int
}

V1AdminImagesIDPutParams is parameters of PUT /v1/admin/images/{id} operation.

type V1AdminImagesIDPutRes

type V1AdminImagesIDPutRes interface {
	// contains filtered or unexported methods
}

type V1AdminImagesIDPutUnauthorized

type V1AdminImagesIDPutUnauthorized Error

func (*V1AdminImagesIDPutUnauthorized) Decode

Decode decodes V1AdminImagesIDPutUnauthorized from json.

func (*V1AdminImagesIDPutUnauthorized) Encode

Encode encodes V1AdminImagesIDPutUnauthorized as json.

func (*V1AdminImagesIDPutUnauthorized) MarshalJSON

func (s *V1AdminImagesIDPutUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesIDPutUnauthorized) UnmarshalJSON

func (s *V1AdminImagesIDPutUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesPostBadRequest

type V1AdminImagesPostBadRequest Error

func (*V1AdminImagesPostBadRequest) Decode

Decode decodes V1AdminImagesPostBadRequest from json.

func (*V1AdminImagesPostBadRequest) Encode

func (s *V1AdminImagesPostBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesPostBadRequest as json.

func (*V1AdminImagesPostBadRequest) MarshalJSON

func (s *V1AdminImagesPostBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesPostBadRequest) UnmarshalJSON

func (s *V1AdminImagesPostBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesPostConflict

type V1AdminImagesPostConflict Error

func (*V1AdminImagesPostConflict) Decode

func (s *V1AdminImagesPostConflict) Decode(d *jx.Decoder) error

Decode decodes V1AdminImagesPostConflict from json.

func (*V1AdminImagesPostConflict) Encode

func (s *V1AdminImagesPostConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminImagesPostConflict as json.

func (*V1AdminImagesPostConflict) MarshalJSON

func (s *V1AdminImagesPostConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesPostConflict) UnmarshalJSON

func (s *V1AdminImagesPostConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminImagesPostRes

type V1AdminImagesPostRes interface {
	// contains filtered or unexported methods
}

type V1AdminImagesPostUnauthorized

type V1AdminImagesPostUnauthorized Error

func (*V1AdminImagesPostUnauthorized) Decode

Decode decodes V1AdminImagesPostUnauthorized from json.

func (*V1AdminImagesPostUnauthorized) Encode

Encode encodes V1AdminImagesPostUnauthorized as json.

func (*V1AdminImagesPostUnauthorized) MarshalJSON

func (s *V1AdminImagesPostUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminImagesPostUnauthorized) UnmarshalJSON

func (s *V1AdminImagesPostUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsGetBadRequest

type V1AdminTgsGetBadRequest Error

func (*V1AdminTgsGetBadRequest) Decode

func (s *V1AdminTgsGetBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsGetBadRequest from json.

func (*V1AdminTgsGetBadRequest) Encode

func (s *V1AdminTgsGetBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsGetBadRequest as json.

func (*V1AdminTgsGetBadRequest) MarshalJSON

func (s *V1AdminTgsGetBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsGetBadRequest) UnmarshalJSON

func (s *V1AdminTgsGetBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsGetNotFound

type V1AdminTgsGetNotFound Error

func (*V1AdminTgsGetNotFound) Decode

func (s *V1AdminTgsGetNotFound) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsGetNotFound from json.

func (*V1AdminTgsGetNotFound) Encode

func (s *V1AdminTgsGetNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsGetNotFound as json.

func (*V1AdminTgsGetNotFound) MarshalJSON

func (s *V1AdminTgsGetNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsGetNotFound) UnmarshalJSON

func (s *V1AdminTgsGetNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsGetParams

type V1AdminTgsGetParams struct {
	// Номер страницы для пагинации.
	Page OptInt
	// Количество тг на странице.
	PerPage OptInt
}

V1AdminTgsGetParams is parameters of GET /v1/admin/tgs operation.

type V1AdminTgsGetRes

type V1AdminTgsGetRes interface {
	// contains filtered or unexported methods
}

type V1AdminTgsGetUnauthorized

type V1AdminTgsGetUnauthorized Error

func (*V1AdminTgsGetUnauthorized) Decode

func (s *V1AdminTgsGetUnauthorized) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsGetUnauthorized from json.

func (*V1AdminTgsGetUnauthorized) Encode

func (s *V1AdminTgsGetUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsGetUnauthorized as json.

func (*V1AdminTgsGetUnauthorized) MarshalJSON

func (s *V1AdminTgsGetUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsGetUnauthorized) UnmarshalJSON

func (s *V1AdminTgsGetUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsIDDeleteConflict

type V1AdminTgsIDDeleteConflict Error

func (*V1AdminTgsIDDeleteConflict) Decode

Decode decodes V1AdminTgsIDDeleteConflict from json.

func (*V1AdminTgsIDDeleteConflict) Encode

func (s *V1AdminTgsIDDeleteConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsIDDeleteConflict as json.

func (*V1AdminTgsIDDeleteConflict) MarshalJSON

func (s *V1AdminTgsIDDeleteConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsIDDeleteConflict) UnmarshalJSON

func (s *V1AdminTgsIDDeleteConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsIDDeleteNoContent

type V1AdminTgsIDDeleteNoContent struct{}

V1AdminTgsIDDeleteNoContent is response for V1AdminTgsIDDelete operation.

type V1AdminTgsIDDeleteNotFound

type V1AdminTgsIDDeleteNotFound Error

func (*V1AdminTgsIDDeleteNotFound) Decode

Decode decodes V1AdminTgsIDDeleteNotFound from json.

func (*V1AdminTgsIDDeleteNotFound) Encode

func (s *V1AdminTgsIDDeleteNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsIDDeleteNotFound as json.

func (*V1AdminTgsIDDeleteNotFound) MarshalJSON

func (s *V1AdminTgsIDDeleteNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsIDDeleteNotFound) UnmarshalJSON

func (s *V1AdminTgsIDDeleteNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsIDDeleteParams

type V1AdminTgsIDDeleteParams struct {
	// Id тг.
	ID int
}

V1AdminTgsIDDeleteParams is parameters of DELETE /v1/admin/tgs/{id} operation.

type V1AdminTgsIDDeleteRes

type V1AdminTgsIDDeleteRes interface {
	// contains filtered or unexported methods
}

type V1AdminTgsIDDeleteUnauthorized

type V1AdminTgsIDDeleteUnauthorized Error

func (*V1AdminTgsIDDeleteUnauthorized) Decode

Decode decodes V1AdminTgsIDDeleteUnauthorized from json.

func (*V1AdminTgsIDDeleteUnauthorized) Encode

Encode encodes V1AdminTgsIDDeleteUnauthorized as json.

func (*V1AdminTgsIDDeleteUnauthorized) MarshalJSON

func (s *V1AdminTgsIDDeleteUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsIDDeleteUnauthorized) UnmarshalJSON

func (s *V1AdminTgsIDDeleteUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsIDPutBadRequest

type V1AdminTgsIDPutBadRequest Error

func (*V1AdminTgsIDPutBadRequest) Decode

func (s *V1AdminTgsIDPutBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsIDPutBadRequest from json.

func (*V1AdminTgsIDPutBadRequest) Encode

func (s *V1AdminTgsIDPutBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsIDPutBadRequest as json.

func (*V1AdminTgsIDPutBadRequest) MarshalJSON

func (s *V1AdminTgsIDPutBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsIDPutBadRequest) UnmarshalJSON

func (s *V1AdminTgsIDPutBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsIDPutConflict

type V1AdminTgsIDPutConflict Error

func (*V1AdminTgsIDPutConflict) Decode

func (s *V1AdminTgsIDPutConflict) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsIDPutConflict from json.

func (*V1AdminTgsIDPutConflict) Encode

func (s *V1AdminTgsIDPutConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsIDPutConflict as json.

func (*V1AdminTgsIDPutConflict) MarshalJSON

func (s *V1AdminTgsIDPutConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsIDPutConflict) UnmarshalJSON

func (s *V1AdminTgsIDPutConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsIDPutNotFound

type V1AdminTgsIDPutNotFound Error

func (*V1AdminTgsIDPutNotFound) Decode

func (s *V1AdminTgsIDPutNotFound) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsIDPutNotFound from json.

func (*V1AdminTgsIDPutNotFound) Encode

func (s *V1AdminTgsIDPutNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsIDPutNotFound as json.

func (*V1AdminTgsIDPutNotFound) MarshalJSON

func (s *V1AdminTgsIDPutNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsIDPutNotFound) UnmarshalJSON

func (s *V1AdminTgsIDPutNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsIDPutParams

type V1AdminTgsIDPutParams struct {
	// Id тг.
	ID int
}

V1AdminTgsIDPutParams is parameters of PUT /v1/admin/tgs/{id} operation.

type V1AdminTgsIDPutRes

type V1AdminTgsIDPutRes interface {
	// contains filtered or unexported methods
}

type V1AdminTgsIDPutUnauthorized

type V1AdminTgsIDPutUnauthorized Error

func (*V1AdminTgsIDPutUnauthorized) Decode

Decode decodes V1AdminTgsIDPutUnauthorized from json.

func (*V1AdminTgsIDPutUnauthorized) Encode

func (s *V1AdminTgsIDPutUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsIDPutUnauthorized as json.

func (*V1AdminTgsIDPutUnauthorized) MarshalJSON

func (s *V1AdminTgsIDPutUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsIDPutUnauthorized) UnmarshalJSON

func (s *V1AdminTgsIDPutUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsPostBadRequest

type V1AdminTgsPostBadRequest Error

func (*V1AdminTgsPostBadRequest) Decode

func (s *V1AdminTgsPostBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsPostBadRequest from json.

func (*V1AdminTgsPostBadRequest) Encode

func (s *V1AdminTgsPostBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsPostBadRequest as json.

func (*V1AdminTgsPostBadRequest) MarshalJSON

func (s *V1AdminTgsPostBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsPostBadRequest) UnmarshalJSON

func (s *V1AdminTgsPostBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsPostConflict

type V1AdminTgsPostConflict Error

func (*V1AdminTgsPostConflict) Decode

func (s *V1AdminTgsPostConflict) Decode(d *jx.Decoder) error

Decode decodes V1AdminTgsPostConflict from json.

func (*V1AdminTgsPostConflict) Encode

func (s *V1AdminTgsPostConflict) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsPostConflict as json.

func (*V1AdminTgsPostConflict) MarshalJSON

func (s *V1AdminTgsPostConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsPostConflict) UnmarshalJSON

func (s *V1AdminTgsPostConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdminTgsPostRes

type V1AdminTgsPostRes interface {
	// contains filtered or unexported methods
}

type V1AdminTgsPostUnauthorized

type V1AdminTgsPostUnauthorized Error

func (*V1AdminTgsPostUnauthorized) Decode

Decode decodes V1AdminTgsPostUnauthorized from json.

func (*V1AdminTgsPostUnauthorized) Encode

func (s *V1AdminTgsPostUnauthorized) Encode(e *jx.Encoder)

Encode encodes V1AdminTgsPostUnauthorized as json.

func (*V1AdminTgsPostUnauthorized) MarshalJSON

func (s *V1AdminTgsPostUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdminTgsPostUnauthorized) UnmarshalJSON

func (s *V1AdminTgsPostUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdsGetBadRequest

type V1AdsGetBadRequest Error

func (*V1AdsGetBadRequest) Decode

func (s *V1AdsGetBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1AdsGetBadRequest from json.

func (*V1AdsGetBadRequest) Encode

func (s *V1AdsGetBadRequest) Encode(e *jx.Encoder)

Encode encodes V1AdsGetBadRequest as json.

func (*V1AdsGetBadRequest) MarshalJSON

func (s *V1AdsGetBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdsGetBadRequest) UnmarshalJSON

func (s *V1AdsGetBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdsGetNotFound

type V1AdsGetNotFound Error

func (*V1AdsGetNotFound) Decode

func (s *V1AdsGetNotFound) Decode(d *jx.Decoder) error

Decode decodes V1AdsGetNotFound from json.

func (*V1AdsGetNotFound) Encode

func (s *V1AdsGetNotFound) Encode(e *jx.Encoder)

Encode encodes V1AdsGetNotFound as json.

func (*V1AdsGetNotFound) MarshalJSON

func (s *V1AdsGetNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1AdsGetNotFound) UnmarshalJSON

func (s *V1AdsGetNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1AdsGetParams

type V1AdsGetParams struct {
	// Фильтр по приоритету.
	Priority []V1AdsGetPriorityItem
	// Фильтр по должности.
	Post []string
}

V1AdsGetParams is parameters of GET /v1/ads operation.

type V1AdsGetPriorityItem

type V1AdsGetPriorityItem int
const (
	V1AdsGetPriorityItem1 V1AdsGetPriorityItem = 1
	V1AdsGetPriorityItem2 V1AdsGetPriorityItem = 2
	V1AdsGetPriorityItem3 V1AdsGetPriorityItem = 3
)

func (V1AdsGetPriorityItem) AllValues

AllValues returns all V1AdsGetPriorityItem values.

func (V1AdsGetPriorityItem) Validate

func (s V1AdsGetPriorityItem) Validate() error

type V1AdsGetRes

type V1AdsGetRes interface {
	// contains filtered or unexported methods
}

type V1LogosGetBadRequest

type V1LogosGetBadRequest Error

func (*V1LogosGetBadRequest) Decode

func (s *V1LogosGetBadRequest) Decode(d *jx.Decoder) error

Decode decodes V1LogosGetBadRequest from json.

func (*V1LogosGetBadRequest) Encode

func (s *V1LogosGetBadRequest) Encode(e *jx.Encoder)

Encode encodes V1LogosGetBadRequest as json.

func (*V1LogosGetBadRequest) MarshalJSON

func (s *V1LogosGetBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1LogosGetBadRequest) UnmarshalJSON

func (s *V1LogosGetBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1LogosGetNotFound

type V1LogosGetNotFound Error

func (*V1LogosGetNotFound) Decode

func (s *V1LogosGetNotFound) Decode(d *jx.Decoder) error

Decode decodes V1LogosGetNotFound from json.

func (*V1LogosGetNotFound) Encode

func (s *V1LogosGetNotFound) Encode(e *jx.Encoder)

Encode encodes V1LogosGetNotFound as json.

func (*V1LogosGetNotFound) MarshalJSON

func (s *V1LogosGetNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V1LogosGetNotFound) UnmarshalJSON

func (s *V1LogosGetNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V1LogosGetRes

type V1LogosGetRes interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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