Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type APICronChannelsGetBadRequest
- type APICronChannelsGetForbidden
- type APICronChannelsGetInternalServerError
- func (s *APICronChannelsGetInternalServerError) Decode(d *jx.Decoder) error
- func (s *APICronChannelsGetInternalServerError) Encode(e *jx.Encoder)
- func (s *APICronChannelsGetInternalServerError) MarshalJSON() ([]byte, error)
- func (s *APICronChannelsGetInternalServerError) UnmarshalJSON(data []byte) error
- type APICronChannelsGetNotFound
- type APICronChannelsGetOK
- type APICronChannelsGetParams
- type APICronChannelsGetPlatformType
- type APICronChannelsGetRes
- type APICronChannelsGetUnauthorized
- type APICronCreatorsGetBadRequest
- type APICronCreatorsGetCreatorTypeItem
- type APICronCreatorsGetForbidden
- type APICronCreatorsGetInternalServerError
- func (s *APICronCreatorsGetInternalServerError) Decode(d *jx.Decoder) error
- func (s *APICronCreatorsGetInternalServerError) Encode(e *jx.Encoder)
- func (s *APICronCreatorsGetInternalServerError) MarshalJSON() ([]byte, error)
- func (s *APICronCreatorsGetInternalServerError) UnmarshalJSON(data []byte) error
- type APICronCreatorsGetNotFound
- type APICronCreatorsGetOK
- type APICronCreatorsGetParams
- type APICronCreatorsGetPeriod
- type APICronCreatorsGetPlatformTypeItem
- func (APICronCreatorsGetPlatformTypeItem) AllValues() []APICronCreatorsGetPlatformTypeItem
- func (s APICronCreatorsGetPlatformTypeItem) MarshalText() ([]byte, error)
- func (s *APICronCreatorsGetPlatformTypeItem) UnmarshalText(data []byte) error
- func (s APICronCreatorsGetPlatformTypeItem) Validate() error
- type APICronCreatorsGetRes
- type APICronCreatorsGetUnauthorized
- type APICronExistVideosGetBadRequest
- type APICronExistVideosGetForbidden
- type APICronExistVideosGetInternalServerError
- func (s *APICronExistVideosGetInternalServerError) Decode(d *jx.Decoder) error
- func (s *APICronExistVideosGetInternalServerError) Encode(e *jx.Encoder)
- func (s *APICronExistVideosGetInternalServerError) MarshalJSON() ([]byte, error)
- func (s *APICronExistVideosGetInternalServerError) UnmarshalJSON(data []byte) error
- type APICronExistVideosGetNotFound
- type APICronExistVideosGetOK
- type APICronExistVideosGetParams
- type APICronExistVideosGetPeriod
- type APICronExistVideosGetRes
- type APICronExistVideosGetUnauthorized
- type APICronSearchVideosGetBadRequest
- type APICronSearchVideosGetForbidden
- type APICronSearchVideosGetInternalServerError
- func (s *APICronSearchVideosGetInternalServerError) Decode(d *jx.Decoder) error
- func (s *APICronSearchVideosGetInternalServerError) Encode(e *jx.Encoder)
- func (s *APICronSearchVideosGetInternalServerError) MarshalJSON() ([]byte, error)
- func (s *APICronSearchVideosGetInternalServerError) UnmarshalJSON(data []byte) error
- type APICronSearchVideosGetNotFound
- type APICronSearchVideosGetOK
- type APICronSearchVideosGetParams
- type APICronSearchVideosGetPlatformTypeItem
- func (APICronSearchVideosGetPlatformTypeItem) AllValues() []APICronSearchVideosGetPlatformTypeItem
- func (s APICronSearchVideosGetPlatformTypeItem) MarshalText() ([]byte, error)
- func (s *APICronSearchVideosGetPlatformTypeItem) UnmarshalText(data []byte) error
- func (s APICronSearchVideosGetPlatformTypeItem) Validate() error
- type APICronSearchVideosGetRes
- type APICronSearchVideosGetUnauthorized
- type APICronSearchVideosGetVideoType
- type APIPingGetOK
- type Client
- func (c *Client) APICronChannelsGet(ctx context.Context, params APICronChannelsGetParams) (APICronChannelsGetRes, error)
- func (c *Client) APICronCreatorsGet(ctx context.Context, params APICronCreatorsGetParams) (APICronCreatorsGetRes, error)
- func (c *Client) APICronExistVideosGet(ctx context.Context, params APICronExistVideosGetParams) (APICronExistVideosGetRes, error)
- func (c *Client) APICronSearchVideosGet(ctx context.Context, params APICronSearchVideosGetParams) (APICronSearchVideosGetRes, error)
- func (c *Client) APIPingGet(ctx context.Context) (*APIPingGetOK, error)
- func (c *Client) ExistVideos(ctx context.Context, request *ExistVideosReq) (ExistVideosRes, error)
- func (c *Client) Ping(ctx context.Context) (*PingOK, error)
- func (c *Client) SearchVideos(ctx context.Context, request *SearchVideosReq) (SearchVideosRes, error)
- type ClientOption
- type CronResponse
- type ErrorHandler
- type ExistVideosBadRequest
- type ExistVideosForbidden
- type ExistVideosInternalServerError
- type ExistVideosNotFound
- type ExistVideosOK
- type ExistVideosReq
- func (s *ExistVideosReq) Decode(d *jx.Decoder) error
- func (s *ExistVideosReq) Encode(e *jx.Encoder)
- func (s *ExistVideosReq) GetPeriod() OptExistVideosReqPeriod
- func (s *ExistVideosReq) MarshalJSON() ([]byte, error)
- func (s *ExistVideosReq) SetPeriod(val OptExistVideosReqPeriod)
- func (s *ExistVideosReq) UnmarshalJSON(data []byte) error
- func (s *ExistVideosReq) Validate() error
- type ExistVideosReqPeriod
- func (ExistVideosReqPeriod) AllValues() []ExistVideosReqPeriod
- func (s *ExistVideosReqPeriod) Decode(d *jx.Decoder) error
- func (s ExistVideosReqPeriod) Encode(e *jx.Encoder)
- func (s ExistVideosReqPeriod) MarshalJSON() ([]byte, error)
- func (s ExistVideosReqPeriod) MarshalText() ([]byte, error)
- func (s *ExistVideosReqPeriod) UnmarshalJSON(data []byte) error
- func (s *ExistVideosReqPeriod) UnmarshalText(data []byte) error
- func (s ExistVideosReqPeriod) Validate() error
- type ExistVideosRes
- type ExistVideosUnauthorized
- type Handler
- type Invoker
- type Labeler
- type Middleware
- type OptExistVideosReqPeriod
- func (o *OptExistVideosReqPeriod) Decode(d *jx.Decoder) error
- func (o OptExistVideosReqPeriod) Encode(e *jx.Encoder)
- func (o OptExistVideosReqPeriod) Get() (v ExistVideosReqPeriod, ok bool)
- func (o OptExistVideosReqPeriod) IsSet() bool
- func (s OptExistVideosReqPeriod) MarshalJSON() ([]byte, error)
- func (o OptExistVideosReqPeriod) Or(d ExistVideosReqPeriod) ExistVideosReqPeriod
- func (o *OptExistVideosReqPeriod) Reset()
- func (o *OptExistVideosReqPeriod) SetTo(v ExistVideosReqPeriod)
- func (s *OptExistVideosReqPeriod) UnmarshalJSON(data []byte) error
- type OptSearchVideosReqVideoType
- func (o *OptSearchVideosReqVideoType) Decode(d *jx.Decoder) error
- func (o OptSearchVideosReqVideoType) Encode(e *jx.Encoder)
- func (o OptSearchVideosReqVideoType) Get() (v SearchVideosReqVideoType, ok bool)
- func (o OptSearchVideosReqVideoType) IsSet() bool
- func (s OptSearchVideosReqVideoType) MarshalJSON() ([]byte, error)
- func (o OptSearchVideosReqVideoType) Or(d SearchVideosReqVideoType) SearchVideosReqVideoType
- func (o *OptSearchVideosReqVideoType) Reset()
- func (o *OptSearchVideosReqVideoType) SetTo(v SearchVideosReqVideoType)
- func (s *OptSearchVideosReqVideoType) 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 Option
- type PingOK
- type Route
- type SearchVideosBadRequest
- type SearchVideosForbidden
- type SearchVideosInternalServerError
- type SearchVideosNotFound
- type SearchVideosOK
- type SearchVideosReq
- func (s *SearchVideosReq) Decode(d *jx.Decoder) error
- func (s *SearchVideosReq) Encode(e *jx.Encoder)
- func (s *SearchVideosReq) GetPlatformType() []SearchVideosReqPlatformTypeItem
- func (s *SearchVideosReq) GetVideoType() OptSearchVideosReqVideoType
- func (s *SearchVideosReq) MarshalJSON() ([]byte, error)
- func (s *SearchVideosReq) SetPlatformType(val []SearchVideosReqPlatformTypeItem)
- func (s *SearchVideosReq) SetVideoType(val OptSearchVideosReqVideoType)
- func (s *SearchVideosReq) UnmarshalJSON(data []byte) error
- func (s *SearchVideosReq) Validate() error
- type SearchVideosReqPlatformTypeItem
- func (SearchVideosReqPlatformTypeItem) AllValues() []SearchVideosReqPlatformTypeItem
- func (s *SearchVideosReqPlatformTypeItem) Decode(d *jx.Decoder) error
- func (s SearchVideosReqPlatformTypeItem) Encode(e *jx.Encoder)
- func (s SearchVideosReqPlatformTypeItem) MarshalJSON() ([]byte, error)
- func (s SearchVideosReqPlatformTypeItem) MarshalText() ([]byte, error)
- func (s *SearchVideosReqPlatformTypeItem) UnmarshalJSON(data []byte) error
- func (s *SearchVideosReqPlatformTypeItem) UnmarshalText(data []byte) error
- func (s SearchVideosReqPlatformTypeItem) Validate() error
- type SearchVideosReqVideoType
- func (SearchVideosReqVideoType) AllValues() []SearchVideosReqVideoType
- func (s *SearchVideosReqVideoType) Decode(d *jx.Decoder) error
- func (s SearchVideosReqVideoType) Encode(e *jx.Encoder)
- func (s SearchVideosReqVideoType) MarshalJSON() ([]byte, error)
- func (s SearchVideosReqVideoType) MarshalText() ([]byte, error)
- func (s *SearchVideosReqVideoType) UnmarshalJSON(data []byte) error
- func (s *SearchVideosReqVideoType) UnmarshalText(data []byte) error
- func (s SearchVideosReqVideoType) Validate() error
- type SearchVideosRes
- type SearchVideosUnauthorized
- 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 UnimplementedHandler
- func (UnimplementedHandler) APICronChannelsGet(ctx context.Context, params APICronChannelsGetParams) (r APICronChannelsGetRes, _ error)
- func (UnimplementedHandler) APICronCreatorsGet(ctx context.Context, params APICronCreatorsGetParams) (r APICronCreatorsGetRes, _ error)
- func (UnimplementedHandler) APICronExistVideosGet(ctx context.Context, params APICronExistVideosGetParams) (r APICronExistVideosGetRes, _ error)
- func (UnimplementedHandler) APICronSearchVideosGet(ctx context.Context, params APICronSearchVideosGetParams) (r APICronSearchVideosGetRes, _ error)
- func (UnimplementedHandler) APIPingGet(ctx context.Context) (r *APIPingGetOK, _ error)
- func (UnimplementedHandler) ExistVideos(ctx context.Context, req *ExistVideosReq) (r ExistVideosRes, _ error)
- func (UnimplementedHandler) Ping(ctx context.Context) (r *PingOK, _ error)
- func (UnimplementedHandler) SearchVideos(ctx context.Context, req *SearchVideosReq) (r SearchVideosRes, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APICronChannelsGetBadRequest ¶
type APICronChannelsGetBadRequest CronResponse
func (*APICronChannelsGetBadRequest) Decode ¶
func (s *APICronChannelsGetBadRequest) Decode(d *jx.Decoder) error
Decode decodes APICronChannelsGetBadRequest from json.
func (*APICronChannelsGetBadRequest) Encode ¶
func (s *APICronChannelsGetBadRequest) Encode(e *jx.Encoder)
Encode encodes APICronChannelsGetBadRequest as json.
func (*APICronChannelsGetBadRequest) MarshalJSON ¶
func (s *APICronChannelsGetBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronChannelsGetBadRequest) UnmarshalJSON ¶
func (s *APICronChannelsGetBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronChannelsGetForbidden ¶
type APICronChannelsGetForbidden CronResponse
func (*APICronChannelsGetForbidden) Decode ¶
func (s *APICronChannelsGetForbidden) Decode(d *jx.Decoder) error
Decode decodes APICronChannelsGetForbidden from json.
func (*APICronChannelsGetForbidden) Encode ¶
func (s *APICronChannelsGetForbidden) Encode(e *jx.Encoder)
Encode encodes APICronChannelsGetForbidden as json.
func (*APICronChannelsGetForbidden) MarshalJSON ¶
func (s *APICronChannelsGetForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronChannelsGetForbidden) UnmarshalJSON ¶
func (s *APICronChannelsGetForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronChannelsGetInternalServerError ¶
type APICronChannelsGetInternalServerError CronResponse
func (*APICronChannelsGetInternalServerError) Decode ¶
func (s *APICronChannelsGetInternalServerError) Decode(d *jx.Decoder) error
Decode decodes APICronChannelsGetInternalServerError from json.
func (*APICronChannelsGetInternalServerError) Encode ¶
func (s *APICronChannelsGetInternalServerError) Encode(e *jx.Encoder)
Encode encodes APICronChannelsGetInternalServerError as json.
func (*APICronChannelsGetInternalServerError) MarshalJSON ¶
func (s *APICronChannelsGetInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronChannelsGetInternalServerError) UnmarshalJSON ¶
func (s *APICronChannelsGetInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronChannelsGetNotFound ¶
type APICronChannelsGetNotFound CronResponse
func (*APICronChannelsGetNotFound) Decode ¶
func (s *APICronChannelsGetNotFound) Decode(d *jx.Decoder) error
Decode decodes APICronChannelsGetNotFound from json.
func (*APICronChannelsGetNotFound) Encode ¶
func (s *APICronChannelsGetNotFound) Encode(e *jx.Encoder)
Encode encodes APICronChannelsGetNotFound as json.
func (*APICronChannelsGetNotFound) MarshalJSON ¶
func (s *APICronChannelsGetNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronChannelsGetNotFound) UnmarshalJSON ¶
func (s *APICronChannelsGetNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronChannelsGetOK ¶
type APICronChannelsGetOK CronResponse
func (*APICronChannelsGetOK) Decode ¶
func (s *APICronChannelsGetOK) Decode(d *jx.Decoder) error
Decode decodes APICronChannelsGetOK from json.
func (*APICronChannelsGetOK) Encode ¶
func (s *APICronChannelsGetOK) Encode(e *jx.Encoder)
Encode encodes APICronChannelsGetOK as json.
func (*APICronChannelsGetOK) MarshalJSON ¶
func (s *APICronChannelsGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronChannelsGetOK) UnmarshalJSON ¶
func (s *APICronChannelsGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronChannelsGetParams ¶
type APICronChannelsGetParams struct {
PlatformType APICronChannelsGetPlatformType
}
APICronChannelsGetParams is parameters of GET /api/cron/channels operation.
type APICronChannelsGetPlatformType ¶
type APICronChannelsGetPlatformType string
const ( APICronChannelsGetPlatformTypeYoutube APICronChannelsGetPlatformType = "youtube" APICronChannelsGetPlatformTypeTwitch APICronChannelsGetPlatformType = "twitch" APICronChannelsGetPlatformTypeTwitcasting APICronChannelsGetPlatformType = "twitcasting" APICronChannelsGetPlatformTypeNiconico APICronChannelsGetPlatformType = "niconico" )
func (APICronChannelsGetPlatformType) AllValues ¶
func (APICronChannelsGetPlatformType) AllValues() []APICronChannelsGetPlatformType
AllValues returns all APICronChannelsGetPlatformType values.
func (APICronChannelsGetPlatformType) MarshalText ¶
func (s APICronChannelsGetPlatformType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*APICronChannelsGetPlatformType) UnmarshalText ¶
func (s *APICronChannelsGetPlatformType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (APICronChannelsGetPlatformType) Validate ¶
func (s APICronChannelsGetPlatformType) Validate() error
type APICronChannelsGetRes ¶
type APICronChannelsGetRes interface {
// contains filtered or unexported methods
}
type APICronChannelsGetUnauthorized ¶
type APICronChannelsGetUnauthorized CronResponse
func (*APICronChannelsGetUnauthorized) Decode ¶
func (s *APICronChannelsGetUnauthorized) Decode(d *jx.Decoder) error
Decode decodes APICronChannelsGetUnauthorized from json.
func (*APICronChannelsGetUnauthorized) Encode ¶
func (s *APICronChannelsGetUnauthorized) Encode(e *jx.Encoder)
Encode encodes APICronChannelsGetUnauthorized as json.
func (*APICronChannelsGetUnauthorized) MarshalJSON ¶
func (s *APICronChannelsGetUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronChannelsGetUnauthorized) UnmarshalJSON ¶
func (s *APICronChannelsGetUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronCreatorsGetBadRequest ¶
type APICronCreatorsGetBadRequest CronResponse
func (*APICronCreatorsGetBadRequest) Decode ¶
func (s *APICronCreatorsGetBadRequest) Decode(d *jx.Decoder) error
Decode decodes APICronCreatorsGetBadRequest from json.
func (*APICronCreatorsGetBadRequest) Encode ¶
func (s *APICronCreatorsGetBadRequest) Encode(e *jx.Encoder)
Encode encodes APICronCreatorsGetBadRequest as json.
func (*APICronCreatorsGetBadRequest) MarshalJSON ¶
func (s *APICronCreatorsGetBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronCreatorsGetBadRequest) UnmarshalJSON ¶
func (s *APICronCreatorsGetBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronCreatorsGetCreatorTypeItem ¶
type APICronCreatorsGetCreatorTypeItem string
const ( APICronCreatorsGetCreatorTypeItemVspo APICronCreatorsGetCreatorTypeItem = "vspo" APICronCreatorsGetCreatorTypeItemGeneral APICronCreatorsGetCreatorTypeItem = "general" )
func (APICronCreatorsGetCreatorTypeItem) AllValues ¶
func (APICronCreatorsGetCreatorTypeItem) AllValues() []APICronCreatorsGetCreatorTypeItem
AllValues returns all APICronCreatorsGetCreatorTypeItem values.
func (APICronCreatorsGetCreatorTypeItem) MarshalText ¶
func (s APICronCreatorsGetCreatorTypeItem) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*APICronCreatorsGetCreatorTypeItem) UnmarshalText ¶
func (s *APICronCreatorsGetCreatorTypeItem) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (APICronCreatorsGetCreatorTypeItem) Validate ¶
func (s APICronCreatorsGetCreatorTypeItem) Validate() error
type APICronCreatorsGetForbidden ¶
type APICronCreatorsGetForbidden CronResponse
func (*APICronCreatorsGetForbidden) Decode ¶
func (s *APICronCreatorsGetForbidden) Decode(d *jx.Decoder) error
Decode decodes APICronCreatorsGetForbidden from json.
func (*APICronCreatorsGetForbidden) Encode ¶
func (s *APICronCreatorsGetForbidden) Encode(e *jx.Encoder)
Encode encodes APICronCreatorsGetForbidden as json.
func (*APICronCreatorsGetForbidden) MarshalJSON ¶
func (s *APICronCreatorsGetForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronCreatorsGetForbidden) UnmarshalJSON ¶
func (s *APICronCreatorsGetForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronCreatorsGetInternalServerError ¶
type APICronCreatorsGetInternalServerError CronResponse
func (*APICronCreatorsGetInternalServerError) Decode ¶
func (s *APICronCreatorsGetInternalServerError) Decode(d *jx.Decoder) error
Decode decodes APICronCreatorsGetInternalServerError from json.
func (*APICronCreatorsGetInternalServerError) Encode ¶
func (s *APICronCreatorsGetInternalServerError) Encode(e *jx.Encoder)
Encode encodes APICronCreatorsGetInternalServerError as json.
func (*APICronCreatorsGetInternalServerError) MarshalJSON ¶
func (s *APICronCreatorsGetInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronCreatorsGetInternalServerError) UnmarshalJSON ¶
func (s *APICronCreatorsGetInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronCreatorsGetNotFound ¶
type APICronCreatorsGetNotFound CronResponse
func (*APICronCreatorsGetNotFound) Decode ¶
func (s *APICronCreatorsGetNotFound) Decode(d *jx.Decoder) error
Decode decodes APICronCreatorsGetNotFound from json.
func (*APICronCreatorsGetNotFound) Encode ¶
func (s *APICronCreatorsGetNotFound) Encode(e *jx.Encoder)
Encode encodes APICronCreatorsGetNotFound as json.
func (*APICronCreatorsGetNotFound) MarshalJSON ¶
func (s *APICronCreatorsGetNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronCreatorsGetNotFound) UnmarshalJSON ¶
func (s *APICronCreatorsGetNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronCreatorsGetOK ¶
type APICronCreatorsGetOK CronResponse
func (*APICronCreatorsGetOK) Decode ¶
func (s *APICronCreatorsGetOK) Decode(d *jx.Decoder) error
Decode decodes APICronCreatorsGetOK from json.
func (*APICronCreatorsGetOK) Encode ¶
func (s *APICronCreatorsGetOK) Encode(e *jx.Encoder)
Encode encodes APICronCreatorsGetOK as json.
func (*APICronCreatorsGetOK) MarshalJSON ¶
func (s *APICronCreatorsGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronCreatorsGetOK) UnmarshalJSON ¶
func (s *APICronCreatorsGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronCreatorsGetParams ¶
type APICronCreatorsGetParams struct { // Comma-separated list of video platform types. PlatformType []APICronCreatorsGetPlatformTypeItem // Period for performing updates. Period APICronCreatorsGetPeriod // Comma-separated list of creator types. CreatorType []APICronCreatorsGetCreatorTypeItem }
APICronCreatorsGetParams is parameters of GET /api/cron/creators operation.
type APICronCreatorsGetPeriod ¶
type APICronCreatorsGetPeriod string
const ( APICronCreatorsGetPeriodDay APICronCreatorsGetPeriod = "day" APICronCreatorsGetPeriodWeek APICronCreatorsGetPeriod = "week" APICronCreatorsGetPeriodMonth APICronCreatorsGetPeriod = "month" APICronCreatorsGetPeriodYear APICronCreatorsGetPeriod = "year" )
func (APICronCreatorsGetPeriod) AllValues ¶
func (APICronCreatorsGetPeriod) AllValues() []APICronCreatorsGetPeriod
AllValues returns all APICronCreatorsGetPeriod values.
func (APICronCreatorsGetPeriod) MarshalText ¶
func (s APICronCreatorsGetPeriod) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*APICronCreatorsGetPeriod) UnmarshalText ¶
func (s *APICronCreatorsGetPeriod) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (APICronCreatorsGetPeriod) Validate ¶
func (s APICronCreatorsGetPeriod) Validate() error
type APICronCreatorsGetPlatformTypeItem ¶
type APICronCreatorsGetPlatformTypeItem string
const ( APICronCreatorsGetPlatformTypeItemYoutube APICronCreatorsGetPlatformTypeItem = "youtube" APICronCreatorsGetPlatformTypeItemTwitch APICronCreatorsGetPlatformTypeItem = "twitch" APICronCreatorsGetPlatformTypeItemTwitcasting APICronCreatorsGetPlatformTypeItem = "twitcasting" APICronCreatorsGetPlatformTypeItemNiconico APICronCreatorsGetPlatformTypeItem = "niconico" )
func (APICronCreatorsGetPlatformTypeItem) AllValues ¶
func (APICronCreatorsGetPlatformTypeItem) AllValues() []APICronCreatorsGetPlatformTypeItem
AllValues returns all APICronCreatorsGetPlatformTypeItem values.
func (APICronCreatorsGetPlatformTypeItem) MarshalText ¶
func (s APICronCreatorsGetPlatformTypeItem) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*APICronCreatorsGetPlatformTypeItem) UnmarshalText ¶
func (s *APICronCreatorsGetPlatformTypeItem) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (APICronCreatorsGetPlatformTypeItem) Validate ¶
func (s APICronCreatorsGetPlatformTypeItem) Validate() error
type APICronCreatorsGetRes ¶
type APICronCreatorsGetRes interface {
// contains filtered or unexported methods
}
type APICronCreatorsGetUnauthorized ¶
type APICronCreatorsGetUnauthorized CronResponse
func (*APICronCreatorsGetUnauthorized) Decode ¶
func (s *APICronCreatorsGetUnauthorized) Decode(d *jx.Decoder) error
Decode decodes APICronCreatorsGetUnauthorized from json.
func (*APICronCreatorsGetUnauthorized) Encode ¶
func (s *APICronCreatorsGetUnauthorized) Encode(e *jx.Encoder)
Encode encodes APICronCreatorsGetUnauthorized as json.
func (*APICronCreatorsGetUnauthorized) MarshalJSON ¶
func (s *APICronCreatorsGetUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronCreatorsGetUnauthorized) UnmarshalJSON ¶
func (s *APICronCreatorsGetUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronExistVideosGetBadRequest ¶
type APICronExistVideosGetBadRequest CronResponse
func (*APICronExistVideosGetBadRequest) Decode ¶
func (s *APICronExistVideosGetBadRequest) Decode(d *jx.Decoder) error
Decode decodes APICronExistVideosGetBadRequest from json.
func (*APICronExistVideosGetBadRequest) Encode ¶
func (s *APICronExistVideosGetBadRequest) Encode(e *jx.Encoder)
Encode encodes APICronExistVideosGetBadRequest as json.
func (*APICronExistVideosGetBadRequest) MarshalJSON ¶
func (s *APICronExistVideosGetBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronExistVideosGetBadRequest) UnmarshalJSON ¶
func (s *APICronExistVideosGetBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronExistVideosGetForbidden ¶
type APICronExistVideosGetForbidden CronResponse
func (*APICronExistVideosGetForbidden) Decode ¶
func (s *APICronExistVideosGetForbidden) Decode(d *jx.Decoder) error
Decode decodes APICronExistVideosGetForbidden from json.
func (*APICronExistVideosGetForbidden) Encode ¶
func (s *APICronExistVideosGetForbidden) Encode(e *jx.Encoder)
Encode encodes APICronExistVideosGetForbidden as json.
func (*APICronExistVideosGetForbidden) MarshalJSON ¶
func (s *APICronExistVideosGetForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronExistVideosGetForbidden) UnmarshalJSON ¶
func (s *APICronExistVideosGetForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronExistVideosGetInternalServerError ¶
type APICronExistVideosGetInternalServerError CronResponse
func (*APICronExistVideosGetInternalServerError) Decode ¶
func (s *APICronExistVideosGetInternalServerError) Decode(d *jx.Decoder) error
Decode decodes APICronExistVideosGetInternalServerError from json.
func (*APICronExistVideosGetInternalServerError) Encode ¶
func (s *APICronExistVideosGetInternalServerError) Encode(e *jx.Encoder)
Encode encodes APICronExistVideosGetInternalServerError as json.
func (*APICronExistVideosGetInternalServerError) MarshalJSON ¶
func (s *APICronExistVideosGetInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronExistVideosGetInternalServerError) UnmarshalJSON ¶
func (s *APICronExistVideosGetInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronExistVideosGetNotFound ¶
type APICronExistVideosGetNotFound CronResponse
func (*APICronExistVideosGetNotFound) Decode ¶
func (s *APICronExistVideosGetNotFound) Decode(d *jx.Decoder) error
Decode decodes APICronExistVideosGetNotFound from json.
func (*APICronExistVideosGetNotFound) Encode ¶
func (s *APICronExistVideosGetNotFound) Encode(e *jx.Encoder)
Encode encodes APICronExistVideosGetNotFound as json.
func (*APICronExistVideosGetNotFound) MarshalJSON ¶
func (s *APICronExistVideosGetNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronExistVideosGetNotFound) UnmarshalJSON ¶
func (s *APICronExistVideosGetNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronExistVideosGetOK ¶
type APICronExistVideosGetOK CronResponse
func (*APICronExistVideosGetOK) Decode ¶
func (s *APICronExistVideosGetOK) Decode(d *jx.Decoder) error
Decode decodes APICronExistVideosGetOK from json.
func (*APICronExistVideosGetOK) Encode ¶
func (s *APICronExistVideosGetOK) Encode(e *jx.Encoder)
Encode encodes APICronExistVideosGetOK as json.
func (*APICronExistVideosGetOK) MarshalJSON ¶
func (s *APICronExistVideosGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronExistVideosGetOK) UnmarshalJSON ¶
func (s *APICronExistVideosGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronExistVideosGetParams ¶
type APICronExistVideosGetParams struct { // Period for performing updates. Period APICronExistVideosGetPeriod }
APICronExistVideosGetParams is parameters of GET /api/cron/exist_videos operation.
type APICronExistVideosGetPeriod ¶
type APICronExistVideosGetPeriod string
const ( APICronExistVideosGetPeriodDay APICronExistVideosGetPeriod = "day" APICronExistVideosGetPeriodMonth APICronExistVideosGetPeriod = "month" APICronExistVideosGetPeriodWeek APICronExistVideosGetPeriod = "week" )
func (APICronExistVideosGetPeriod) AllValues ¶
func (APICronExistVideosGetPeriod) AllValues() []APICronExistVideosGetPeriod
AllValues returns all APICronExistVideosGetPeriod values.
func (APICronExistVideosGetPeriod) MarshalText ¶
func (s APICronExistVideosGetPeriod) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*APICronExistVideosGetPeriod) UnmarshalText ¶
func (s *APICronExistVideosGetPeriod) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (APICronExistVideosGetPeriod) Validate ¶
func (s APICronExistVideosGetPeriod) Validate() error
type APICronExistVideosGetRes ¶
type APICronExistVideosGetRes interface {
// contains filtered or unexported methods
}
type APICronExistVideosGetUnauthorized ¶
type APICronExistVideosGetUnauthorized CronResponse
func (*APICronExistVideosGetUnauthorized) Decode ¶
func (s *APICronExistVideosGetUnauthorized) Decode(d *jx.Decoder) error
Decode decodes APICronExistVideosGetUnauthorized from json.
func (*APICronExistVideosGetUnauthorized) Encode ¶
func (s *APICronExistVideosGetUnauthorized) Encode(e *jx.Encoder)
Encode encodes APICronExistVideosGetUnauthorized as json.
func (*APICronExistVideosGetUnauthorized) MarshalJSON ¶
func (s *APICronExistVideosGetUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronExistVideosGetUnauthorized) UnmarshalJSON ¶
func (s *APICronExistVideosGetUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronSearchVideosGetBadRequest ¶
type APICronSearchVideosGetBadRequest CronResponse
func (*APICronSearchVideosGetBadRequest) Decode ¶
func (s *APICronSearchVideosGetBadRequest) Decode(d *jx.Decoder) error
Decode decodes APICronSearchVideosGetBadRequest from json.
func (*APICronSearchVideosGetBadRequest) Encode ¶
func (s *APICronSearchVideosGetBadRequest) Encode(e *jx.Encoder)
Encode encodes APICronSearchVideosGetBadRequest as json.
func (*APICronSearchVideosGetBadRequest) MarshalJSON ¶
func (s *APICronSearchVideosGetBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronSearchVideosGetBadRequest) UnmarshalJSON ¶
func (s *APICronSearchVideosGetBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronSearchVideosGetForbidden ¶
type APICronSearchVideosGetForbidden CronResponse
func (*APICronSearchVideosGetForbidden) Decode ¶
func (s *APICronSearchVideosGetForbidden) Decode(d *jx.Decoder) error
Decode decodes APICronSearchVideosGetForbidden from json.
func (*APICronSearchVideosGetForbidden) Encode ¶
func (s *APICronSearchVideosGetForbidden) Encode(e *jx.Encoder)
Encode encodes APICronSearchVideosGetForbidden as json.
func (*APICronSearchVideosGetForbidden) MarshalJSON ¶
func (s *APICronSearchVideosGetForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronSearchVideosGetForbidden) UnmarshalJSON ¶
func (s *APICronSearchVideosGetForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronSearchVideosGetInternalServerError ¶
type APICronSearchVideosGetInternalServerError CronResponse
func (*APICronSearchVideosGetInternalServerError) Decode ¶
func (s *APICronSearchVideosGetInternalServerError) Decode(d *jx.Decoder) error
Decode decodes APICronSearchVideosGetInternalServerError from json.
func (*APICronSearchVideosGetInternalServerError) Encode ¶
func (s *APICronSearchVideosGetInternalServerError) Encode(e *jx.Encoder)
Encode encodes APICronSearchVideosGetInternalServerError as json.
func (*APICronSearchVideosGetInternalServerError) MarshalJSON ¶
func (s *APICronSearchVideosGetInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronSearchVideosGetInternalServerError) UnmarshalJSON ¶
func (s *APICronSearchVideosGetInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronSearchVideosGetNotFound ¶
type APICronSearchVideosGetNotFound CronResponse
func (*APICronSearchVideosGetNotFound) Decode ¶
func (s *APICronSearchVideosGetNotFound) Decode(d *jx.Decoder) error
Decode decodes APICronSearchVideosGetNotFound from json.
func (*APICronSearchVideosGetNotFound) Encode ¶
func (s *APICronSearchVideosGetNotFound) Encode(e *jx.Encoder)
Encode encodes APICronSearchVideosGetNotFound as json.
func (*APICronSearchVideosGetNotFound) MarshalJSON ¶
func (s *APICronSearchVideosGetNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronSearchVideosGetNotFound) UnmarshalJSON ¶
func (s *APICronSearchVideosGetNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronSearchVideosGetOK ¶
type APICronSearchVideosGetOK CronResponse
func (*APICronSearchVideosGetOK) Decode ¶
func (s *APICronSearchVideosGetOK) Decode(d *jx.Decoder) error
Decode decodes APICronSearchVideosGetOK from json.
func (*APICronSearchVideosGetOK) Encode ¶
func (s *APICronSearchVideosGetOK) Encode(e *jx.Encoder)
Encode encodes APICronSearchVideosGetOK as json.
func (*APICronSearchVideosGetOK) MarshalJSON ¶
func (s *APICronSearchVideosGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronSearchVideosGetOK) UnmarshalJSON ¶
func (s *APICronSearchVideosGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronSearchVideosGetParams ¶
type APICronSearchVideosGetParams struct { // Comma-separated list of video platform types. PlatformType []APICronSearchVideosGetPlatformTypeItem // Type of the cron. VideoType APICronSearchVideosGetVideoType }
APICronSearchVideosGetParams is parameters of GET /api/cron/search_videos operation.
type APICronSearchVideosGetPlatformTypeItem ¶
type APICronSearchVideosGetPlatformTypeItem string
const ( APICronSearchVideosGetPlatformTypeItemYoutube APICronSearchVideosGetPlatformTypeItem = "youtube" APICronSearchVideosGetPlatformTypeItemTwitch APICronSearchVideosGetPlatformTypeItem = "twitch" APICronSearchVideosGetPlatformTypeItemTwitcasting APICronSearchVideosGetPlatformTypeItem = "twitcasting" APICronSearchVideosGetPlatformTypeItemNiconico APICronSearchVideosGetPlatformTypeItem = "niconico" )
func (APICronSearchVideosGetPlatformTypeItem) AllValues ¶
func (APICronSearchVideosGetPlatformTypeItem) AllValues() []APICronSearchVideosGetPlatformTypeItem
AllValues returns all APICronSearchVideosGetPlatformTypeItem values.
func (APICronSearchVideosGetPlatformTypeItem) MarshalText ¶
func (s APICronSearchVideosGetPlatformTypeItem) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*APICronSearchVideosGetPlatformTypeItem) UnmarshalText ¶
func (s *APICronSearchVideosGetPlatformTypeItem) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (APICronSearchVideosGetPlatformTypeItem) Validate ¶
func (s APICronSearchVideosGetPlatformTypeItem) Validate() error
type APICronSearchVideosGetRes ¶
type APICronSearchVideosGetRes interface {
// contains filtered or unexported methods
}
type APICronSearchVideosGetUnauthorized ¶
type APICronSearchVideosGetUnauthorized CronResponse
func (*APICronSearchVideosGetUnauthorized) Decode ¶
func (s *APICronSearchVideosGetUnauthorized) Decode(d *jx.Decoder) error
Decode decodes APICronSearchVideosGetUnauthorized from json.
func (*APICronSearchVideosGetUnauthorized) Encode ¶
func (s *APICronSearchVideosGetUnauthorized) Encode(e *jx.Encoder)
Encode encodes APICronSearchVideosGetUnauthorized as json.
func (*APICronSearchVideosGetUnauthorized) MarshalJSON ¶
func (s *APICronSearchVideosGetUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APICronSearchVideosGetUnauthorized) UnmarshalJSON ¶
func (s *APICronSearchVideosGetUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type APICronSearchVideosGetVideoType ¶
type APICronSearchVideosGetVideoType string
const ( APICronSearchVideosGetVideoTypeVspoStream APICronSearchVideosGetVideoType = "vspo_stream" APICronSearchVideosGetVideoTypeClip APICronSearchVideosGetVideoType = "clip" APICronSearchVideosGetVideoTypeFreechat APICronSearchVideosGetVideoType = "freechat" )
func (APICronSearchVideosGetVideoType) AllValues ¶
func (APICronSearchVideosGetVideoType) AllValues() []APICronSearchVideosGetVideoType
AllValues returns all APICronSearchVideosGetVideoType values.
func (APICronSearchVideosGetVideoType) MarshalText ¶
func (s APICronSearchVideosGetVideoType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*APICronSearchVideosGetVideoType) UnmarshalText ¶
func (s *APICronSearchVideosGetVideoType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (APICronSearchVideosGetVideoType) Validate ¶
func (s APICronSearchVideosGetVideoType) Validate() error
type APIPingGetOK ¶
type APIPingGetOK struct {
Message OptString `json:"message"`
}
func (*APIPingGetOK) Decode ¶
func (s *APIPingGetOK) Decode(d *jx.Decoder) error
Decode decodes APIPingGetOK from json.
func (*APIPingGetOK) Encode ¶
func (s *APIPingGetOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*APIPingGetOK) GetMessage ¶
func (s *APIPingGetOK) GetMessage() OptString
GetMessage returns the value of Message.
func (*APIPingGetOK) MarshalJSON ¶
func (s *APIPingGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*APIPingGetOK) SetMessage ¶
func (s *APIPingGetOK) SetMessage(val OptString)
SetMessage sets the value of Message.
func (*APIPingGetOK) UnmarshalJSON ¶
func (s *APIPingGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) APICronChannelsGet ¶
func (c *Client) APICronChannelsGet(ctx context.Context, params APICronChannelsGetParams) (APICronChannelsGetRes, error)
APICronChannelsGet invokes GET /api/cron/channels operation.
Update channels.
GET /api/cron/channels
func (*Client) APICronCreatorsGet ¶
func (c *Client) APICronCreatorsGet(ctx context.Context, params APICronCreatorsGetParams) (APICronCreatorsGetRes, error)
APICronCreatorsGet invokes GET /api/cron/creators operation.
Creates creators by fetching from Youtube using provided Channel IDs.
GET /api/cron/creators
func (*Client) APICronExistVideosGet ¶
func (c *Client) APICronExistVideosGet(ctx context.Context, params APICronExistVideosGetParams) (APICronExistVideosGetRes, error)
APICronExistVideosGet invokes GET /api/cron/exist_videos operation.
Update exist videos.
GET /api/cron/exist_videos
func (*Client) APICronSearchVideosGet ¶
func (c *Client) APICronSearchVideosGet(ctx context.Context, params APICronSearchVideosGetParams) (APICronSearchVideosGetRes, error)
APICronSearchVideosGet invokes GET /api/cron/search_videos operation.
Update videos related to a specific creator based on provided.
GET /api/cron/search_videos
func (*Client) APIPingGet ¶
func (c *Client) APIPingGet(ctx context.Context) (*APIPingGetOK, error)
APIPingGet invokes GET /api/ping operation.
Returns a 200 status code if successful, or an error.
GET /api/ping
func (*Client) ExistVideos ¶
func (c *Client) ExistVideos(ctx context.Context, request *ExistVideosReq) (ExistVideosRes, error)
ExistVideos invokes exist_videos operation.
Update exist videos based on the provided period.
POST /exist_videos
func (*Client) Ping ¶
Ping invokes ping operation.
Returns a 200 status code if successful, or an error.
POST /ping
func (*Client) SearchVideos ¶
func (c *Client) SearchVideos(ctx context.Context, request *SearchVideosReq) (SearchVideosRes, error)
SearchVideos invokes search_videos operation.
Update videos related to a specific creator based on provided.
POST /search_videos
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 CronResponse ¶
type CronResponse struct {
Message OptString `json:"message"`
}
Ref: #/components/schemas/CronResponse
func (*CronResponse) Decode ¶
func (s *CronResponse) Decode(d *jx.Decoder) error
Decode decodes CronResponse from json.
func (*CronResponse) Encode ¶
func (s *CronResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CronResponse) GetMessage ¶
func (s *CronResponse) GetMessage() OptString
GetMessage returns the value of Message.
func (*CronResponse) MarshalJSON ¶
func (s *CronResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CronResponse) SetMessage ¶
func (s *CronResponse) SetMessage(val OptString)
SetMessage sets the value of Message.
func (*CronResponse) UnmarshalJSON ¶
func (s *CronResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExistVideosBadRequest ¶
type ExistVideosBadRequest CronResponse
func (*ExistVideosBadRequest) Decode ¶
func (s *ExistVideosBadRequest) Decode(d *jx.Decoder) error
Decode decodes ExistVideosBadRequest from json.
func (*ExistVideosBadRequest) Encode ¶
func (s *ExistVideosBadRequest) Encode(e *jx.Encoder)
Encode encodes ExistVideosBadRequest as json.
func (*ExistVideosBadRequest) MarshalJSON ¶
func (s *ExistVideosBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExistVideosBadRequest) UnmarshalJSON ¶
func (s *ExistVideosBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExistVideosForbidden ¶
type ExistVideosForbidden CronResponse
func (*ExistVideosForbidden) Decode ¶
func (s *ExistVideosForbidden) Decode(d *jx.Decoder) error
Decode decodes ExistVideosForbidden from json.
func (*ExistVideosForbidden) Encode ¶
func (s *ExistVideosForbidden) Encode(e *jx.Encoder)
Encode encodes ExistVideosForbidden as json.
func (*ExistVideosForbidden) MarshalJSON ¶
func (s *ExistVideosForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExistVideosForbidden) UnmarshalJSON ¶
func (s *ExistVideosForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExistVideosInternalServerError ¶
type ExistVideosInternalServerError CronResponse
func (*ExistVideosInternalServerError) Decode ¶
func (s *ExistVideosInternalServerError) Decode(d *jx.Decoder) error
Decode decodes ExistVideosInternalServerError from json.
func (*ExistVideosInternalServerError) Encode ¶
func (s *ExistVideosInternalServerError) Encode(e *jx.Encoder)
Encode encodes ExistVideosInternalServerError as json.
func (*ExistVideosInternalServerError) MarshalJSON ¶
func (s *ExistVideosInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExistVideosInternalServerError) UnmarshalJSON ¶
func (s *ExistVideosInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExistVideosNotFound ¶
type ExistVideosNotFound CronResponse
func (*ExistVideosNotFound) Decode ¶
func (s *ExistVideosNotFound) Decode(d *jx.Decoder) error
Decode decodes ExistVideosNotFound from json.
func (*ExistVideosNotFound) Encode ¶
func (s *ExistVideosNotFound) Encode(e *jx.Encoder)
Encode encodes ExistVideosNotFound as json.
func (*ExistVideosNotFound) MarshalJSON ¶
func (s *ExistVideosNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExistVideosNotFound) UnmarshalJSON ¶
func (s *ExistVideosNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExistVideosOK ¶
type ExistVideosOK CronResponse
func (*ExistVideosOK) Decode ¶
func (s *ExistVideosOK) Decode(d *jx.Decoder) error
Decode decodes ExistVideosOK from json.
func (*ExistVideosOK) Encode ¶
func (s *ExistVideosOK) Encode(e *jx.Encoder)
Encode encodes ExistVideosOK as json.
func (*ExistVideosOK) MarshalJSON ¶
func (s *ExistVideosOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExistVideosOK) UnmarshalJSON ¶
func (s *ExistVideosOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExistVideosReq ¶
type ExistVideosReq struct { // Period for performing updates. Period OptExistVideosReqPeriod `json:"period"` }
func (*ExistVideosReq) Decode ¶
func (s *ExistVideosReq) Decode(d *jx.Decoder) error
Decode decodes ExistVideosReq from json.
func (*ExistVideosReq) Encode ¶
func (s *ExistVideosReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ExistVideosReq) GetPeriod ¶
func (s *ExistVideosReq) GetPeriod() OptExistVideosReqPeriod
GetPeriod returns the value of Period.
func (*ExistVideosReq) MarshalJSON ¶
func (s *ExistVideosReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExistVideosReq) SetPeriod ¶
func (s *ExistVideosReq) SetPeriod(val OptExistVideosReqPeriod)
SetPeriod sets the value of Period.
func (*ExistVideosReq) UnmarshalJSON ¶
func (s *ExistVideosReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ExistVideosReq) Validate ¶
func (s *ExistVideosReq) Validate() error
type ExistVideosReqPeriod ¶
type ExistVideosReqPeriod string
Period for performing updates.
const ( ExistVideosReqPeriodDay ExistVideosReqPeriod = "day" ExistVideosReqPeriodMonth ExistVideosReqPeriod = "month" ExistVideosReqPeriodWeek ExistVideosReqPeriod = "week" )
func (ExistVideosReqPeriod) AllValues ¶
func (ExistVideosReqPeriod) AllValues() []ExistVideosReqPeriod
AllValues returns all ExistVideosReqPeriod values.
func (*ExistVideosReqPeriod) Decode ¶
func (s *ExistVideosReqPeriod) Decode(d *jx.Decoder) error
Decode decodes ExistVideosReqPeriod from json.
func (ExistVideosReqPeriod) Encode ¶
func (s ExistVideosReqPeriod) Encode(e *jx.Encoder)
Encode encodes ExistVideosReqPeriod as json.
func (ExistVideosReqPeriod) MarshalJSON ¶
func (s ExistVideosReqPeriod) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ExistVideosReqPeriod) MarshalText ¶
func (s ExistVideosReqPeriod) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ExistVideosReqPeriod) UnmarshalJSON ¶
func (s *ExistVideosReqPeriod) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ExistVideosReqPeriod) UnmarshalText ¶
func (s *ExistVideosReqPeriod) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ExistVideosReqPeriod) Validate ¶
func (s ExistVideosReqPeriod) Validate() error
type ExistVideosRes ¶
type ExistVideosRes interface {
// contains filtered or unexported methods
}
type ExistVideosUnauthorized ¶
type ExistVideosUnauthorized CronResponse
func (*ExistVideosUnauthorized) Decode ¶
func (s *ExistVideosUnauthorized) Decode(d *jx.Decoder) error
Decode decodes ExistVideosUnauthorized from json.
func (*ExistVideosUnauthorized) Encode ¶
func (s *ExistVideosUnauthorized) Encode(e *jx.Encoder)
Encode encodes ExistVideosUnauthorized as json.
func (*ExistVideosUnauthorized) MarshalJSON ¶
func (s *ExistVideosUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExistVideosUnauthorized) UnmarshalJSON ¶
func (s *ExistVideosUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Handler ¶
type Handler interface { // APICronChannelsGet implements GET /api/cron/channels operation. // // Update channels. // // GET /api/cron/channels APICronChannelsGet(ctx context.Context, params APICronChannelsGetParams) (APICronChannelsGetRes, error) // APICronCreatorsGet implements GET /api/cron/creators operation. // // Creates creators by fetching from Youtube using provided Channel IDs. // // GET /api/cron/creators APICronCreatorsGet(ctx context.Context, params APICronCreatorsGetParams) (APICronCreatorsGetRes, error) // APICronExistVideosGet implements GET /api/cron/exist_videos operation. // // Update exist videos. // // GET /api/cron/exist_videos APICronExistVideosGet(ctx context.Context, params APICronExistVideosGetParams) (APICronExistVideosGetRes, error) // APICronSearchVideosGet implements GET /api/cron/search_videos operation. // // Update videos related to a specific creator based on provided. // // GET /api/cron/search_videos APICronSearchVideosGet(ctx context.Context, params APICronSearchVideosGetParams) (APICronSearchVideosGetRes, error) // APIPingGet implements GET /api/ping operation. // // Returns a 200 status code if successful, or an error. // // GET /api/ping APIPingGet(ctx context.Context) (*APIPingGetOK, error) // ExistVideos implements exist_videos operation. // // Update exist videos based on the provided period. // // POST /exist_videos ExistVideos(ctx context.Context, req *ExistVideosReq) (ExistVideosRes, error) // Ping implements ping operation. // // Returns a 200 status code if successful, or an error. // // POST /ping Ping(ctx context.Context) (*PingOK, error) // SearchVideos implements search_videos operation. // // Update videos related to a specific creator based on provided. // // POST /search_videos SearchVideos(ctx context.Context, req *SearchVideosReq) (SearchVideosRes, error) }
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface { // APICronChannelsGet invokes GET /api/cron/channels operation. // // Update channels. // // GET /api/cron/channels APICronChannelsGet(ctx context.Context, params APICronChannelsGetParams) (APICronChannelsGetRes, error) // APICronCreatorsGet invokes GET /api/cron/creators operation. // // Creates creators by fetching from Youtube using provided Channel IDs. // // GET /api/cron/creators APICronCreatorsGet(ctx context.Context, params APICronCreatorsGetParams) (APICronCreatorsGetRes, error) // APICronExistVideosGet invokes GET /api/cron/exist_videos operation. // // Update exist videos. // // GET /api/cron/exist_videos APICronExistVideosGet(ctx context.Context, params APICronExistVideosGetParams) (APICronExistVideosGetRes, error) // APICronSearchVideosGet invokes GET /api/cron/search_videos operation. // // Update videos related to a specific creator based on provided. // // GET /api/cron/search_videos APICronSearchVideosGet(ctx context.Context, params APICronSearchVideosGetParams) (APICronSearchVideosGetRes, error) // APIPingGet invokes GET /api/ping operation. // // Returns a 200 status code if successful, or an error. // // GET /api/ping APIPingGet(ctx context.Context) (*APIPingGetOK, error) // ExistVideos invokes exist_videos operation. // // Update exist videos based on the provided period. // // POST /exist_videos ExistVideos(ctx context.Context, request *ExistVideosReq) (ExistVideosRes, error) // Ping invokes ping operation. // // Returns a 200 status code if successful, or an error. // // POST /ping Ping(ctx context.Context) (*PingOK, error) // SearchVideos invokes search_videos operation. // // Update videos related to a specific creator based on provided. // // POST /search_videos SearchVideos(ctx context.Context, request *SearchVideosReq) (SearchVideosRes, 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 OptExistVideosReqPeriod ¶
type OptExistVideosReqPeriod struct { Value ExistVideosReqPeriod Set bool }
OptExistVideosReqPeriod is optional ExistVideosReqPeriod.
func NewOptExistVideosReqPeriod ¶
func NewOptExistVideosReqPeriod(v ExistVideosReqPeriod) OptExistVideosReqPeriod
NewOptExistVideosReqPeriod returns new OptExistVideosReqPeriod with value set to v.
func (*OptExistVideosReqPeriod) Decode ¶
func (o *OptExistVideosReqPeriod) Decode(d *jx.Decoder) error
Decode decodes ExistVideosReqPeriod from json.
func (OptExistVideosReqPeriod) Encode ¶
func (o OptExistVideosReqPeriod) Encode(e *jx.Encoder)
Encode encodes ExistVideosReqPeriod as json.
func (OptExistVideosReqPeriod) Get ¶
func (o OptExistVideosReqPeriod) Get() (v ExistVideosReqPeriod, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptExistVideosReqPeriod) IsSet ¶
func (o OptExistVideosReqPeriod) IsSet() bool
IsSet returns true if OptExistVideosReqPeriod was set.
func (OptExistVideosReqPeriod) MarshalJSON ¶
func (s OptExistVideosReqPeriod) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptExistVideosReqPeriod) Or ¶
func (o OptExistVideosReqPeriod) Or(d ExistVideosReqPeriod) ExistVideosReqPeriod
Or returns value if set, or given parameter if does not.
func (*OptExistVideosReqPeriod) Reset ¶
func (o *OptExistVideosReqPeriod) Reset()
Reset unsets value.
func (*OptExistVideosReqPeriod) SetTo ¶
func (o *OptExistVideosReqPeriod) SetTo(v ExistVideosReqPeriod)
SetTo sets value to v.
func (*OptExistVideosReqPeriod) UnmarshalJSON ¶
func (s *OptExistVideosReqPeriod) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSearchVideosReqVideoType ¶
type OptSearchVideosReqVideoType struct { Value SearchVideosReqVideoType Set bool }
OptSearchVideosReqVideoType is optional SearchVideosReqVideoType.
func NewOptSearchVideosReqVideoType ¶
func NewOptSearchVideosReqVideoType(v SearchVideosReqVideoType) OptSearchVideosReqVideoType
NewOptSearchVideosReqVideoType returns new OptSearchVideosReqVideoType with value set to v.
func (*OptSearchVideosReqVideoType) Decode ¶
func (o *OptSearchVideosReqVideoType) Decode(d *jx.Decoder) error
Decode decodes SearchVideosReqVideoType from json.
func (OptSearchVideosReqVideoType) Encode ¶
func (o OptSearchVideosReqVideoType) Encode(e *jx.Encoder)
Encode encodes SearchVideosReqVideoType as json.
func (OptSearchVideosReqVideoType) Get ¶
func (o OptSearchVideosReqVideoType) Get() (v SearchVideosReqVideoType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSearchVideosReqVideoType) IsSet ¶
func (o OptSearchVideosReqVideoType) IsSet() bool
IsSet returns true if OptSearchVideosReqVideoType was set.
func (OptSearchVideosReqVideoType) MarshalJSON ¶
func (s OptSearchVideosReqVideoType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSearchVideosReqVideoType) Reset ¶
func (o *OptSearchVideosReqVideoType) Reset()
Reset unsets value.
func (*OptSearchVideosReqVideoType) SetTo ¶
func (o *OptSearchVideosReqVideoType) SetTo(v SearchVideosReqVideoType)
SetTo sets value to v.
func (*OptSearchVideosReqVideoType) UnmarshalJSON ¶
func (s *OptSearchVideosReqVideoType) UnmarshalJSON(data []byte) error
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 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 PingOK ¶
type PingOK struct {
Message OptString `json:"message"`
}
func (*PingOK) GetMessage ¶
GetMessage returns the value of Message.
func (*PingOK) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PingOK) SetMessage ¶
SetMessage sets the value of Message.
func (*PingOK) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type SearchVideosBadRequest ¶
type SearchVideosBadRequest CronResponse
func (*SearchVideosBadRequest) Decode ¶
func (s *SearchVideosBadRequest) Decode(d *jx.Decoder) error
Decode decodes SearchVideosBadRequest from json.
func (*SearchVideosBadRequest) Encode ¶
func (s *SearchVideosBadRequest) Encode(e *jx.Encoder)
Encode encodes SearchVideosBadRequest as json.
func (*SearchVideosBadRequest) MarshalJSON ¶
func (s *SearchVideosBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchVideosBadRequest) UnmarshalJSON ¶
func (s *SearchVideosBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SearchVideosForbidden ¶
type SearchVideosForbidden CronResponse
func (*SearchVideosForbidden) Decode ¶
func (s *SearchVideosForbidden) Decode(d *jx.Decoder) error
Decode decodes SearchVideosForbidden from json.
func (*SearchVideosForbidden) Encode ¶
func (s *SearchVideosForbidden) Encode(e *jx.Encoder)
Encode encodes SearchVideosForbidden as json.
func (*SearchVideosForbidden) MarshalJSON ¶
func (s *SearchVideosForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchVideosForbidden) UnmarshalJSON ¶
func (s *SearchVideosForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SearchVideosInternalServerError ¶
type SearchVideosInternalServerError CronResponse
func (*SearchVideosInternalServerError) Decode ¶
func (s *SearchVideosInternalServerError) Decode(d *jx.Decoder) error
Decode decodes SearchVideosInternalServerError from json.
func (*SearchVideosInternalServerError) Encode ¶
func (s *SearchVideosInternalServerError) Encode(e *jx.Encoder)
Encode encodes SearchVideosInternalServerError as json.
func (*SearchVideosInternalServerError) MarshalJSON ¶
func (s *SearchVideosInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchVideosInternalServerError) UnmarshalJSON ¶
func (s *SearchVideosInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SearchVideosNotFound ¶
type SearchVideosNotFound CronResponse
func (*SearchVideosNotFound) Decode ¶
func (s *SearchVideosNotFound) Decode(d *jx.Decoder) error
Decode decodes SearchVideosNotFound from json.
func (*SearchVideosNotFound) Encode ¶
func (s *SearchVideosNotFound) Encode(e *jx.Encoder)
Encode encodes SearchVideosNotFound as json.
func (*SearchVideosNotFound) MarshalJSON ¶
func (s *SearchVideosNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchVideosNotFound) UnmarshalJSON ¶
func (s *SearchVideosNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SearchVideosOK ¶
type SearchVideosOK CronResponse
func (*SearchVideosOK) Decode ¶
func (s *SearchVideosOK) Decode(d *jx.Decoder) error
Decode decodes SearchVideosOK from json.
func (*SearchVideosOK) Encode ¶
func (s *SearchVideosOK) Encode(e *jx.Encoder)
Encode encodes SearchVideosOK as json.
func (*SearchVideosOK) MarshalJSON ¶
func (s *SearchVideosOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchVideosOK) UnmarshalJSON ¶
func (s *SearchVideosOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SearchVideosReq ¶
type SearchVideosReq struct { // List of video platform types. PlatformType []SearchVideosReqPlatformTypeItem `json:"platform_type"` // Type of the cron. VideoType OptSearchVideosReqVideoType `json:"video_type"` }
func (*SearchVideosReq) Decode ¶
func (s *SearchVideosReq) Decode(d *jx.Decoder) error
Decode decodes SearchVideosReq from json.
func (*SearchVideosReq) Encode ¶
func (s *SearchVideosReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SearchVideosReq) GetPlatformType ¶
func (s *SearchVideosReq) GetPlatformType() []SearchVideosReqPlatformTypeItem
GetPlatformType returns the value of PlatformType.
func (*SearchVideosReq) GetVideoType ¶
func (s *SearchVideosReq) GetVideoType() OptSearchVideosReqVideoType
GetVideoType returns the value of VideoType.
func (*SearchVideosReq) MarshalJSON ¶
func (s *SearchVideosReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchVideosReq) SetPlatformType ¶
func (s *SearchVideosReq) SetPlatformType(val []SearchVideosReqPlatformTypeItem)
SetPlatformType sets the value of PlatformType.
func (*SearchVideosReq) SetVideoType ¶
func (s *SearchVideosReq) SetVideoType(val OptSearchVideosReqVideoType)
SetVideoType sets the value of VideoType.
func (*SearchVideosReq) UnmarshalJSON ¶
func (s *SearchVideosReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SearchVideosReq) Validate ¶
func (s *SearchVideosReq) Validate() error
type SearchVideosReqPlatformTypeItem ¶
type SearchVideosReqPlatformTypeItem string
const ( SearchVideosReqPlatformTypeItemYoutube SearchVideosReqPlatformTypeItem = "youtube" SearchVideosReqPlatformTypeItemTwitch SearchVideosReqPlatformTypeItem = "twitch" SearchVideosReqPlatformTypeItemTwitcasting SearchVideosReqPlatformTypeItem = "twitcasting" SearchVideosReqPlatformTypeItemNiconico SearchVideosReqPlatformTypeItem = "niconico" )
func (SearchVideosReqPlatformTypeItem) AllValues ¶
func (SearchVideosReqPlatformTypeItem) AllValues() []SearchVideosReqPlatformTypeItem
AllValues returns all SearchVideosReqPlatformTypeItem values.
func (*SearchVideosReqPlatformTypeItem) Decode ¶
func (s *SearchVideosReqPlatformTypeItem) Decode(d *jx.Decoder) error
Decode decodes SearchVideosReqPlatformTypeItem from json.
func (SearchVideosReqPlatformTypeItem) Encode ¶
func (s SearchVideosReqPlatformTypeItem) Encode(e *jx.Encoder)
Encode encodes SearchVideosReqPlatformTypeItem as json.
func (SearchVideosReqPlatformTypeItem) MarshalJSON ¶
func (s SearchVideosReqPlatformTypeItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SearchVideosReqPlatformTypeItem) MarshalText ¶
func (s SearchVideosReqPlatformTypeItem) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SearchVideosReqPlatformTypeItem) UnmarshalJSON ¶
func (s *SearchVideosReqPlatformTypeItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SearchVideosReqPlatformTypeItem) UnmarshalText ¶
func (s *SearchVideosReqPlatformTypeItem) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SearchVideosReqPlatformTypeItem) Validate ¶
func (s SearchVideosReqPlatformTypeItem) Validate() error
type SearchVideosReqVideoType ¶
type SearchVideosReqVideoType string
Type of the cron.
const ( SearchVideosReqVideoTypeVspoStream SearchVideosReqVideoType = "vspo_stream" SearchVideosReqVideoTypeClip SearchVideosReqVideoType = "clip" SearchVideosReqVideoTypeFreechat SearchVideosReqVideoType = "freechat" )
func (SearchVideosReqVideoType) AllValues ¶
func (SearchVideosReqVideoType) AllValues() []SearchVideosReqVideoType
AllValues returns all SearchVideosReqVideoType values.
func (*SearchVideosReqVideoType) Decode ¶
func (s *SearchVideosReqVideoType) Decode(d *jx.Decoder) error
Decode decodes SearchVideosReqVideoType from json.
func (SearchVideosReqVideoType) Encode ¶
func (s SearchVideosReqVideoType) Encode(e *jx.Encoder)
Encode encodes SearchVideosReqVideoType as json.
func (SearchVideosReqVideoType) MarshalJSON ¶
func (s SearchVideosReqVideoType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SearchVideosReqVideoType) MarshalText ¶
func (s SearchVideosReqVideoType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SearchVideosReqVideoType) UnmarshalJSON ¶
func (s *SearchVideosReqVideoType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SearchVideosReqVideoType) UnmarshalText ¶
func (s *SearchVideosReqVideoType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SearchVideosReqVideoType) Validate ¶
func (s SearchVideosReqVideoType) Validate() error
type SearchVideosRes ¶
type SearchVideosRes interface {
// contains filtered or unexported methods
}
type SearchVideosUnauthorized ¶
type SearchVideosUnauthorized CronResponse
func (*SearchVideosUnauthorized) Decode ¶
func (s *SearchVideosUnauthorized) Decode(d *jx.Decoder) error
Decode decodes SearchVideosUnauthorized from json.
func (*SearchVideosUnauthorized) Encode ¶
func (s *SearchVideosUnauthorized) Encode(e *jx.Encoder)
Encode encodes SearchVideosUnauthorized as json.
func (*SearchVideosUnauthorized) MarshalJSON ¶
func (s *SearchVideosUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchVideosUnauthorized) UnmarshalJSON ¶
func (s *SearchVideosUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
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, 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 UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) APICronChannelsGet ¶
func (UnimplementedHandler) APICronChannelsGet(ctx context.Context, params APICronChannelsGetParams) (r APICronChannelsGetRes, _ error)
APICronChannelsGet implements GET /api/cron/channels operation.
Update channels.
GET /api/cron/channels
func (UnimplementedHandler) APICronCreatorsGet ¶
func (UnimplementedHandler) APICronCreatorsGet(ctx context.Context, params APICronCreatorsGetParams) (r APICronCreatorsGetRes, _ error)
APICronCreatorsGet implements GET /api/cron/creators operation.
Creates creators by fetching from Youtube using provided Channel IDs.
GET /api/cron/creators
func (UnimplementedHandler) APICronExistVideosGet ¶
func (UnimplementedHandler) APICronExistVideosGet(ctx context.Context, params APICronExistVideosGetParams) (r APICronExistVideosGetRes, _ error)
APICronExistVideosGet implements GET /api/cron/exist_videos operation.
Update exist videos.
GET /api/cron/exist_videos
func (UnimplementedHandler) APICronSearchVideosGet ¶
func (UnimplementedHandler) APICronSearchVideosGet(ctx context.Context, params APICronSearchVideosGetParams) (r APICronSearchVideosGetRes, _ error)
APICronSearchVideosGet implements GET /api/cron/search_videos operation.
Update videos related to a specific creator based on provided.
GET /api/cron/search_videos
func (UnimplementedHandler) APIPingGet ¶
func (UnimplementedHandler) APIPingGet(ctx context.Context) (r *APIPingGetOK, _ error)
APIPingGet implements GET /api/ping operation.
Returns a 200 status code if successful, or an error.
GET /api/ping
func (UnimplementedHandler) ExistVideos ¶
func (UnimplementedHandler) ExistVideos(ctx context.Context, req *ExistVideosReq) (r ExistVideosRes, _ error)
ExistVideos implements exist_videos operation.
Update exist videos based on the provided period.
POST /exist_videos
func (UnimplementedHandler) Ping ¶
func (UnimplementedHandler) Ping(ctx context.Context) (r *PingOK, _ error)
Ping implements ping operation.
Returns a 200 status code if successful, or an error.
POST /ping
func (UnimplementedHandler) SearchVideos ¶
func (UnimplementedHandler) SearchVideos(ctx context.Context, req *SearchVideosReq) (r SearchVideosRes, _ error)
SearchVideos implements search_videos operation.
Update videos related to a specific creator based on provided.
POST /search_videos
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_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go