Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Ad
- func (s *Ad) Decode(d *jx.Decoder) error
- func (s *Ad) Encode(e *jx.Encoder)
- func (s *Ad) GetColor() Color
- func (s *Ad) GetDescription() string
- func (s *Ad) GetID() int
- func (s *Ad) GetImage() Image
- func (s *Ad) GetPost() string
- func (s *Ad) GetPriority() AdPriority
- func (s *Ad) GetTg() Tg
- func (s *Ad) GetTitle() string
- func (s *Ad) MarshalJSON() ([]byte, error)
- func (s *Ad) SetColor(val Color)
- func (s *Ad) SetDescription(val string)
- func (s *Ad) SetID(val int)
- func (s *Ad) SetImage(val Image)
- func (s *Ad) SetPost(val string)
- func (s *Ad) SetPriority(val AdPriority)
- func (s *Ad) SetTg(val Tg)
- func (s *Ad) SetTitle(val string)
- func (s *Ad) UnmarshalJSON(data []byte) error
- func (s *Ad) Validate() error
- type AdPost
- func (s *AdPost) Decode(d *jx.Decoder) error
- func (s *AdPost) Encode(e *jx.Encoder)
- func (s *AdPost) GetColorsID() int
- func (s *AdPost) GetDescription() string
- func (s *AdPost) GetImagesID() int
- func (s *AdPost) GetPost() string
- func (s *AdPost) GetPriority() AdPostPriority
- func (s *AdPost) GetTgID() int
- func (s *AdPost) GetTitle() string
- func (s *AdPost) MarshalJSON() ([]byte, error)
- func (s *AdPost) SetColorsID(val int)
- func (s *AdPost) SetDescription(val string)
- func (s *AdPost) SetImagesID(val int)
- func (s *AdPost) SetPost(val string)
- func (s *AdPost) SetPriority(val AdPostPriority)
- func (s *AdPost) SetTgID(val int)
- func (s *AdPost) SetTitle(val string)
- func (s *AdPost) UnmarshalJSON(data []byte) error
- func (s *AdPost) Validate() error
- type AdPostPriority
- func (AdPostPriority) AllValues() []AdPostPriority
- func (s *AdPostPriority) Decode(d *jx.Decoder) error
- func (s AdPostPriority) Encode(e *jx.Encoder)
- func (s AdPostPriority) MarshalJSON() ([]byte, error)
- func (s *AdPostPriority) UnmarshalJSON(data []byte) error
- func (s AdPostPriority) Validate() error
- type AdPriority
- type AdPut
- func (s *AdPut) Decode(d *jx.Decoder) error
- func (s *AdPut) Encode(e *jx.Encoder)
- func (s *AdPut) GetColorsID() OptInt
- func (s *AdPut) GetDescription() OptString
- func (s *AdPut) GetImagesID() OptInt
- func (s *AdPut) GetPost() OptString
- func (s *AdPut) GetPriority() OptAdPutPriority
- func (s *AdPut) GetTgID() OptInt
- func (s *AdPut) GetTitle() OptString
- func (s *AdPut) MarshalJSON() ([]byte, error)
- func (s *AdPut) SetColorsID(val OptInt)
- func (s *AdPut) SetDescription(val OptString)
- func (s *AdPut) SetImagesID(val OptInt)
- func (s *AdPut) SetPost(val OptString)
- func (s *AdPut) SetPriority(val OptAdPutPriority)
- func (s *AdPut) SetTgID(val OptInt)
- func (s *AdPut) SetTitle(val OptString)
- func (s *AdPut) UnmarshalJSON(data []byte) error
- func (s *AdPut) Validate() error
- type AdPutPriority
- type AdminBearerAuth
- type Ads
- type AdsResp
- func (s *AdsResp) Decode(d *jx.Decoder) error
- func (s *AdsResp) Encode(e *jx.Encoder)
- func (s *AdsResp) GetData() []Ad
- func (s *AdsResp) GetPage() int
- func (s *AdsResp) GetPages() int
- func (s *AdsResp) GetPerPage() int
- func (s *AdsResp) MarshalJSON() ([]byte, error)
- func (s *AdsResp) SetData(val []Ad)
- func (s *AdsResp) SetPage(val int)
- func (s *AdsResp) SetPages(val int)
- func (s *AdsResp) SetPerPage(val int)
- func (s *AdsResp) UnmarshalJSON(data []byte) error
- func (s *AdsResp) Validate() error
- type Client
- func (c *Client) V1AdminAdsGet(ctx context.Context, params V1AdminAdsGetParams) (V1AdminAdsGetRes, error)
- func (c *Client) V1AdminAdsIDDelete(ctx context.Context, params V1AdminAdsIDDeleteParams) (V1AdminAdsIDDeleteRes, error)
- func (c *Client) V1AdminAdsIDPut(ctx context.Context, request *AdPut, params V1AdminAdsIDPutParams) (V1AdminAdsIDPutRes, error)
- func (c *Client) V1AdminAdsPost(ctx context.Context, request *AdPost) (V1AdminAdsPostRes, error)
- func (c *Client) V1AdminColorsGet(ctx context.Context, params V1AdminColorsGetParams) (V1AdminColorsGetRes, error)
- func (c *Client) V1AdminColorsIDDelete(ctx context.Context, params V1AdminColorsIDDeleteParams) (V1AdminColorsIDDeleteRes, error)
- func (c *Client) V1AdminColorsIDPut(ctx context.Context, request *ColorPut, params V1AdminColorsIDPutParams) (V1AdminColorsIDPutRes, error)
- func (c *Client) V1AdminColorsPost(ctx context.Context, request *ColorPost) (V1AdminColorsPostRes, error)
- func (c *Client) V1AdminImagesGet(ctx context.Context, params V1AdminImagesGetParams) (V1AdminImagesGetRes, error)
- func (c *Client) V1AdminImagesIDDelete(ctx context.Context, params V1AdminImagesIDDeleteParams) (V1AdminImagesIDDeleteRes, error)
- func (c *Client) V1AdminImagesIDPut(ctx context.Context, request *ImagePut, params V1AdminImagesIDPutParams) (V1AdminImagesIDPutRes, error)
- func (c *Client) V1AdminImagesPost(ctx context.Context, request *ImagePost) (V1AdminImagesPostRes, error)
- func (c *Client) V1AdminTgsGet(ctx context.Context, params V1AdminTgsGetParams) (V1AdminTgsGetRes, error)
- func (c *Client) V1AdminTgsIDDelete(ctx context.Context, params V1AdminTgsIDDeleteParams) (V1AdminTgsIDDeleteRes, error)
- func (c *Client) V1AdminTgsIDPut(ctx context.Context, request *TgPut, params V1AdminTgsIDPutParams) (V1AdminTgsIDPutRes, error)
- func (c *Client) V1AdminTgsPost(ctx context.Context, request *TgPost) (V1AdminTgsPostRes, error)
- func (c *Client) V1AdsGet(ctx context.Context, params V1AdsGetParams) (V1AdsGetRes, error)
- func (c *Client) V1LogosGet(ctx context.Context) (V1LogosGetRes, error)
- type ClientOption
- type Color
- func (s *Color) Decode(d *jx.Decoder) error
- func (s *Color) Encode(e *jx.Encoder)
- func (s *Color) GetHex() string
- func (s *Color) GetID() int
- func (s *Color) GetTitle() string
- func (s *Color) MarshalJSON() ([]byte, error)
- func (s *Color) SetHex(val string)
- func (s *Color) SetID(val int)
- func (s *Color) SetTitle(val string)
- func (s *Color) UnmarshalJSON(data []byte) error
- type ColorPost
- func (s *ColorPost) Decode(d *jx.Decoder) error
- func (s *ColorPost) Encode(e *jx.Encoder)
- func (s *ColorPost) GetHex() string
- func (s *ColorPost) GetTitle() string
- func (s *ColorPost) MarshalJSON() ([]byte, error)
- func (s *ColorPost) SetHex(val string)
- func (s *ColorPost) SetTitle(val string)
- func (s *ColorPost) UnmarshalJSON(data []byte) error
- func (s *ColorPost) Validate() error
- type ColorPut
- func (s *ColorPut) Decode(d *jx.Decoder) error
- func (s *ColorPut) Encode(e *jx.Encoder)
- func (s *ColorPut) GetHex() OptString
- func (s *ColorPut) GetTitle() OptString
- func (s *ColorPut) MarshalJSON() ([]byte, error)
- func (s *ColorPut) SetHex(val OptString)
- func (s *ColorPut) SetTitle(val OptString)
- func (s *ColorPut) UnmarshalJSON(data []byte) error
- func (s *ColorPut) Validate() error
- type ColorsResp
- func (s *ColorsResp) Decode(d *jx.Decoder) error
- func (s *ColorsResp) Encode(e *jx.Encoder)
- func (s *ColorsResp) GetData() []Color
- func (s *ColorsResp) GetPage() int
- func (s *ColorsResp) GetPages() int
- func (s *ColorsResp) GetPerPage() int
- func (s *ColorsResp) MarshalJSON() ([]byte, error)
- func (s *ColorsResp) SetData(val []Color)
- func (s *ColorsResp) SetPage(val int)
- func (s *ColorsResp) SetPages(val int)
- func (s *ColorsResp) SetPerPage(val int)
- func (s *ColorsResp) UnmarshalJSON(data []byte) error
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetDetails() ErrorDetails
- func (s *Error) GetMessage() string
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetDetails(val ErrorDetails)
- func (s *Error) SetMessage(val string)
- func (s *Error) UnmarshalJSON(data []byte) error
- type ErrorDetails
- type ErrorHandler
- type ErrorStatusCode
- type Handler
- type Image
- func (s *Image) Decode(d *jx.Decoder) error
- func (s *Image) Encode(e *jx.Encoder)
- func (s *Image) GetID() int
- func (s *Image) GetTitle() string
- func (s *Image) GetType() ImageType
- func (s *Image) GetURL() url.URL
- func (s *Image) MarshalJSON() ([]byte, error)
- func (s *Image) SetID(val int)
- func (s *Image) SetTitle(val string)
- func (s *Image) SetType(val ImageType)
- func (s *Image) SetURL(val url.URL)
- func (s *Image) UnmarshalJSON(data []byte) error
- func (s *Image) Validate() error
- type ImagePost
- func (s *ImagePost) Decode(d *jx.Decoder) error
- func (s *ImagePost) Encode(e *jx.Encoder)
- func (s *ImagePost) GetTitle() string
- func (s *ImagePost) GetType() ImagePostType
- func (s *ImagePost) GetURL() url.URL
- func (s *ImagePost) MarshalJSON() ([]byte, error)
- func (s *ImagePost) SetTitle(val string)
- func (s *ImagePost) SetType(val ImagePostType)
- func (s *ImagePost) SetURL(val url.URL)
- func (s *ImagePost) UnmarshalJSON(data []byte) error
- func (s *ImagePost) Validate() error
- type ImagePostType
- func (ImagePostType) AllValues() []ImagePostType
- func (s *ImagePostType) Decode(d *jx.Decoder) error
- func (s ImagePostType) Encode(e *jx.Encoder)
- func (s ImagePostType) MarshalJSON() ([]byte, error)
- func (s ImagePostType) MarshalText() ([]byte, error)
- func (s *ImagePostType) UnmarshalJSON(data []byte) error
- func (s *ImagePostType) UnmarshalText(data []byte) error
- func (s ImagePostType) Validate() error
- type ImagePut
- func (s *ImagePut) Decode(d *jx.Decoder) error
- func (s *ImagePut) Encode(e *jx.Encoder)
- func (s *ImagePut) GetTitle() OptString
- func (s *ImagePut) GetType() OptImagePutType
- func (s *ImagePut) GetURL() OptURI
- func (s *ImagePut) MarshalJSON() ([]byte, error)
- func (s *ImagePut) SetTitle(val OptString)
- func (s *ImagePut) SetType(val OptImagePutType)
- func (s *ImagePut) SetURL(val OptURI)
- func (s *ImagePut) UnmarshalJSON(data []byte) error
- func (s *ImagePut) Validate() error
- type ImagePutType
- func (ImagePutType) AllValues() []ImagePutType
- func (s *ImagePutType) Decode(d *jx.Decoder) error
- func (s ImagePutType) Encode(e *jx.Encoder)
- func (s ImagePutType) MarshalJSON() ([]byte, error)
- func (s ImagePutType) MarshalText() ([]byte, error)
- func (s *ImagePutType) UnmarshalJSON(data []byte) error
- func (s *ImagePutType) UnmarshalText(data []byte) error
- func (s ImagePutType) Validate() error
- type ImageType
- func (ImageType) AllValues() []ImageType
- func (s *ImageType) Decode(d *jx.Decoder) error
- func (s ImageType) Encode(e *jx.Encoder)
- func (s ImageType) MarshalJSON() ([]byte, error)
- func (s ImageType) MarshalText() ([]byte, error)
- func (s *ImageType) UnmarshalJSON(data []byte) error
- func (s *ImageType) UnmarshalText(data []byte) error
- func (s ImageType) Validate() error
- type ImagesResp
- func (s *ImagesResp) Decode(d *jx.Decoder) error
- func (s *ImagesResp) Encode(e *jx.Encoder)
- func (s *ImagesResp) GetData() []Image
- func (s *ImagesResp) GetPage() int
- func (s *ImagesResp) GetPages() int
- func (s *ImagesResp) GetPerPage() int
- func (s *ImagesResp) MarshalJSON() ([]byte, error)
- func (s *ImagesResp) SetData(val []Image)
- func (s *ImagesResp) SetPage(val int)
- func (s *ImagesResp) SetPages(val int)
- func (s *ImagesResp) SetPerPage(val int)
- func (s *ImagesResp) UnmarshalJSON(data []byte) error
- func (s *ImagesResp) Validate() error
- type Invoker
- type Labeler
- type LogosResp
- type LogosRespItem
- func (s *LogosRespItem) Decode(d *jx.Decoder) error
- func (s *LogosRespItem) Encode(e *jx.Encoder)
- func (s *LogosRespItem) GetTitle() string
- func (s *LogosRespItem) GetType() LogosRespItemType
- func (s *LogosRespItem) GetURL() url.URL
- func (s *LogosRespItem) MarshalJSON() ([]byte, error)
- func (s *LogosRespItem) SetTitle(val string)
- func (s *LogosRespItem) SetType(val LogosRespItemType)
- func (s *LogosRespItem) SetURL(val url.URL)
- func (s *LogosRespItem) UnmarshalJSON(data []byte) error
- func (s *LogosRespItem) Validate() error
- type LogosRespItemType
- func (LogosRespItemType) AllValues() []LogosRespItemType
- func (s *LogosRespItemType) Decode(d *jx.Decoder) error
- func (s LogosRespItemType) Encode(e *jx.Encoder)
- func (s LogosRespItemType) MarshalJSON() ([]byte, error)
- func (s LogosRespItemType) MarshalText() ([]byte, error)
- func (s *LogosRespItemType) UnmarshalJSON(data []byte) error
- func (s *LogosRespItemType) UnmarshalText(data []byte) error
- func (s LogosRespItemType) Validate() error
- type Middleware
- type OptAdPutPriority
- func (o *OptAdPutPriority) Decode(d *jx.Decoder) error
- func (o OptAdPutPriority) Encode(e *jx.Encoder)
- func (o OptAdPutPriority) Get() (v AdPutPriority, ok bool)
- func (o OptAdPutPriority) IsSet() bool
- func (s OptAdPutPriority) MarshalJSON() ([]byte, error)
- func (o OptAdPutPriority) Or(d AdPutPriority) AdPutPriority
- func (o *OptAdPutPriority) Reset()
- func (o *OptAdPutPriority) SetTo(v AdPutPriority)
- func (s *OptAdPutPriority) UnmarshalJSON(data []byte) error
- type OptImagePutType
- func (o *OptImagePutType) Decode(d *jx.Decoder) error
- func (o OptImagePutType) Encode(e *jx.Encoder)
- func (o OptImagePutType) Get() (v ImagePutType, ok bool)
- func (o OptImagePutType) IsSet() bool
- func (s OptImagePutType) MarshalJSON() ([]byte, error)
- func (o OptImagePutType) Or(d ImagePutType) ImagePutType
- func (o *OptImagePutType) Reset()
- func (o *OptImagePutType) SetTo(v ImagePutType)
- func (s *OptImagePutType) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptURI
- func (o *OptURI) Decode(d *jx.Decoder) error
- func (o OptURI) Encode(e *jx.Encoder)
- func (o OptURI) Get() (v url.URL, ok bool)
- func (o OptURI) IsSet() bool
- func (s OptURI) MarshalJSON() ([]byte, error)
- func (o OptURI) Or(d url.URL) url.URL
- func (o *OptURI) Reset()
- func (o *OptURI) SetTo(v url.URL)
- func (s *OptURI) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type SecurityHandler
- type SecuritySource
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type Tg
- func (s *Tg) Decode(d *jx.Decoder) error
- func (s *Tg) Encode(e *jx.Encoder)
- func (s *Tg) GetID() int
- func (s *Tg) GetTitle() string
- func (s *Tg) GetURL() url.URL
- func (s *Tg) MarshalJSON() ([]byte, error)
- func (s *Tg) SetID(val int)
- func (s *Tg) SetTitle(val string)
- func (s *Tg) SetURL(val url.URL)
- func (s *Tg) UnmarshalJSON(data []byte) error
- type TgPost
- func (s *TgPost) Decode(d *jx.Decoder) error
- func (s *TgPost) Encode(e *jx.Encoder)
- func (s *TgPost) GetTitle() string
- func (s *TgPost) GetURL() url.URL
- func (s *TgPost) MarshalJSON() ([]byte, error)
- func (s *TgPost) SetTitle(val string)
- func (s *TgPost) SetURL(val url.URL)
- func (s *TgPost) UnmarshalJSON(data []byte) error
- func (s *TgPost) Validate() error
- type TgPut
- func (s *TgPut) Decode(d *jx.Decoder) error
- func (s *TgPut) Encode(e *jx.Encoder)
- func (s *TgPut) GetTitle() OptString
- func (s *TgPut) GetURL() OptURI
- func (s *TgPut) MarshalJSON() ([]byte, error)
- func (s *TgPut) SetTitle(val OptString)
- func (s *TgPut) SetURL(val OptURI)
- func (s *TgPut) UnmarshalJSON(data []byte) error
- func (s *TgPut) Validate() error
- type TgsResp
- func (s *TgsResp) Decode(d *jx.Decoder) error
- func (s *TgsResp) Encode(e *jx.Encoder)
- func (s *TgsResp) GetData() []Tg
- func (s *TgsResp) GetPage() int
- func (s *TgsResp) GetPages() int
- func (s *TgsResp) GetPerPage() int
- func (s *TgsResp) MarshalJSON() ([]byte, error)
- func (s *TgsResp) SetData(val []Tg)
- func (s *TgsResp) SetPage(val int)
- func (s *TgsResp) SetPages(val int)
- func (s *TgsResp) SetPerPage(val int)
- func (s *TgsResp) UnmarshalJSON(data []byte) error
- type UnimplementedHandler
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
- func (UnimplementedHandler) V1AdminAdsGet(ctx context.Context, params V1AdminAdsGetParams) (r V1AdminAdsGetRes, _ error)
- func (UnimplementedHandler) V1AdminAdsIDDelete(ctx context.Context, params V1AdminAdsIDDeleteParams) (r V1AdminAdsIDDeleteRes, _ error)
- func (UnimplementedHandler) V1AdminAdsIDPut(ctx context.Context, req *AdPut, params V1AdminAdsIDPutParams) (r V1AdminAdsIDPutRes, _ error)
- func (UnimplementedHandler) V1AdminAdsPost(ctx context.Context, req *AdPost) (r V1AdminAdsPostRes, _ error)
- func (UnimplementedHandler) V1AdminColorsGet(ctx context.Context, params V1AdminColorsGetParams) (r V1AdminColorsGetRes, _ error)
- func (UnimplementedHandler) V1AdminColorsIDDelete(ctx context.Context, params V1AdminColorsIDDeleteParams) (r V1AdminColorsIDDeleteRes, _ error)
- func (UnimplementedHandler) V1AdminColorsIDPut(ctx context.Context, req *ColorPut, params V1AdminColorsIDPutParams) (r V1AdminColorsIDPutRes, _ error)
- func (UnimplementedHandler) V1AdminColorsPost(ctx context.Context, req *ColorPost) (r V1AdminColorsPostRes, _ error)
- func (UnimplementedHandler) V1AdminImagesGet(ctx context.Context, params V1AdminImagesGetParams) (r V1AdminImagesGetRes, _ error)
- func (UnimplementedHandler) V1AdminImagesIDDelete(ctx context.Context, params V1AdminImagesIDDeleteParams) (r V1AdminImagesIDDeleteRes, _ error)
- func (UnimplementedHandler) V1AdminImagesIDPut(ctx context.Context, req *ImagePut, params V1AdminImagesIDPutParams) (r V1AdminImagesIDPutRes, _ error)
- func (UnimplementedHandler) V1AdminImagesPost(ctx context.Context, req *ImagePost) (r V1AdminImagesPostRes, _ error)
- func (UnimplementedHandler) V1AdminTgsGet(ctx context.Context, params V1AdminTgsGetParams) (r V1AdminTgsGetRes, _ error)
- func (UnimplementedHandler) V1AdminTgsIDDelete(ctx context.Context, params V1AdminTgsIDDeleteParams) (r V1AdminTgsIDDeleteRes, _ error)
- func (UnimplementedHandler) V1AdminTgsIDPut(ctx context.Context, req *TgPut, params V1AdminTgsIDPutParams) (r V1AdminTgsIDPutRes, _ error)
- func (UnimplementedHandler) V1AdminTgsPost(ctx context.Context, req *TgPost) (r V1AdminTgsPostRes, _ error)
- func (UnimplementedHandler) V1AdsGet(ctx context.Context, params V1AdsGetParams) (r V1AdsGetRes, _ error)
- func (UnimplementedHandler) V1LogosGet(ctx context.Context) (r V1LogosGetRes, _ error)
- type V1AdminAdsGetBadRequest
- type V1AdminAdsGetNotFound
- type V1AdminAdsGetParams
- type V1AdminAdsGetRes
- type V1AdminAdsGetUnauthorized
- type V1AdminAdsIDDeleteNoContent
- type V1AdminAdsIDDeleteNotFound
- type V1AdminAdsIDDeleteParams
- type V1AdminAdsIDDeleteRes
- type V1AdminAdsIDDeleteUnauthorized
- type V1AdminAdsIDPutBadRequest
- type V1AdminAdsIDPutConflict
- type V1AdminAdsIDPutNotFound
- type V1AdminAdsIDPutParams
- type V1AdminAdsIDPutRes
- type V1AdminAdsIDPutUnauthorized
- type V1AdminAdsPostBadRequest
- type V1AdminAdsPostConflict
- type V1AdminAdsPostRes
- type V1AdminAdsPostUnauthorized
- type V1AdminColorsGetBadRequest
- type V1AdminColorsGetNotFound
- type V1AdminColorsGetParams
- type V1AdminColorsGetRes
- type V1AdminColorsGetUnauthorized
- type V1AdminColorsIDDeleteConflict
- type V1AdminColorsIDDeleteNoContent
- type V1AdminColorsIDDeleteNotFound
- type V1AdminColorsIDDeleteParams
- type V1AdminColorsIDDeleteRes
- type V1AdminColorsIDDeleteUnauthorized
- type V1AdminColorsIDPutBadRequest
- type V1AdminColorsIDPutConflict
- type V1AdminColorsIDPutNotFound
- type V1AdminColorsIDPutParams
- type V1AdminColorsIDPutRes
- type V1AdminColorsIDPutUnauthorized
- type V1AdminColorsPostBadRequest
- type V1AdminColorsPostConflict
- type V1AdminColorsPostRes
- type V1AdminColorsPostUnauthorized
- type V1AdminImagesGetBadRequest
- type V1AdminImagesGetNotFound
- type V1AdminImagesGetParams
- type V1AdminImagesGetRes
- type V1AdminImagesGetUnauthorized
- type V1AdminImagesIDDeleteConflict
- type V1AdminImagesIDDeleteNoContent
- type V1AdminImagesIDDeleteNotFound
- type V1AdminImagesIDDeleteParams
- type V1AdminImagesIDDeleteRes
- type V1AdminImagesIDDeleteUnauthorized
- type V1AdminImagesIDPutBadRequest
- type V1AdminImagesIDPutConflict
- type V1AdminImagesIDPutNotFound
- type V1AdminImagesIDPutParams
- type V1AdminImagesIDPutRes
- type V1AdminImagesIDPutUnauthorized
- type V1AdminImagesPostBadRequest
- type V1AdminImagesPostConflict
- type V1AdminImagesPostRes
- type V1AdminImagesPostUnauthorized
- type V1AdminTgsGetBadRequest
- type V1AdminTgsGetNotFound
- type V1AdminTgsGetParams
- type V1AdminTgsGetRes
- type V1AdminTgsGetUnauthorized
- type V1AdminTgsIDDeleteConflict
- type V1AdminTgsIDDeleteNoContent
- type V1AdminTgsIDDeleteNotFound
- type V1AdminTgsIDDeleteParams
- type V1AdminTgsIDDeleteRes
- type V1AdminTgsIDDeleteUnauthorized
- type V1AdminTgsIDPutBadRequest
- type V1AdminTgsIDPutConflict
- type V1AdminTgsIDPutNotFound
- type V1AdminTgsIDPutParams
- type V1AdminTgsIDPutRes
- type V1AdminTgsIDPutUnauthorized
- type V1AdminTgsPostBadRequest
- type V1AdminTgsPostConflict
- type V1AdminTgsPostRes
- type V1AdminTgsPostUnauthorized
- type V1AdsGetBadRequest
- type V1AdsGetNotFound
- type V1AdsGetParams
- type V1AdsGetPriorityItem
- type V1AdsGetRes
- type V1LogosGetBadRequest
- type V1LogosGetNotFound
- type V1LogosGetRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ad ¶
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) GetDescription ¶
GetDescription returns the value of Description.
func (*Ad) GetPriority ¶
func (s *Ad) GetPriority() AdPriority
GetPriority returns the value of Priority.
func (*Ad) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Ad) SetDescription ¶
SetDescription sets the value of Description.
func (*Ad) SetPriority ¶
func (s *Ad) SetPriority(val AdPriority)
SetPriority sets the value of Priority.
func (*Ad) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) GetColorsID ¶
GetColorsID returns the value of ColorsID.
func (*AdPost) GetDescription ¶
GetDescription returns the value of Description.
func (*AdPost) GetImagesID ¶
GetImagesID returns the value of ImagesID.
func (*AdPost) GetPriority ¶
func (s *AdPost) GetPriority() AdPostPriority
GetPriority returns the value of Priority.
func (*AdPost) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AdPost) SetColorsID ¶
SetColorsID sets the value of ColorsID.
func (*AdPost) SetDescription ¶
SetDescription sets the value of Description.
func (*AdPost) SetImagesID ¶
SetImagesID sets the value of ImagesID.
func (*AdPost) SetPriority ¶
func (s *AdPost) SetPriority(val AdPostPriority)
SetPriority sets the value of Priority.
func (*AdPost) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) GetColorsID ¶
GetColorsID returns the value of ColorsID.
func (*AdPut) GetDescription ¶
GetDescription returns the value of Description.
func (*AdPut) GetImagesID ¶
GetImagesID returns the value of ImagesID.
func (*AdPut) GetPriority ¶
func (s *AdPut) GetPriority() OptAdPutPriority
GetPriority returns the value of Priority.
func (*AdPut) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AdPut) SetColorsID ¶
SetColorsID sets the value of ColorsID.
func (*AdPut) SetDescription ¶
SetDescription sets the value of Description.
func (*AdPut) SetImagesID ¶
SetImagesID sets the value of ImagesID.
func (*AdPut) SetPriority ¶
func (s *AdPut) SetPriority(val OptAdPutPriority)
SetPriority sets the value of Priority.
func (*AdPut) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Ads) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) GetPerPage ¶
GetPerPage returns the value of PerPage.
func (*AdsResp) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AdsResp) SetPerPage ¶
SetPerPage sets the value of PerPage.
func (*AdsResp) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 ¶
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 ¶
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Color) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ColorPost ¶
type ColorPost struct { // Название цвета. Title string `json:"title"` // HEX код цвета. Hex string `json:"hex"` }
Ref: #
func (*ColorPost) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ColorPost) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ColorPut ¶
type ColorPut struct { // Название цвета. Title OptString `json:"title"` // HEX код цвета. Hex OptString `json:"hex"` }
Ref: #
func (*ColorPut) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ColorPut) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) 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) 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) GetDetails ¶
func (s *Error) GetDetails() ErrorDetails
GetDetails returns the value of Details.
func (*Error) GetMessage ¶
GetMessage returns the value of Message.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetDetails ¶
func (s *Error) SetDetails(val ErrorDetails)
SetDetails sets the value of Details.
func (*Error) SetMessage ¶
SetMessage sets the value of Message.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorDetails ¶
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 ErrorStatusCode ¶
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Image) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ImagePost ¶
type ImagePost struct { // Название изображения. Title string `json:"title"` // URL изображения. URL url.URL `json:"url"` // Тип изображения (например, 'adv' или 'logo'). Type ImagePostType `json:"type"` }
Ref: #
func (*ImagePost) GetType ¶
func (s *ImagePost) GetType() ImagePostType
GetType returns the value of Type.
func (*ImagePost) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ImagePost) SetType ¶
func (s *ImagePost) SetType(val ImagePostType)
SetType sets the value of Type.
func (*ImagePost) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ImagePostType ¶
type ImagePostType string
Тип изображения (например, 'adv' или 'logo').
const ( ImagePostTypeAdv ImagePostType = "adv" ImagePostTypeLogo ImagePostType = "logo" )
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) GetType ¶
func (s *ImagePut) GetType() OptImagePutType
GetType returns the value of Type.
func (*ImagePut) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ImagePut) SetType ¶
func (s *ImagePut) SetType(val OptImagePutType)
SetType sets the value of Type.
func (*ImagePut) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ImagePutType ¶
type ImagePutType string
Тип изображения (например, 'adv' или 'logo').
const ( ImagePutTypeAdv ImagePutType = "adv" ImagePutTypeLogo ImagePutType = "logo" )
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').
func (ImageType) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (ImageType) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*ImageType) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ImageType) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
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) 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) 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 ¶
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) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type LogosResp ¶
type LogosResp map[string]LogosRespItem
Ref: #
func (LogosResp) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*LogosResp) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 (
LogosRespItemTypeLogo LogosRespItemType = "logo"
)
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 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 ¶
func (o OptAdPutPriority) Or(d AdPutPriority) AdPutPriority
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptImagePutType) Or(d ImagePutType) ImagePutType
Or returns value if set, or given parameter if does not.
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 ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptURI ¶
OptURI is optional url.URL.
func (OptURI) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptURI) UnmarshalJSON ¶
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) OperationID ¶
OperationID returns OpenAPI operationId.
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.
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Tg) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TgPost ¶
type TgPost struct { // Название тг. Title string `json:"title"` // URL тг. URL url.URL `json:"url"` }
Ref: #
func (*TgPost) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TgPost) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TgPut ¶
type TgPut struct { // Название ссылки. Title OptString `json:"title"` // URL ссылки. URL OptURI `json:"url"` }
Ref: #
func (*TgPut) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TgPut) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) GetPerPage ¶
GetPerPage returns the value of PerPage.
func (*TgsResp) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TgsResp) SetPerPage ¶
SetPerPage sets the value of PerPage.
func (*TgsResp) UnmarshalJSON ¶
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 ¶
func (UnimplementedHandler) V1AdminAdsGet(ctx context.Context, params V1AdminAdsGetParams) (r V1AdminAdsGetRes, _ error)
V1AdminAdsGet implements GET /v1/admin/ads operation.
Получает список всех реклам с пагинацией.
GET /v1/admin/ads
func (UnimplementedHandler) V1AdminAdsIDDelete ¶
func (UnimplementedHandler) V1AdminAdsIDDelete(ctx context.Context, params V1AdminAdsIDDeleteParams) (r V1AdminAdsIDDeleteRes, _ error)
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 ¶
func (UnimplementedHandler) V1AdminColorsGet(ctx context.Context, params V1AdminColorsGetParams) (r V1AdminColorsGetRes, _ error)
V1AdminColorsGet implements GET /v1/admin/colors operation.
Возвращает список цветов с возможностью пагинации.
GET /v1/admin/colors
func (UnimplementedHandler) V1AdminColorsIDDelete ¶
func (UnimplementedHandler) V1AdminColorsIDDelete(ctx context.Context, params V1AdminColorsIDDeleteParams) (r V1AdminColorsIDDeleteRes, _ error)
V1AdminColorsIDDelete implements DELETE /v1/admin/colors/{id} operation.
Удаляет цвет с указанным id.
DELETE /v1/admin/colors/{id}
func (UnimplementedHandler) V1AdminColorsIDPut ¶
func (UnimplementedHandler) V1AdminColorsIDPut(ctx context.Context, req *ColorPut, params V1AdminColorsIDPutParams) (r V1AdminColorsIDPutRes, _ error)
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 ¶
func (UnimplementedHandler) V1AdminImagesGet(ctx context.Context, params V1AdminImagesGetParams) (r V1AdminImagesGetRes, _ error)
V1AdminImagesGet implements GET /v1/admin/images operation.
Возвращает список изображений с поддержкой пагинации.
GET /v1/admin/images
func (UnimplementedHandler) V1AdminImagesIDDelete ¶
func (UnimplementedHandler) V1AdminImagesIDDelete(ctx context.Context, params V1AdminImagesIDDeleteParams) (r V1AdminImagesIDDeleteRes, _ error)
V1AdminImagesIDDelete implements DELETE /v1/admin/images/{id} operation.
Удаляет изображение с указанным ID.
DELETE /v1/admin/images/{id}
func (UnimplementedHandler) V1AdminImagesIDPut ¶
func (UnimplementedHandler) V1AdminImagesIDPut(ctx context.Context, req *ImagePut, params V1AdminImagesIDPutParams) (r V1AdminImagesIDPutRes, _ error)
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 ¶
func (UnimplementedHandler) V1AdminTgsGet(ctx context.Context, params V1AdminTgsGetParams) (r V1AdminTgsGetRes, _ error)
V1AdminTgsGet implements GET /v1/admin/tgs operation.
Возвращает список тг с возможностью пагинации.
GET /v1/admin/tgs
func (UnimplementedHandler) V1AdminTgsIDDelete ¶
func (UnimplementedHandler) V1AdminTgsIDDelete(ctx context.Context, params V1AdminTgsIDDeleteParams) (r V1AdminTgsIDDeleteRes, _ error)
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 ¶
func (s *V1AdminAdsIDDeleteNotFound) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminAdsIDDeleteUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminAdsIDDeleteUnauthorized from json.
func (*V1AdminAdsIDDeleteUnauthorized) Encode ¶
func (s *V1AdminAdsIDDeleteUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminAdsIDPutUnauthorized) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminAdsPostUnauthorized) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminColorsGetBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminColorsGetUnauthorized) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminColorsIDDeleteConflict) Decode(d *jx.Decoder) error
Decode decodes V1AdminColorsIDDeleteConflict from json.
func (*V1AdminColorsIDDeleteConflict) Encode ¶
func (s *V1AdminColorsIDDeleteConflict) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminColorsIDDeleteNotFound) Decode(d *jx.Decoder) error
Decode decodes V1AdminColorsIDDeleteNotFound from json.
func (*V1AdminColorsIDDeleteNotFound) Encode ¶
func (s *V1AdminColorsIDDeleteNotFound) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminColorsIDDeleteUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminColorsIDDeleteUnauthorized from json.
func (*V1AdminColorsIDDeleteUnauthorized) Encode ¶
func (s *V1AdminColorsIDDeleteUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminColorsIDPutBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminColorsIDPutConflict) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminColorsIDPutNotFound) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminColorsIDPutUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminColorsIDPutUnauthorized from json.
func (*V1AdminColorsIDPutUnauthorized) Encode ¶
func (s *V1AdminColorsIDPutUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminColorsPostBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminColorsPostUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminColorsPostUnauthorized from json.
func (*V1AdminColorsPostUnauthorized) Encode ¶
func (s *V1AdminColorsPostUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminImagesGetBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminImagesGetUnauthorized) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminImagesIDDeleteConflict) Decode(d *jx.Decoder) error
Decode decodes V1AdminImagesIDDeleteConflict from json.
func (*V1AdminImagesIDDeleteConflict) Encode ¶
func (s *V1AdminImagesIDDeleteConflict) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminImagesIDDeleteNotFound) Decode(d *jx.Decoder) error
Decode decodes V1AdminImagesIDDeleteNotFound from json.
func (*V1AdminImagesIDDeleteNotFound) Encode ¶
func (s *V1AdminImagesIDDeleteNotFound) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminImagesIDDeleteUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminImagesIDDeleteUnauthorized from json.
func (*V1AdminImagesIDDeleteUnauthorized) Encode ¶
func (s *V1AdminImagesIDDeleteUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminImagesIDPutBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminImagesIDPutConflict) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminImagesIDPutNotFound) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminImagesIDPutUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminImagesIDPutUnauthorized from json.
func (*V1AdminImagesIDPutUnauthorized) Encode ¶
func (s *V1AdminImagesIDPutUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminImagesPostBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminImagesPostUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminImagesPostUnauthorized from json.
func (*V1AdminImagesPostUnauthorized) Encode ¶
func (s *V1AdminImagesPostUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminTgsIDDeleteConflict) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminTgsIDDeleteNotFound) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminTgsIDDeleteUnauthorized) Decode(d *jx.Decoder) error
Decode decodes V1AdminTgsIDDeleteUnauthorized from json.
func (*V1AdminTgsIDDeleteUnauthorized) Encode ¶
func (s *V1AdminTgsIDDeleteUnauthorized) Encode(e *jx.Encoder)
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 ¶
func (s *V1AdminTgsIDPutUnauthorized) Decode(d *jx.Decoder) error
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 ¶
func (s *V1AdminTgsPostUnauthorized) Decode(d *jx.Decoder) error
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 ¶
func (V1AdsGetPriorityItem) AllValues() []V1AdsGetPriorityItem
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
}
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go