Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type ApiKeyAuth
- type ChannelResponse
- func (s *ChannelResponse) Decode(d *jx.Decoder) error
- func (s *ChannelResponse) Encode(e *jx.Encoder)
- func (s *ChannelResponse) GetID() OptString
- func (s *ChannelResponse) GetSnippet() OptChannelSnippetResponse
- func (s *ChannelResponse) GetStatistics() OptChannelStatisticsResponse
- func (s *ChannelResponse) MarshalJSON() ([]byte, error)
- func (s *ChannelResponse) SetID(val OptString)
- func (s *ChannelResponse) SetSnippet(val OptChannelSnippetResponse)
- func (s *ChannelResponse) SetStatistics(val OptChannelStatisticsResponse)
- func (s *ChannelResponse) UnmarshalJSON(data []byte) error
- type ChannelSnippetResponse
- func (s *ChannelSnippetResponse) Decode(d *jx.Decoder) error
- func (s *ChannelSnippetResponse) Encode(e *jx.Encoder)
- func (s *ChannelSnippetResponse) GetNiconico() OptPlatformSnippet
- func (s *ChannelSnippetResponse) GetTwitCasting() OptPlatformSnippet
- func (s *ChannelSnippetResponse) GetTwitch() OptPlatformSnippet
- func (s *ChannelSnippetResponse) GetYoutube() OptPlatformSnippet
- func (s *ChannelSnippetResponse) MarshalJSON() ([]byte, error)
- func (s *ChannelSnippetResponse) SetNiconico(val OptPlatformSnippet)
- func (s *ChannelSnippetResponse) SetTwitCasting(val OptPlatformSnippet)
- func (s *ChannelSnippetResponse) SetTwitch(val OptPlatformSnippet)
- func (s *ChannelSnippetResponse) SetYoutube(val OptPlatformSnippet)
- func (s *ChannelSnippetResponse) UnmarshalJSON(data []byte) error
- type ChannelStatisticsResponse
- func (s *ChannelStatisticsResponse) Decode(d *jx.Decoder) error
- func (s *ChannelStatisticsResponse) Encode(e *jx.Encoder)
- func (s *ChannelStatisticsResponse) GetNiconico() OptPlatformStatistics
- func (s *ChannelStatisticsResponse) GetTwitCasting() OptPlatformStatistics
- func (s *ChannelStatisticsResponse) GetTwitch() OptPlatformStatistics
- func (s *ChannelStatisticsResponse) GetYoutube() OptPlatformStatistics
- func (s *ChannelStatisticsResponse) MarshalJSON() ([]byte, error)
- func (s *ChannelStatisticsResponse) SetNiconico(val OptPlatformStatistics)
- func (s *ChannelStatisticsResponse) SetTwitCasting(val OptPlatformStatistics)
- func (s *ChannelStatisticsResponse) SetTwitch(val OptPlatformStatistics)
- func (s *ChannelStatisticsResponse) SetYoutube(val OptPlatformStatistics)
- func (s *ChannelStatisticsResponse) UnmarshalJSON(data []byte) error
- type ChannelsChannelIDVideosGetBadRequest
- type ChannelsChannelIDVideosGetForbidden
- type ChannelsChannelIDVideosGetInternalServerError
- type ChannelsChannelIDVideosGetNotFound
- type ChannelsChannelIDVideosGetOK
- func (s *ChannelsChannelIDVideosGetOK) Decode(d *jx.Decoder) error
- func (s *ChannelsChannelIDVideosGetOK) Encode(e *jx.Encoder)
- func (s *ChannelsChannelIDVideosGetOK) GetData() OptVideosResponse
- func (s *ChannelsChannelIDVideosGetOK) GetPagination() OptPagination
- func (s *ChannelsChannelIDVideosGetOK) MarshalJSON() ([]byte, error)
- func (s *ChannelsChannelIDVideosGetOK) SetData(val OptVideosResponse)
- func (s *ChannelsChannelIDVideosGetOK) SetPagination(val OptPagination)
- func (s *ChannelsChannelIDVideosGetOK) UnmarshalJSON(data []byte) error
- type ChannelsChannelIDVideosGetParams
- type ChannelsChannelIDVideosGetRes
- type ChannelsChannelIDVideosGetUnauthorized
- type ChannelsChannelIDVideosPostBadRequest
- type ChannelsChannelIDVideosPostForbidden
- type ChannelsChannelIDVideosPostInternalServerError
- type ChannelsChannelIDVideosPostNotFound
- type ChannelsChannelIDVideosPostParams
- type ChannelsChannelIDVideosPostReq
- func (s *ChannelsChannelIDVideosPostReq) Decode(d *jx.Decoder) error
- func (s *ChannelsChannelIDVideosPostReq) Encode(e *jx.Encoder)
- func (s *ChannelsChannelIDVideosPostReq) GetIds() []string
- func (s *ChannelsChannelIDVideosPostReq) MarshalJSON() ([]byte, error)
- func (s *ChannelsChannelIDVideosPostReq) SetIds(val []string)
- func (s *ChannelsChannelIDVideosPostReq) UnmarshalJSON(data []byte) error
- type ChannelsChannelIDVideosPostRes
- type ChannelsChannelIDVideosPostUnauthorized
- type ChannelsChannelIDVideosPutBadRequest
- type ChannelsChannelIDVideosPutForbidden
- type ChannelsChannelIDVideosPutInternalServerError
- type ChannelsChannelIDVideosPutNotFound
- type ChannelsChannelIDVideosPutParams
- type ChannelsChannelIDVideosPutReq
- func (s *ChannelsChannelIDVideosPutReq) Decode(d *jx.Decoder) error
- func (s *ChannelsChannelIDVideosPutReq) Encode(e *jx.Encoder)
- func (s *ChannelsChannelIDVideosPutReq) GetIds() []string
- func (s *ChannelsChannelIDVideosPutReq) MarshalJSON() ([]byte, error)
- func (s *ChannelsChannelIDVideosPutReq) SetIds(val []string)
- func (s *ChannelsChannelIDVideosPutReq) UnmarshalJSON(data []byte) error
- type ChannelsChannelIDVideosPutRes
- type ChannelsChannelIDVideosPutUnauthorized
- type ChannelsGetBadRequest
- type ChannelsGetForbidden
- type ChannelsGetInternalServerError
- type ChannelsGetNotFound
- type ChannelsGetOK
- func (s *ChannelsGetOK) Decode(d *jx.Decoder) error
- func (s *ChannelsGetOK) Encode(e *jx.Encoder)
- func (s *ChannelsGetOK) GetData() OptChannelsResponse
- func (s *ChannelsGetOK) GetPagination() OptPagination
- func (s *ChannelsGetOK) MarshalJSON() ([]byte, error)
- func (s *ChannelsGetOK) SetData(val OptChannelsResponse)
- func (s *ChannelsGetOK) SetPagination(val OptPagination)
- func (s *ChannelsGetOK) UnmarshalJSON(data []byte) error
- type ChannelsGetParams
- type ChannelsGetRes
- type ChannelsGetUnauthorized
- type ChannelsPostBadRequest
- type ChannelsPostForbidden
- type ChannelsPostInternalServerError
- type ChannelsPostNotFound
- type ChannelsPostReq
- func (s *ChannelsPostReq) Decode(d *jx.Decoder) error
- func (s *ChannelsPostReq) Encode(e *jx.Encoder)
- func (s *ChannelsPostReq) GetIds() []string
- func (s *ChannelsPostReq) MarshalJSON() ([]byte, error)
- func (s *ChannelsPostReq) SetIds(val []string)
- func (s *ChannelsPostReq) UnmarshalJSON(data []byte) error
- type ChannelsPostRes
- type ChannelsPostUnauthorized
- type ChannelsPutBadRequest
- type ChannelsPutForbidden
- type ChannelsPutInternalServerError
- type ChannelsPutNotFound
- type ChannelsPutReq
- func (s *ChannelsPutReq) Decode(d *jx.Decoder) error
- func (s *ChannelsPutReq) Encode(e *jx.Encoder)
- func (s *ChannelsPutReq) GetIds() []string
- func (s *ChannelsPutReq) MarshalJSON() ([]byte, error)
- func (s *ChannelsPutReq) SetIds(val []string)
- func (s *ChannelsPutReq) UnmarshalJSON(data []byte) error
- type ChannelsPutRes
- type ChannelsPutUnauthorized
- type ChannelsResponse
- func (s *ChannelsResponse) Decode(d *jx.Decoder) error
- func (s *ChannelsResponse) Encode(e *jx.Encoder)
- func (s *ChannelsResponse) GetChannels() []ChannelResponse
- func (s *ChannelsResponse) MarshalJSON() ([]byte, error)
- func (s *ChannelsResponse) SetChannels(val []ChannelResponse)
- func (s *ChannelsResponse) UnmarshalJSON(data []byte) error
- type Client
- func (c *Client) ChannelsChannelIDVideosGet(ctx context.Context, params ChannelsChannelIDVideosGetParams) (ChannelsChannelIDVideosGetRes, error)
- func (c *Client) ChannelsChannelIDVideosPost(ctx context.Context, request *ChannelsChannelIDVideosPostReq, ...) (ChannelsChannelIDVideosPostRes, error)
- func (c *Client) ChannelsChannelIDVideosPut(ctx context.Context, request *ChannelsChannelIDVideosPutReq, ...) (ChannelsChannelIDVideosPutRes, error)
- func (c *Client) ChannelsGet(ctx context.Context, params ChannelsGetParams) (ChannelsGetRes, error)
- func (c *Client) ChannelsPost(ctx context.Context, request *ChannelsPostReq) (ChannelsPostRes, error)
- func (c *Client) ChannelsPut(ctx context.Context, request *ChannelsPutReq) (ChannelsPutRes, error)
- type ClientOption
- type ErrorHandler
- type Handler
- type Invoker
- type Middleware
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptChannelSnippetResponse
- func (o *OptChannelSnippetResponse) Decode(d *jx.Decoder) error
- func (o OptChannelSnippetResponse) Encode(e *jx.Encoder)
- func (o OptChannelSnippetResponse) Get() (v ChannelSnippetResponse, ok bool)
- func (o OptChannelSnippetResponse) IsSet() bool
- func (s OptChannelSnippetResponse) MarshalJSON() ([]byte, error)
- func (o OptChannelSnippetResponse) Or(d ChannelSnippetResponse) ChannelSnippetResponse
- func (o *OptChannelSnippetResponse) Reset()
- func (o *OptChannelSnippetResponse) SetTo(v ChannelSnippetResponse)
- func (s *OptChannelSnippetResponse) UnmarshalJSON(data []byte) error
- type OptChannelStatisticsResponse
- func (o *OptChannelStatisticsResponse) Decode(d *jx.Decoder) error
- func (o OptChannelStatisticsResponse) Encode(e *jx.Encoder)
- func (o OptChannelStatisticsResponse) Get() (v ChannelStatisticsResponse, ok bool)
- func (o OptChannelStatisticsResponse) IsSet() bool
- func (s OptChannelStatisticsResponse) MarshalJSON() ([]byte, error)
- func (o OptChannelStatisticsResponse) Or(d ChannelStatisticsResponse) ChannelStatisticsResponse
- func (o *OptChannelStatisticsResponse) Reset()
- func (o *OptChannelStatisticsResponse) SetTo(v ChannelStatisticsResponse)
- func (s *OptChannelStatisticsResponse) UnmarshalJSON(data []byte) error
- type OptChannelsResponse
- func (o *OptChannelsResponse) Decode(d *jx.Decoder) error
- func (o OptChannelsResponse) Encode(e *jx.Encoder)
- func (o OptChannelsResponse) Get() (v ChannelsResponse, ok bool)
- func (o OptChannelsResponse) IsSet() bool
- func (s OptChannelsResponse) MarshalJSON() ([]byte, error)
- func (o OptChannelsResponse) Or(d ChannelsResponse) ChannelsResponse
- func (o *OptChannelsResponse) Reset()
- func (o *OptChannelsResponse) SetTo(v ChannelsResponse)
- func (s *OptChannelsResponse) UnmarshalJSON(data []byte) error
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) 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 OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptPagination
- func (o *OptPagination) Decode(d *jx.Decoder) error
- func (o OptPagination) Encode(e *jx.Encoder)
- func (o OptPagination) Get() (v Pagination, ok bool)
- func (o OptPagination) IsSet() bool
- func (s OptPagination) MarshalJSON() ([]byte, error)
- func (o OptPagination) Or(d Pagination) Pagination
- func (o *OptPagination) Reset()
- func (o *OptPagination) SetTo(v Pagination)
- func (s *OptPagination) UnmarshalJSON(data []byte) error
- type OptPlatformSnippet
- func (o *OptPlatformSnippet) Decode(d *jx.Decoder) error
- func (o OptPlatformSnippet) Encode(e *jx.Encoder)
- func (o OptPlatformSnippet) Get() (v PlatformSnippet, ok bool)
- func (o OptPlatformSnippet) IsSet() bool
- func (s OptPlatformSnippet) MarshalJSON() ([]byte, error)
- func (o OptPlatformSnippet) Or(d PlatformSnippet) PlatformSnippet
- func (o *OptPlatformSnippet) Reset()
- func (o *OptPlatformSnippet) SetTo(v PlatformSnippet)
- func (s *OptPlatformSnippet) UnmarshalJSON(data []byte) error
- type OptPlatformStatistics
- func (o *OptPlatformStatistics) Decode(d *jx.Decoder) error
- func (o OptPlatformStatistics) Encode(e *jx.Encoder)
- func (o OptPlatformStatistics) Get() (v PlatformStatistics, ok bool)
- func (o OptPlatformStatistics) IsSet() bool
- func (s OptPlatformStatistics) MarshalJSON() ([]byte, error)
- func (o OptPlatformStatistics) Or(d PlatformStatistics) PlatformStatistics
- func (o *OptPlatformStatistics) Reset()
- func (o *OptPlatformStatistics) SetTo(v PlatformStatistics)
- func (s *OptPlatformStatistics) 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 OptThumbnailResponse
- func (o *OptThumbnailResponse) Decode(d *jx.Decoder) error
- func (o OptThumbnailResponse) Encode(e *jx.Encoder)
- func (o OptThumbnailResponse) Get() (v ThumbnailResponse, ok bool)
- func (o OptThumbnailResponse) IsSet() bool
- func (s OptThumbnailResponse) MarshalJSON() ([]byte, error)
- func (o OptThumbnailResponse) Or(d ThumbnailResponse) ThumbnailResponse
- func (o *OptThumbnailResponse) Reset()
- func (o *OptThumbnailResponse) SetTo(v ThumbnailResponse)
- func (s *OptThumbnailResponse) UnmarshalJSON(data []byte) error
- type OptThumbnailsResponse
- func (o *OptThumbnailsResponse) Decode(d *jx.Decoder) error
- func (o OptThumbnailsResponse) Encode(e *jx.Encoder)
- func (o OptThumbnailsResponse) Get() (v ThumbnailsResponse, ok bool)
- func (o OptThumbnailsResponse) IsSet() bool
- func (s OptThumbnailsResponse) MarshalJSON() ([]byte, error)
- func (o OptThumbnailsResponse) Or(d ThumbnailsResponse) ThumbnailsResponse
- func (o *OptThumbnailsResponse) Reset()
- func (o *OptThumbnailsResponse) SetTo(v ThumbnailsResponse)
- func (s *OptThumbnailsResponse) UnmarshalJSON(data []byte) error
- type OptVideosResponse
- func (o *OptVideosResponse) Decode(d *jx.Decoder) error
- func (o OptVideosResponse) Encode(e *jx.Encoder)
- func (o OptVideosResponse) Get() (v VideosResponse, ok bool)
- func (o OptVideosResponse) IsSet() bool
- func (s OptVideosResponse) MarshalJSON() ([]byte, error)
- func (o OptVideosResponse) Or(d VideosResponse) VideosResponse
- func (o *OptVideosResponse) Reset()
- func (o *OptVideosResponse) SetTo(v VideosResponse)
- func (s *OptVideosResponse) UnmarshalJSON(data []byte) error
- type Option
- type Pagination
- func (s *Pagination) Decode(d *jx.Decoder) error
- func (s *Pagination) Encode(e *jx.Encoder)
- func (s *Pagination) GetCurrentPage() OptInt64
- func (s *Pagination) GetHasNext() OptBool
- func (s *Pagination) GetNextPage() OptInt64
- func (s *Pagination) GetPrevPage() OptInt64
- func (s *Pagination) GetTotalCount() OptInt64
- func (s *Pagination) GetTotalPage() OptInt64
- func (s *Pagination) MarshalJSON() ([]byte, error)
- func (s *Pagination) SetCurrentPage(val OptInt64)
- func (s *Pagination) SetHasNext(val OptBool)
- func (s *Pagination) SetNextPage(val OptInt64)
- func (s *Pagination) SetPrevPage(val OptInt64)
- func (s *Pagination) SetTotalCount(val OptInt64)
- func (s *Pagination) SetTotalPage(val OptInt64)
- func (s *Pagination) UnmarshalJSON(data []byte) error
- type PlatformSnippet
- func (s *PlatformSnippet) Decode(d *jx.Decoder) error
- func (s *PlatformSnippet) Encode(e *jx.Encoder)
- func (s *PlatformSnippet) GetCustomURL() OptString
- func (s *PlatformSnippet) GetDescription() OptString
- func (s *PlatformSnippet) GetPublishedAt() OptDateTime
- func (s *PlatformSnippet) GetThumbnails() OptThumbnailsResponse
- func (s *PlatformSnippet) GetTitle() OptString
- func (s *PlatformSnippet) MarshalJSON() ([]byte, error)
- func (s *PlatformSnippet) SetCustomURL(val OptString)
- func (s *PlatformSnippet) SetDescription(val OptString)
- func (s *PlatformSnippet) SetPublishedAt(val OptDateTime)
- func (s *PlatformSnippet) SetThumbnails(val OptThumbnailsResponse)
- func (s *PlatformSnippet) SetTitle(val OptString)
- func (s *PlatformSnippet) UnmarshalJSON(data []byte) error
- type PlatformStatistics
- func (s *PlatformStatistics) Decode(d *jx.Decoder) error
- func (s *PlatformStatistics) Encode(e *jx.Encoder)
- func (s *PlatformStatistics) GetHiddenSubscriberCount() OptBool
- func (s *PlatformStatistics) GetSubscriberCount() OptString
- func (s *PlatformStatistics) GetVideoCount() OptString
- func (s *PlatformStatistics) GetViewCount() OptString
- func (s *PlatformStatistics) MarshalJSON() ([]byte, error)
- func (s *PlatformStatistics) SetHiddenSubscriberCount(val OptBool)
- func (s *PlatformStatistics) SetSubscriberCount(val OptString)
- func (s *PlatformStatistics) SetVideoCount(val OptString)
- func (s *PlatformStatistics) SetViewCount(val OptString)
- func (s *PlatformStatistics) UnmarshalJSON(data []byte) error
- 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 ThumbnailResponse
- func (s *ThumbnailResponse) Decode(d *jx.Decoder) error
- func (s *ThumbnailResponse) Encode(e *jx.Encoder)
- func (s *ThumbnailResponse) GetHeight() OptInt
- func (s *ThumbnailResponse) GetURL() OptString
- func (s *ThumbnailResponse) GetWidth() OptInt
- func (s *ThumbnailResponse) MarshalJSON() ([]byte, error)
- func (s *ThumbnailResponse) SetHeight(val OptInt)
- func (s *ThumbnailResponse) SetURL(val OptString)
- func (s *ThumbnailResponse) SetWidth(val OptInt)
- func (s *ThumbnailResponse) UnmarshalJSON(data []byte) error
- type ThumbnailsResponse
- func (s *ThumbnailsResponse) Decode(d *jx.Decoder) error
- func (s *ThumbnailsResponse) Encode(e *jx.Encoder)
- func (s *ThumbnailsResponse) GetDefault() OptThumbnailResponse
- func (s *ThumbnailsResponse) GetHigh() OptThumbnailResponse
- func (s *ThumbnailsResponse) GetMaxres() OptThumbnailResponse
- func (s *ThumbnailsResponse) GetMedium() OptThumbnailResponse
- func (s *ThumbnailsResponse) GetStandard() OptThumbnailResponse
- func (s *ThumbnailsResponse) MarshalJSON() ([]byte, error)
- func (s *ThumbnailsResponse) SetDefault(val OptThumbnailResponse)
- func (s *ThumbnailsResponse) SetHigh(val OptThumbnailResponse)
- func (s *ThumbnailsResponse) SetMaxres(val OptThumbnailResponse)
- func (s *ThumbnailsResponse) SetMedium(val OptThumbnailResponse)
- func (s *ThumbnailsResponse) SetStandard(val OptThumbnailResponse)
- func (s *ThumbnailsResponse) UnmarshalJSON(data []byte) error
- type UnimplementedHandler
- func (UnimplementedHandler) ChannelsChannelIDVideosGet(ctx context.Context, params ChannelsChannelIDVideosGetParams) (r ChannelsChannelIDVideosGetRes, _ error)
- func (UnimplementedHandler) ChannelsChannelIDVideosPost(ctx context.Context, req *ChannelsChannelIDVideosPostReq, ...) (r ChannelsChannelIDVideosPostRes, _ error)
- func (UnimplementedHandler) ChannelsChannelIDVideosPut(ctx context.Context, req *ChannelsChannelIDVideosPutReq, ...) (r ChannelsChannelIDVideosPutRes, _ error)
- func (UnimplementedHandler) ChannelsGet(ctx context.Context, params ChannelsGetParams) (r ChannelsGetRes, _ error)
- func (UnimplementedHandler) ChannelsPost(ctx context.Context, req *ChannelsPostReq) (r ChannelsPostRes, _ error)
- func (UnimplementedHandler) ChannelsPut(ctx context.Context, req *ChannelsPutReq) (r ChannelsPutRes, _ error)
- type VideoResponse
- func (s *VideoResponse) Decode(d *jx.Decoder) error
- func (s *VideoResponse) Encode(e *jx.Encoder)
- func (s *VideoResponse) GetChannelId() OptString
- func (s *VideoResponse) GetChannelTitle() OptString
- func (s *VideoResponse) GetDescription() OptString
- func (s *VideoResponse) GetID() OptString
- func (s *VideoResponse) GetPublishedAt() OptString
- func (s *VideoResponse) GetTags() []string
- func (s *VideoResponse) GetThumbnails() OptThumbnailsResponse
- func (s *VideoResponse) GetTitle() OptString
- func (s *VideoResponse) MarshalJSON() ([]byte, error)
- func (s *VideoResponse) SetChannelId(val OptString)
- func (s *VideoResponse) SetChannelTitle(val OptString)
- func (s *VideoResponse) SetDescription(val OptString)
- func (s *VideoResponse) SetID(val OptString)
- func (s *VideoResponse) SetPublishedAt(val OptString)
- func (s *VideoResponse) SetTags(val []string)
- func (s *VideoResponse) SetThumbnails(val OptThumbnailsResponse)
- func (s *VideoResponse) SetTitle(val OptString)
- func (s *VideoResponse) UnmarshalJSON(data []byte) error
- type VideosResponse
- func (s *VideosResponse) Decode(d *jx.Decoder) error
- func (s *VideosResponse) Encode(e *jx.Encoder)
- func (s *VideosResponse) GetVideos() []VideoResponse
- func (s *VideosResponse) MarshalJSON() ([]byte, error)
- func (s *VideosResponse) SetVideos(val []VideoResponse)
- func (s *VideosResponse) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiKeyAuth ¶
type ApiKeyAuth struct {
APIKey string
}
func (*ApiKeyAuth) GetAPIKey ¶
func (s *ApiKeyAuth) GetAPIKey() string
GetAPIKey returns the value of APIKey.
func (*ApiKeyAuth) SetAPIKey ¶
func (s *ApiKeyAuth) SetAPIKey(val string)
SetAPIKey sets the value of APIKey.
type ChannelResponse ¶
type ChannelResponse struct { ID OptString `json:"id"` Snippet OptChannelSnippetResponse `json:"snippet"` Statistics OptChannelStatisticsResponse `json:"statistics"` }
Ref: #/components/schemas/ChannelResponse
func (*ChannelResponse) Decode ¶
func (s *ChannelResponse) Decode(d *jx.Decoder) error
Decode decodes ChannelResponse from json.
func (*ChannelResponse) Encode ¶
func (s *ChannelResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelResponse) GetID ¶
func (s *ChannelResponse) GetID() OptString
GetID returns the value of ID.
func (*ChannelResponse) GetSnippet ¶
func (s *ChannelResponse) GetSnippet() OptChannelSnippetResponse
GetSnippet returns the value of Snippet.
func (*ChannelResponse) GetStatistics ¶
func (s *ChannelResponse) GetStatistics() OptChannelStatisticsResponse
GetStatistics returns the value of Statistics.
func (*ChannelResponse) MarshalJSON ¶
func (s *ChannelResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelResponse) SetID ¶
func (s *ChannelResponse) SetID(val OptString)
SetID sets the value of ID.
func (*ChannelResponse) SetSnippet ¶
func (s *ChannelResponse) SetSnippet(val OptChannelSnippetResponse)
SetSnippet sets the value of Snippet.
func (*ChannelResponse) SetStatistics ¶
func (s *ChannelResponse) SetStatistics(val OptChannelStatisticsResponse)
SetStatistics sets the value of Statistics.
func (*ChannelResponse) UnmarshalJSON ¶
func (s *ChannelResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelSnippetResponse ¶
type ChannelSnippetResponse struct { Youtube OptPlatformSnippet `json:"Youtube"` Twitch OptPlatformSnippet `json:"Twitch"` TwitCasting OptPlatformSnippet `json:"TwitCasting"` Niconico OptPlatformSnippet `json:"Niconico"` }
Ref: #/components/schemas/ChannelSnippetResponse
func (*ChannelSnippetResponse) Decode ¶
func (s *ChannelSnippetResponse) Decode(d *jx.Decoder) error
Decode decodes ChannelSnippetResponse from json.
func (*ChannelSnippetResponse) Encode ¶
func (s *ChannelSnippetResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelSnippetResponse) GetNiconico ¶
func (s *ChannelSnippetResponse) GetNiconico() OptPlatformSnippet
GetNiconico returns the value of Niconico.
func (*ChannelSnippetResponse) GetTwitCasting ¶
func (s *ChannelSnippetResponse) GetTwitCasting() OptPlatformSnippet
GetTwitCasting returns the value of TwitCasting.
func (*ChannelSnippetResponse) GetTwitch ¶
func (s *ChannelSnippetResponse) GetTwitch() OptPlatformSnippet
GetTwitch returns the value of Twitch.
func (*ChannelSnippetResponse) GetYoutube ¶
func (s *ChannelSnippetResponse) GetYoutube() OptPlatformSnippet
GetYoutube returns the value of Youtube.
func (*ChannelSnippetResponse) MarshalJSON ¶
func (s *ChannelSnippetResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelSnippetResponse) SetNiconico ¶
func (s *ChannelSnippetResponse) SetNiconico(val OptPlatformSnippet)
SetNiconico sets the value of Niconico.
func (*ChannelSnippetResponse) SetTwitCasting ¶
func (s *ChannelSnippetResponse) SetTwitCasting(val OptPlatformSnippet)
SetTwitCasting sets the value of TwitCasting.
func (*ChannelSnippetResponse) SetTwitch ¶
func (s *ChannelSnippetResponse) SetTwitch(val OptPlatformSnippet)
SetTwitch sets the value of Twitch.
func (*ChannelSnippetResponse) SetYoutube ¶
func (s *ChannelSnippetResponse) SetYoutube(val OptPlatformSnippet)
SetYoutube sets the value of Youtube.
func (*ChannelSnippetResponse) UnmarshalJSON ¶
func (s *ChannelSnippetResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelStatisticsResponse ¶
type ChannelStatisticsResponse struct { Youtube OptPlatformStatistics `json:"Youtube"` Twitch OptPlatformStatistics `json:"Twitch"` TwitCasting OptPlatformStatistics `json:"TwitCasting"` Niconico OptPlatformStatistics `json:"Niconico"` }
Ref: #/components/schemas/ChannelStatisticsResponse
func (*ChannelStatisticsResponse) Decode ¶
func (s *ChannelStatisticsResponse) Decode(d *jx.Decoder) error
Decode decodes ChannelStatisticsResponse from json.
func (*ChannelStatisticsResponse) Encode ¶
func (s *ChannelStatisticsResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelStatisticsResponse) GetNiconico ¶
func (s *ChannelStatisticsResponse) GetNiconico() OptPlatformStatistics
GetNiconico returns the value of Niconico.
func (*ChannelStatisticsResponse) GetTwitCasting ¶
func (s *ChannelStatisticsResponse) GetTwitCasting() OptPlatformStatistics
GetTwitCasting returns the value of TwitCasting.
func (*ChannelStatisticsResponse) GetTwitch ¶
func (s *ChannelStatisticsResponse) GetTwitch() OptPlatformStatistics
GetTwitch returns the value of Twitch.
func (*ChannelStatisticsResponse) GetYoutube ¶
func (s *ChannelStatisticsResponse) GetYoutube() OptPlatformStatistics
GetYoutube returns the value of Youtube.
func (*ChannelStatisticsResponse) MarshalJSON ¶
func (s *ChannelStatisticsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelStatisticsResponse) SetNiconico ¶
func (s *ChannelStatisticsResponse) SetNiconico(val OptPlatformStatistics)
SetNiconico sets the value of Niconico.
func (*ChannelStatisticsResponse) SetTwitCasting ¶
func (s *ChannelStatisticsResponse) SetTwitCasting(val OptPlatformStatistics)
SetTwitCasting sets the value of TwitCasting.
func (*ChannelStatisticsResponse) SetTwitch ¶
func (s *ChannelStatisticsResponse) SetTwitch(val OptPlatformStatistics)
SetTwitch sets the value of Twitch.
func (*ChannelStatisticsResponse) SetYoutube ¶
func (s *ChannelStatisticsResponse) SetYoutube(val OptPlatformStatistics)
SetYoutube sets the value of Youtube.
func (*ChannelStatisticsResponse) UnmarshalJSON ¶
func (s *ChannelStatisticsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelsChannelIDVideosGetBadRequest ¶
type ChannelsChannelIDVideosGetBadRequest struct{}
ChannelsChannelIDVideosGetBadRequest is response for ChannelsChannelIDVideosGet operation.
type ChannelsChannelIDVideosGetForbidden ¶
type ChannelsChannelIDVideosGetForbidden struct{}
ChannelsChannelIDVideosGetForbidden is response for ChannelsChannelIDVideosGet operation.
type ChannelsChannelIDVideosGetInternalServerError ¶
type ChannelsChannelIDVideosGetInternalServerError struct{}
ChannelsChannelIDVideosGetInternalServerError is response for ChannelsChannelIDVideosGet operation.
type ChannelsChannelIDVideosGetNotFound ¶
type ChannelsChannelIDVideosGetNotFound struct{}
ChannelsChannelIDVideosGetNotFound is response for ChannelsChannelIDVideosGet operation.
type ChannelsChannelIDVideosGetOK ¶
type ChannelsChannelIDVideosGetOK struct { Data OptVideosResponse `json:"data"` Pagination OptPagination `json:"pagination"` }
func (*ChannelsChannelIDVideosGetOK) Decode ¶
func (s *ChannelsChannelIDVideosGetOK) Decode(d *jx.Decoder) error
Decode decodes ChannelsChannelIDVideosGetOK from json.
func (*ChannelsChannelIDVideosGetOK) Encode ¶
func (s *ChannelsChannelIDVideosGetOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelsChannelIDVideosGetOK) GetData ¶
func (s *ChannelsChannelIDVideosGetOK) GetData() OptVideosResponse
GetData returns the value of Data.
func (*ChannelsChannelIDVideosGetOK) GetPagination ¶
func (s *ChannelsChannelIDVideosGetOK) GetPagination() OptPagination
GetPagination returns the value of Pagination.
func (*ChannelsChannelIDVideosGetOK) MarshalJSON ¶
func (s *ChannelsChannelIDVideosGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelsChannelIDVideosGetOK) SetData ¶
func (s *ChannelsChannelIDVideosGetOK) SetData(val OptVideosResponse)
SetData sets the value of Data.
func (*ChannelsChannelIDVideosGetOK) SetPagination ¶
func (s *ChannelsChannelIDVideosGetOK) SetPagination(val OptPagination)
SetPagination sets the value of Pagination.
func (*ChannelsChannelIDVideosGetOK) UnmarshalJSON ¶
func (s *ChannelsChannelIDVideosGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelsChannelIDVideosGetParams ¶
type ChannelsChannelIDVideosGetParams struct { // Unique identifier of the channel. ChannelID string // Comma-separated list of videos IDs. Ids OptString // Start Date. StartDate string // End Date. EndDate string // Page. Page OptInt // Page limit. Limit OptInt }
ChannelsChannelIDVideosGetParams is parameters of GET /channels/{channel_id}/videos operation.
type ChannelsChannelIDVideosGetRes ¶
type ChannelsChannelIDVideosGetRes interface {
// contains filtered or unexported methods
}
type ChannelsChannelIDVideosGetUnauthorized ¶
type ChannelsChannelIDVideosGetUnauthorized struct{}
ChannelsChannelIDVideosGetUnauthorized is response for ChannelsChannelIDVideosGet operation.
type ChannelsChannelIDVideosPostBadRequest ¶
type ChannelsChannelIDVideosPostBadRequest struct{}
ChannelsChannelIDVideosPostBadRequest is response for ChannelsChannelIDVideosPost operation.
type ChannelsChannelIDVideosPostForbidden ¶
type ChannelsChannelIDVideosPostForbidden struct{}
ChannelsChannelIDVideosPostForbidden is response for ChannelsChannelIDVideosPost operation.
type ChannelsChannelIDVideosPostInternalServerError ¶
type ChannelsChannelIDVideosPostInternalServerError struct{}
ChannelsChannelIDVideosPostInternalServerError is response for ChannelsChannelIDVideosPost operation.
type ChannelsChannelIDVideosPostNotFound ¶
type ChannelsChannelIDVideosPostNotFound struct{}
ChannelsChannelIDVideosPostNotFound is response for ChannelsChannelIDVideosPost operation.
type ChannelsChannelIDVideosPostParams ¶
type ChannelsChannelIDVideosPostParams struct { // Unique identifier of the channel. ChannelID string }
ChannelsChannelIDVideosPostParams is parameters of POST /channels/{channel_id}/videos operation.
type ChannelsChannelIDVideosPostReq ¶
type ChannelsChannelIDVideosPostReq struct { // Array of YouTube Video IDs. Ids []string `json:"ids"` }
func (*ChannelsChannelIDVideosPostReq) Decode ¶
func (s *ChannelsChannelIDVideosPostReq) Decode(d *jx.Decoder) error
Decode decodes ChannelsChannelIDVideosPostReq from json.
func (*ChannelsChannelIDVideosPostReq) Encode ¶
func (s *ChannelsChannelIDVideosPostReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelsChannelIDVideosPostReq) GetIds ¶
func (s *ChannelsChannelIDVideosPostReq) GetIds() []string
GetIds returns the value of Ids.
func (*ChannelsChannelIDVideosPostReq) MarshalJSON ¶
func (s *ChannelsChannelIDVideosPostReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelsChannelIDVideosPostReq) SetIds ¶
func (s *ChannelsChannelIDVideosPostReq) SetIds(val []string)
SetIds sets the value of Ids.
func (*ChannelsChannelIDVideosPostReq) UnmarshalJSON ¶
func (s *ChannelsChannelIDVideosPostReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelsChannelIDVideosPostRes ¶
type ChannelsChannelIDVideosPostRes interface {
// contains filtered or unexported methods
}
type ChannelsChannelIDVideosPostUnauthorized ¶
type ChannelsChannelIDVideosPostUnauthorized struct{}
ChannelsChannelIDVideosPostUnauthorized is response for ChannelsChannelIDVideosPost operation.
type ChannelsChannelIDVideosPutBadRequest ¶
type ChannelsChannelIDVideosPutBadRequest struct{}
ChannelsChannelIDVideosPutBadRequest is response for ChannelsChannelIDVideosPut operation.
type ChannelsChannelIDVideosPutForbidden ¶
type ChannelsChannelIDVideosPutForbidden struct{}
ChannelsChannelIDVideosPutForbidden is response for ChannelsChannelIDVideosPut operation.
type ChannelsChannelIDVideosPutInternalServerError ¶
type ChannelsChannelIDVideosPutInternalServerError struct{}
ChannelsChannelIDVideosPutInternalServerError is response for ChannelsChannelIDVideosPut operation.
type ChannelsChannelIDVideosPutNotFound ¶
type ChannelsChannelIDVideosPutNotFound struct{}
ChannelsChannelIDVideosPutNotFound is response for ChannelsChannelIDVideosPut operation.
type ChannelsChannelIDVideosPutParams ¶
type ChannelsChannelIDVideosPutParams struct { // Unique identifier of the channel. ChannelID string }
ChannelsChannelIDVideosPutParams is parameters of PUT /channels/{channel_id}/videos operation.
type ChannelsChannelIDVideosPutReq ¶
type ChannelsChannelIDVideosPutReq struct { // Array of YouTube Video IDs. Ids []string `json:"ids"` }
func (*ChannelsChannelIDVideosPutReq) Decode ¶
func (s *ChannelsChannelIDVideosPutReq) Decode(d *jx.Decoder) error
Decode decodes ChannelsChannelIDVideosPutReq from json.
func (*ChannelsChannelIDVideosPutReq) Encode ¶
func (s *ChannelsChannelIDVideosPutReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelsChannelIDVideosPutReq) GetIds ¶
func (s *ChannelsChannelIDVideosPutReq) GetIds() []string
GetIds returns the value of Ids.
func (*ChannelsChannelIDVideosPutReq) MarshalJSON ¶
func (s *ChannelsChannelIDVideosPutReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelsChannelIDVideosPutReq) SetIds ¶
func (s *ChannelsChannelIDVideosPutReq) SetIds(val []string)
SetIds sets the value of Ids.
func (*ChannelsChannelIDVideosPutReq) UnmarshalJSON ¶
func (s *ChannelsChannelIDVideosPutReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelsChannelIDVideosPutRes ¶
type ChannelsChannelIDVideosPutRes interface {
// contains filtered or unexported methods
}
type ChannelsChannelIDVideosPutUnauthorized ¶
type ChannelsChannelIDVideosPutUnauthorized struct{}
ChannelsChannelIDVideosPutUnauthorized is response for ChannelsChannelIDVideosPut operation.
type ChannelsGetBadRequest ¶
type ChannelsGetBadRequest struct{}
ChannelsGetBadRequest is response for ChannelsGet operation.
type ChannelsGetForbidden ¶
type ChannelsGetForbidden struct{}
ChannelsGetForbidden is response for ChannelsGet operation.
type ChannelsGetInternalServerError ¶
type ChannelsGetInternalServerError struct{}
ChannelsGetInternalServerError is response for ChannelsGet operation.
type ChannelsGetNotFound ¶
type ChannelsGetNotFound struct{}
ChannelsGetNotFound is response for ChannelsGet operation.
type ChannelsGetOK ¶
type ChannelsGetOK struct { Data OptChannelsResponse `json:"data"` Pagination OptPagination `json:"pagination"` }
func (*ChannelsGetOK) Decode ¶
func (s *ChannelsGetOK) Decode(d *jx.Decoder) error
Decode decodes ChannelsGetOK from json.
func (*ChannelsGetOK) Encode ¶
func (s *ChannelsGetOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelsGetOK) GetData ¶
func (s *ChannelsGetOK) GetData() OptChannelsResponse
GetData returns the value of Data.
func (*ChannelsGetOK) GetPagination ¶
func (s *ChannelsGetOK) GetPagination() OptPagination
GetPagination returns the value of Pagination.
func (*ChannelsGetOK) MarshalJSON ¶
func (s *ChannelsGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelsGetOK) SetData ¶
func (s *ChannelsGetOK) SetData(val OptChannelsResponse)
SetData sets the value of Data.
func (*ChannelsGetOK) SetPagination ¶
func (s *ChannelsGetOK) SetPagination(val OptPagination)
SetPagination sets the value of Pagination.
func (*ChannelsGetOK) UnmarshalJSON ¶
func (s *ChannelsGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelsGetParams ¶
type ChannelsGetParams struct { // Comma-separated list of channel IDs. Ids OptString // Page. Page OptInt // Page limit. Limit OptInt }
ChannelsGetParams is parameters of GET /channels operation.
type ChannelsGetRes ¶
type ChannelsGetRes interface {
// contains filtered or unexported methods
}
type ChannelsGetUnauthorized ¶
type ChannelsGetUnauthorized struct{}
ChannelsGetUnauthorized is response for ChannelsGet operation.
type ChannelsPostBadRequest ¶
type ChannelsPostBadRequest struct{}
ChannelsPostBadRequest is response for ChannelsPost operation.
type ChannelsPostForbidden ¶
type ChannelsPostForbidden struct{}
ChannelsPostForbidden is response for ChannelsPost operation.
type ChannelsPostInternalServerError ¶
type ChannelsPostInternalServerError struct{}
ChannelsPostInternalServerError is response for ChannelsPost operation.
type ChannelsPostNotFound ¶
type ChannelsPostNotFound struct{}
ChannelsPostNotFound is response for ChannelsPost operation.
type ChannelsPostReq ¶
type ChannelsPostReq struct { // Array of YouTube channel IDs. Ids []string `json:"ids"` }
func (*ChannelsPostReq) Decode ¶
func (s *ChannelsPostReq) Decode(d *jx.Decoder) error
Decode decodes ChannelsPostReq from json.
func (*ChannelsPostReq) Encode ¶
func (s *ChannelsPostReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelsPostReq) GetIds ¶
func (s *ChannelsPostReq) GetIds() []string
GetIds returns the value of Ids.
func (*ChannelsPostReq) MarshalJSON ¶
func (s *ChannelsPostReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelsPostReq) SetIds ¶
func (s *ChannelsPostReq) SetIds(val []string)
SetIds sets the value of Ids.
func (*ChannelsPostReq) UnmarshalJSON ¶
func (s *ChannelsPostReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelsPostRes ¶
type ChannelsPostRes interface {
// contains filtered or unexported methods
}
type ChannelsPostUnauthorized ¶
type ChannelsPostUnauthorized struct{}
ChannelsPostUnauthorized is response for ChannelsPost operation.
type ChannelsPutBadRequest ¶
type ChannelsPutBadRequest struct{}
ChannelsPutBadRequest is response for ChannelsPut operation.
type ChannelsPutForbidden ¶
type ChannelsPutForbidden struct{}
ChannelsPutForbidden is response for ChannelsPut operation.
type ChannelsPutInternalServerError ¶
type ChannelsPutInternalServerError struct{}
ChannelsPutInternalServerError is response for ChannelsPut operation.
type ChannelsPutNotFound ¶
type ChannelsPutNotFound struct{}
ChannelsPutNotFound is response for ChannelsPut operation.
type ChannelsPutReq ¶
type ChannelsPutReq struct { // Array of YouTube channel IDs. Ids []string `json:"ids"` }
func (*ChannelsPutReq) Decode ¶
func (s *ChannelsPutReq) Decode(d *jx.Decoder) error
Decode decodes ChannelsPutReq from json.
func (*ChannelsPutReq) Encode ¶
func (s *ChannelsPutReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelsPutReq) GetIds ¶
func (s *ChannelsPutReq) GetIds() []string
GetIds returns the value of Ids.
func (*ChannelsPutReq) MarshalJSON ¶
func (s *ChannelsPutReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelsPutReq) SetIds ¶
func (s *ChannelsPutReq) SetIds(val []string)
SetIds sets the value of Ids.
func (*ChannelsPutReq) UnmarshalJSON ¶
func (s *ChannelsPutReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelsPutRes ¶
type ChannelsPutRes interface {
// contains filtered or unexported methods
}
type ChannelsPutUnauthorized ¶
type ChannelsPutUnauthorized struct{}
ChannelsPutUnauthorized is response for ChannelsPut operation.
type ChannelsResponse ¶
type ChannelsResponse struct {
Channels []ChannelResponse `json:"channels"`
}
Ref: #/components/schemas/ChannelsResponse
func (*ChannelsResponse) Decode ¶
func (s *ChannelsResponse) Decode(d *jx.Decoder) error
Decode decodes ChannelsResponse from json.
func (*ChannelsResponse) Encode ¶
func (s *ChannelsResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelsResponse) GetChannels ¶
func (s *ChannelsResponse) GetChannels() []ChannelResponse
GetChannels returns the value of Channels.
func (*ChannelsResponse) MarshalJSON ¶
func (s *ChannelsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelsResponse) SetChannels ¶
func (s *ChannelsResponse) SetChannels(val []ChannelResponse)
SetChannels sets the value of Channels.
func (*ChannelsResponse) UnmarshalJSON ¶
func (s *ChannelsResponse) 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, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) ChannelsChannelIDVideosGet ¶
func (c *Client) ChannelsChannelIDVideosGet(ctx context.Context, params ChannelsChannelIDVideosGetParams) (ChannelsChannelIDVideosGetRes, error)
ChannelsChannelIDVideosGet invokes GET /channels/{channel_id}/videos operation.
Retrieve all videos related to a specific channel.
GET /channels/{channel_id}/videos
func (*Client) ChannelsChannelIDVideosPost ¶
func (c *Client) ChannelsChannelIDVideosPost(ctx context.Context, request *ChannelsChannelIDVideosPostReq, params ChannelsChannelIDVideosPostParams) (ChannelsChannelIDVideosPostRes, error)
ChannelsChannelIDVideosPost invokes POST /channels/{channel_id}/videos operation.
Update videos related to a specific channel based on provided cronType.
POST /channels/{channel_id}/videos
func (*Client) ChannelsChannelIDVideosPut ¶
func (c *Client) ChannelsChannelIDVideosPut(ctx context.Context, request *ChannelsChannelIDVideosPutReq, params ChannelsChannelIDVideosPutParams) (ChannelsChannelIDVideosPutRes, error)
ChannelsChannelIDVideosPut invokes PUT /channels/{channel_id}/videos operation.
Update videos related to a specific channel based on provided cronType.
PUT /channels/{channel_id}/videos
func (*Client) ChannelsGet ¶
func (c *Client) ChannelsGet(ctx context.Context, params ChannelsGetParams) (ChannelsGetRes, error)
ChannelsGet invokes GET /channels operation.
Retrieves all channels based on provided IDs.
GET /channels
func (*Client) ChannelsPost ¶
func (c *Client) ChannelsPost(ctx context.Context, request *ChannelsPostReq) (ChannelsPostRes, error)
ChannelsPost invokes POST /channels operation.
Creates channels by fetching from Youtube using provided Channel IDs.
POST /channels
func (*Client) ChannelsPut ¶
func (c *Client) ChannelsPut(ctx context.Context, request *ChannelsPutReq) (ChannelsPutRes, error)
ChannelsPut invokes PUT /channels operation.
Updates channels by fetching from Youtube using provided Channel IDs.
PUT /channels
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 Handler ¶
type Handler interface { // ChannelsChannelIDVideosGet implements GET /channels/{channel_id}/videos operation. // // Retrieve all videos related to a specific channel. // // GET /channels/{channel_id}/videos ChannelsChannelIDVideosGet(ctx context.Context, params ChannelsChannelIDVideosGetParams) (ChannelsChannelIDVideosGetRes, error) // ChannelsChannelIDVideosPost implements POST /channels/{channel_id}/videos operation. // // Update videos related to a specific channel based on provided cronType. // // POST /channels/{channel_id}/videos ChannelsChannelIDVideosPost(ctx context.Context, req *ChannelsChannelIDVideosPostReq, params ChannelsChannelIDVideosPostParams) (ChannelsChannelIDVideosPostRes, error) // ChannelsChannelIDVideosPut implements PUT /channels/{channel_id}/videos operation. // // Update videos related to a specific channel based on provided cronType. // // PUT /channels/{channel_id}/videos ChannelsChannelIDVideosPut(ctx context.Context, req *ChannelsChannelIDVideosPutReq, params ChannelsChannelIDVideosPutParams) (ChannelsChannelIDVideosPutRes, error) // ChannelsGet implements GET /channels operation. // // Retrieves all channels based on provided IDs. // // GET /channels ChannelsGet(ctx context.Context, params ChannelsGetParams) (ChannelsGetRes, error) // ChannelsPost implements POST /channels operation. // // Creates channels by fetching from Youtube using provided Channel IDs. // // POST /channels ChannelsPost(ctx context.Context, req *ChannelsPostReq) (ChannelsPostRes, error) // ChannelsPut implements PUT /channels operation. // // Updates channels by fetching from Youtube using provided Channel IDs. // // PUT /channels ChannelsPut(ctx context.Context, req *ChannelsPutReq) (ChannelsPutRes, error) }
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface { // ChannelsChannelIDVideosGet invokes GET /channels/{channel_id}/videos operation. // // Retrieve all videos related to a specific channel. // // GET /channels/{channel_id}/videos ChannelsChannelIDVideosGet(ctx context.Context, params ChannelsChannelIDVideosGetParams) (ChannelsChannelIDVideosGetRes, error) // ChannelsChannelIDVideosPost invokes POST /channels/{channel_id}/videos operation. // // Update videos related to a specific channel based on provided cronType. // // POST /channels/{channel_id}/videos ChannelsChannelIDVideosPost(ctx context.Context, request *ChannelsChannelIDVideosPostReq, params ChannelsChannelIDVideosPostParams) (ChannelsChannelIDVideosPostRes, error) // ChannelsChannelIDVideosPut invokes PUT /channels/{channel_id}/videos operation. // // Update videos related to a specific channel based on provided cronType. // // PUT /channels/{channel_id}/videos ChannelsChannelIDVideosPut(ctx context.Context, request *ChannelsChannelIDVideosPutReq, params ChannelsChannelIDVideosPutParams) (ChannelsChannelIDVideosPutRes, error) // ChannelsGet invokes GET /channels operation. // // Retrieves all channels based on provided IDs. // // GET /channels ChannelsGet(ctx context.Context, params ChannelsGetParams) (ChannelsGetRes, error) // ChannelsPost invokes POST /channels operation. // // Creates channels by fetching from Youtube using provided Channel IDs. // // POST /channels ChannelsPost(ctx context.Context, request *ChannelsPostReq) (ChannelsPostRes, error) // ChannelsPut invokes PUT /channels operation. // // Updates channels by fetching from Youtube using provided Channel IDs. // // PUT /channels ChannelsPut(ctx context.Context, request *ChannelsPutReq) (ChannelsPutRes, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChannelSnippetResponse ¶
type OptChannelSnippetResponse struct { Value ChannelSnippetResponse Set bool }
OptChannelSnippetResponse is optional ChannelSnippetResponse.
func NewOptChannelSnippetResponse ¶
func NewOptChannelSnippetResponse(v ChannelSnippetResponse) OptChannelSnippetResponse
NewOptChannelSnippetResponse returns new OptChannelSnippetResponse with value set to v.
func (*OptChannelSnippetResponse) Decode ¶
func (o *OptChannelSnippetResponse) Decode(d *jx.Decoder) error
Decode decodes ChannelSnippetResponse from json.
func (OptChannelSnippetResponse) Encode ¶
func (o OptChannelSnippetResponse) Encode(e *jx.Encoder)
Encode encodes ChannelSnippetResponse as json.
func (OptChannelSnippetResponse) Get ¶
func (o OptChannelSnippetResponse) Get() (v ChannelSnippetResponse, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChannelSnippetResponse) IsSet ¶
func (o OptChannelSnippetResponse) IsSet() bool
IsSet returns true if OptChannelSnippetResponse was set.
func (OptChannelSnippetResponse) MarshalJSON ¶
func (s OptChannelSnippetResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptChannelSnippetResponse) Reset ¶
func (o *OptChannelSnippetResponse) Reset()
Reset unsets value.
func (*OptChannelSnippetResponse) SetTo ¶
func (o *OptChannelSnippetResponse) SetTo(v ChannelSnippetResponse)
SetTo sets value to v.
func (*OptChannelSnippetResponse) UnmarshalJSON ¶
func (s *OptChannelSnippetResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChannelStatisticsResponse ¶
type OptChannelStatisticsResponse struct { Value ChannelStatisticsResponse Set bool }
OptChannelStatisticsResponse is optional ChannelStatisticsResponse.
func NewOptChannelStatisticsResponse ¶
func NewOptChannelStatisticsResponse(v ChannelStatisticsResponse) OptChannelStatisticsResponse
NewOptChannelStatisticsResponse returns new OptChannelStatisticsResponse with value set to v.
func (*OptChannelStatisticsResponse) Decode ¶
func (o *OptChannelStatisticsResponse) Decode(d *jx.Decoder) error
Decode decodes ChannelStatisticsResponse from json.
func (OptChannelStatisticsResponse) Encode ¶
func (o OptChannelStatisticsResponse) Encode(e *jx.Encoder)
Encode encodes ChannelStatisticsResponse as json.
func (OptChannelStatisticsResponse) Get ¶
func (o OptChannelStatisticsResponse) Get() (v ChannelStatisticsResponse, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChannelStatisticsResponse) IsSet ¶
func (o OptChannelStatisticsResponse) IsSet() bool
IsSet returns true if OptChannelStatisticsResponse was set.
func (OptChannelStatisticsResponse) MarshalJSON ¶
func (s OptChannelStatisticsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptChannelStatisticsResponse) Reset ¶
func (o *OptChannelStatisticsResponse) Reset()
Reset unsets value.
func (*OptChannelStatisticsResponse) SetTo ¶
func (o *OptChannelStatisticsResponse) SetTo(v ChannelStatisticsResponse)
SetTo sets value to v.
func (*OptChannelStatisticsResponse) UnmarshalJSON ¶
func (s *OptChannelStatisticsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChannelsResponse ¶
type OptChannelsResponse struct { Value ChannelsResponse Set bool }
OptChannelsResponse is optional ChannelsResponse.
func NewOptChannelsResponse ¶
func NewOptChannelsResponse(v ChannelsResponse) OptChannelsResponse
NewOptChannelsResponse returns new OptChannelsResponse with value set to v.
func (*OptChannelsResponse) Decode ¶
func (o *OptChannelsResponse) Decode(d *jx.Decoder) error
Decode decodes ChannelsResponse from json.
func (OptChannelsResponse) Encode ¶
func (o OptChannelsResponse) Encode(e *jx.Encoder)
Encode encodes ChannelsResponse as json.
func (OptChannelsResponse) Get ¶
func (o OptChannelsResponse) Get() (v ChannelsResponse, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChannelsResponse) IsSet ¶
func (o OptChannelsResponse) IsSet() bool
IsSet returns true if OptChannelsResponse was set.
func (OptChannelsResponse) MarshalJSON ¶
func (s OptChannelsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChannelsResponse) Or ¶
func (o OptChannelsResponse) Or(d ChannelsResponse) ChannelsResponse
Or returns value if set, or given parameter if does not.
func (*OptChannelsResponse) SetTo ¶
func (o *OptChannelsResponse) SetTo(v ChannelsResponse)
SetTo sets value to v.
func (*OptChannelsResponse) UnmarshalJSON ¶
func (s *OptChannelsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
func (OptDateTime) Get ¶
func (o OptDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDateTime) IsSet ¶
func (o OptDateTime) IsSet() bool
IsSet returns true if OptDateTime was set.
func (OptDateTime) MarshalJSON ¶
func (s OptDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDateTime) Or ¶
func (o OptDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptDateTime) UnmarshalJSON ¶
func (s *OptDateTime) 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 OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPagination ¶
type OptPagination struct { Value Pagination Set bool }
OptPagination is optional Pagination.
func NewOptPagination ¶
func NewOptPagination(v Pagination) OptPagination
NewOptPagination returns new OptPagination with value set to v.
func (*OptPagination) Decode ¶
func (o *OptPagination) Decode(d *jx.Decoder) error
Decode decodes Pagination from json.
func (OptPagination) Encode ¶
func (o OptPagination) Encode(e *jx.Encoder)
Encode encodes Pagination as json.
func (OptPagination) Get ¶
func (o OptPagination) Get() (v Pagination, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPagination) IsSet ¶
func (o OptPagination) IsSet() bool
IsSet returns true if OptPagination was set.
func (OptPagination) MarshalJSON ¶
func (s OptPagination) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPagination) Or ¶
func (o OptPagination) Or(d Pagination) Pagination
Or returns value if set, or given parameter if does not.
func (*OptPagination) UnmarshalJSON ¶
func (s *OptPagination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPlatformSnippet ¶
type OptPlatformSnippet struct { Value PlatformSnippet Set bool }
OptPlatformSnippet is optional PlatformSnippet.
func NewOptPlatformSnippet ¶
func NewOptPlatformSnippet(v PlatformSnippet) OptPlatformSnippet
NewOptPlatformSnippet returns new OptPlatformSnippet with value set to v.
func (*OptPlatformSnippet) Decode ¶
func (o *OptPlatformSnippet) Decode(d *jx.Decoder) error
Decode decodes PlatformSnippet from json.
func (OptPlatformSnippet) Encode ¶
func (o OptPlatformSnippet) Encode(e *jx.Encoder)
Encode encodes PlatformSnippet as json.
func (OptPlatformSnippet) Get ¶
func (o OptPlatformSnippet) Get() (v PlatformSnippet, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPlatformSnippet) IsSet ¶
func (o OptPlatformSnippet) IsSet() bool
IsSet returns true if OptPlatformSnippet was set.
func (OptPlatformSnippet) MarshalJSON ¶
func (s OptPlatformSnippet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPlatformSnippet) Or ¶
func (o OptPlatformSnippet) Or(d PlatformSnippet) PlatformSnippet
Or returns value if set, or given parameter if does not.
func (*OptPlatformSnippet) SetTo ¶
func (o *OptPlatformSnippet) SetTo(v PlatformSnippet)
SetTo sets value to v.
func (*OptPlatformSnippet) UnmarshalJSON ¶
func (s *OptPlatformSnippet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPlatformStatistics ¶
type OptPlatformStatistics struct { Value PlatformStatistics Set bool }
OptPlatformStatistics is optional PlatformStatistics.
func NewOptPlatformStatistics ¶
func NewOptPlatformStatistics(v PlatformStatistics) OptPlatformStatistics
NewOptPlatformStatistics returns new OptPlatformStatistics with value set to v.
func (*OptPlatformStatistics) Decode ¶
func (o *OptPlatformStatistics) Decode(d *jx.Decoder) error
Decode decodes PlatformStatistics from json.
func (OptPlatformStatistics) Encode ¶
func (o OptPlatformStatistics) Encode(e *jx.Encoder)
Encode encodes PlatformStatistics as json.
func (OptPlatformStatistics) Get ¶
func (o OptPlatformStatistics) Get() (v PlatformStatistics, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPlatformStatistics) IsSet ¶
func (o OptPlatformStatistics) IsSet() bool
IsSet returns true if OptPlatformStatistics was set.
func (OptPlatformStatistics) MarshalJSON ¶
func (s OptPlatformStatistics) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPlatformStatistics) Or ¶
func (o OptPlatformStatistics) Or(d PlatformStatistics) PlatformStatistics
Or returns value if set, or given parameter if does not.
func (*OptPlatformStatistics) SetTo ¶
func (o *OptPlatformStatistics) SetTo(v PlatformStatistics)
SetTo sets value to v.
func (*OptPlatformStatistics) UnmarshalJSON ¶
func (s *OptPlatformStatistics) 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 OptThumbnailResponse ¶
type OptThumbnailResponse struct { Value ThumbnailResponse Set bool }
OptThumbnailResponse is optional ThumbnailResponse.
func NewOptThumbnailResponse ¶
func NewOptThumbnailResponse(v ThumbnailResponse) OptThumbnailResponse
NewOptThumbnailResponse returns new OptThumbnailResponse with value set to v.
func (*OptThumbnailResponse) Decode ¶
func (o *OptThumbnailResponse) Decode(d *jx.Decoder) error
Decode decodes ThumbnailResponse from json.
func (OptThumbnailResponse) Encode ¶
func (o OptThumbnailResponse) Encode(e *jx.Encoder)
Encode encodes ThumbnailResponse as json.
func (OptThumbnailResponse) Get ¶
func (o OptThumbnailResponse) Get() (v ThumbnailResponse, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptThumbnailResponse) IsSet ¶
func (o OptThumbnailResponse) IsSet() bool
IsSet returns true if OptThumbnailResponse was set.
func (OptThumbnailResponse) MarshalJSON ¶
func (s OptThumbnailResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptThumbnailResponse) Or ¶
func (o OptThumbnailResponse) Or(d ThumbnailResponse) ThumbnailResponse
Or returns value if set, or given parameter if does not.
func (*OptThumbnailResponse) SetTo ¶
func (o *OptThumbnailResponse) SetTo(v ThumbnailResponse)
SetTo sets value to v.
func (*OptThumbnailResponse) UnmarshalJSON ¶
func (s *OptThumbnailResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptThumbnailsResponse ¶
type OptThumbnailsResponse struct { Value ThumbnailsResponse Set bool }
OptThumbnailsResponse is optional ThumbnailsResponse.
func NewOptThumbnailsResponse ¶
func NewOptThumbnailsResponse(v ThumbnailsResponse) OptThumbnailsResponse
NewOptThumbnailsResponse returns new OptThumbnailsResponse with value set to v.
func (*OptThumbnailsResponse) Decode ¶
func (o *OptThumbnailsResponse) Decode(d *jx.Decoder) error
Decode decodes ThumbnailsResponse from json.
func (OptThumbnailsResponse) Encode ¶
func (o OptThumbnailsResponse) Encode(e *jx.Encoder)
Encode encodes ThumbnailsResponse as json.
func (OptThumbnailsResponse) Get ¶
func (o OptThumbnailsResponse) Get() (v ThumbnailsResponse, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptThumbnailsResponse) IsSet ¶
func (o OptThumbnailsResponse) IsSet() bool
IsSet returns true if OptThumbnailsResponse was set.
func (OptThumbnailsResponse) MarshalJSON ¶
func (s OptThumbnailsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptThumbnailsResponse) Or ¶
func (o OptThumbnailsResponse) Or(d ThumbnailsResponse) ThumbnailsResponse
Or returns value if set, or given parameter if does not.
func (*OptThumbnailsResponse) SetTo ¶
func (o *OptThumbnailsResponse) SetTo(v ThumbnailsResponse)
SetTo sets value to v.
func (*OptThumbnailsResponse) UnmarshalJSON ¶
func (s *OptThumbnailsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVideosResponse ¶
type OptVideosResponse struct { Value VideosResponse Set bool }
OptVideosResponse is optional VideosResponse.
func NewOptVideosResponse ¶
func NewOptVideosResponse(v VideosResponse) OptVideosResponse
NewOptVideosResponse returns new OptVideosResponse with value set to v.
func (*OptVideosResponse) Decode ¶
func (o *OptVideosResponse) Decode(d *jx.Decoder) error
Decode decodes VideosResponse from json.
func (OptVideosResponse) Encode ¶
func (o OptVideosResponse) Encode(e *jx.Encoder)
Encode encodes VideosResponse as json.
func (OptVideosResponse) Get ¶
func (o OptVideosResponse) Get() (v VideosResponse, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptVideosResponse) IsSet ¶
func (o OptVideosResponse) IsSet() bool
IsSet returns true if OptVideosResponse was set.
func (OptVideosResponse) MarshalJSON ¶
func (s OptVideosResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptVideosResponse) Or ¶
func (o OptVideosResponse) Or(d VideosResponse) VideosResponse
Or returns value if set, or given parameter if does not.
func (*OptVideosResponse) SetTo ¶
func (o *OptVideosResponse) SetTo(v VideosResponse)
SetTo sets value to v.
func (*OptVideosResponse) UnmarshalJSON ¶
func (s *OptVideosResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface { ServerOption ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Pagination ¶
type Pagination struct { CurrentPage OptInt64 `json:"CurrentPage"` PrevPage OptInt64 `json:"PrevPage"` NextPage OptInt64 `json:"NextPage"` TotalPage OptInt64 `json:"TotalPage"` TotalCount OptInt64 `json:"TotalCount"` HasNext OptBool `json:"HasNext"` }
Ref: #/components/schemas/Pagination
func (*Pagination) Decode ¶
func (s *Pagination) Decode(d *jx.Decoder) error
Decode decodes Pagination from json.
func (*Pagination) Encode ¶
func (s *Pagination) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Pagination) GetCurrentPage ¶
func (s *Pagination) GetCurrentPage() OptInt64
GetCurrentPage returns the value of CurrentPage.
func (*Pagination) GetHasNext ¶
func (s *Pagination) GetHasNext() OptBool
GetHasNext returns the value of HasNext.
func (*Pagination) GetNextPage ¶
func (s *Pagination) GetNextPage() OptInt64
GetNextPage returns the value of NextPage.
func (*Pagination) GetPrevPage ¶
func (s *Pagination) GetPrevPage() OptInt64
GetPrevPage returns the value of PrevPage.
func (*Pagination) GetTotalCount ¶
func (s *Pagination) GetTotalCount() OptInt64
GetTotalCount returns the value of TotalCount.
func (*Pagination) GetTotalPage ¶
func (s *Pagination) GetTotalPage() OptInt64
GetTotalPage returns the value of TotalPage.
func (*Pagination) MarshalJSON ¶
func (s *Pagination) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Pagination) SetCurrentPage ¶
func (s *Pagination) SetCurrentPage(val OptInt64)
SetCurrentPage sets the value of CurrentPage.
func (*Pagination) SetHasNext ¶
func (s *Pagination) SetHasNext(val OptBool)
SetHasNext sets the value of HasNext.
func (*Pagination) SetNextPage ¶
func (s *Pagination) SetNextPage(val OptInt64)
SetNextPage sets the value of NextPage.
func (*Pagination) SetPrevPage ¶
func (s *Pagination) SetPrevPage(val OptInt64)
SetPrevPage sets the value of PrevPage.
func (*Pagination) SetTotalCount ¶
func (s *Pagination) SetTotalCount(val OptInt64)
SetTotalCount sets the value of TotalCount.
func (*Pagination) SetTotalPage ¶
func (s *Pagination) SetTotalPage(val OptInt64)
SetTotalPage sets the value of TotalPage.
func (*Pagination) UnmarshalJSON ¶
func (s *Pagination) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PlatformSnippet ¶
type PlatformSnippet struct { Title OptString `json:"Title"` Description OptString `json:"Description"` CustomURL OptString `json:"CustomURL"` PublishedAt OptDateTime `json:"PublishedAt"` Thumbnails OptThumbnailsResponse `json:"Thumbnails"` }
Ref: #/components/schemas/PlatformSnippet
func (*PlatformSnippet) Decode ¶
func (s *PlatformSnippet) Decode(d *jx.Decoder) error
Decode decodes PlatformSnippet from json.
func (*PlatformSnippet) Encode ¶
func (s *PlatformSnippet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PlatformSnippet) GetCustomURL ¶
func (s *PlatformSnippet) GetCustomURL() OptString
GetCustomURL returns the value of CustomURL.
func (*PlatformSnippet) GetDescription ¶
func (s *PlatformSnippet) GetDescription() OptString
GetDescription returns the value of Description.
func (*PlatformSnippet) GetPublishedAt ¶
func (s *PlatformSnippet) GetPublishedAt() OptDateTime
GetPublishedAt returns the value of PublishedAt.
func (*PlatformSnippet) GetThumbnails ¶
func (s *PlatformSnippet) GetThumbnails() OptThumbnailsResponse
GetThumbnails returns the value of Thumbnails.
func (*PlatformSnippet) GetTitle ¶
func (s *PlatformSnippet) GetTitle() OptString
GetTitle returns the value of Title.
func (*PlatformSnippet) MarshalJSON ¶
func (s *PlatformSnippet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PlatformSnippet) SetCustomURL ¶
func (s *PlatformSnippet) SetCustomURL(val OptString)
SetCustomURL sets the value of CustomURL.
func (*PlatformSnippet) SetDescription ¶
func (s *PlatformSnippet) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*PlatformSnippet) SetPublishedAt ¶
func (s *PlatformSnippet) SetPublishedAt(val OptDateTime)
SetPublishedAt sets the value of PublishedAt.
func (*PlatformSnippet) SetThumbnails ¶
func (s *PlatformSnippet) SetThumbnails(val OptThumbnailsResponse)
SetThumbnails sets the value of Thumbnails.
func (*PlatformSnippet) SetTitle ¶
func (s *PlatformSnippet) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*PlatformSnippet) UnmarshalJSON ¶
func (s *PlatformSnippet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PlatformStatistics ¶
type PlatformStatistics struct { ViewCount OptString `json:"ViewCount"` SubscriberCount OptString `json:"SubscriberCount"` HiddenSubscriberCount OptBool `json:"HiddenSubscriberCount"` VideoCount OptString `json:"VideoCount"` }
Ref: #/components/schemas/PlatformStatistics
func (*PlatformStatistics) Decode ¶
func (s *PlatformStatistics) Decode(d *jx.Decoder) error
Decode decodes PlatformStatistics from json.
func (*PlatformStatistics) Encode ¶
func (s *PlatformStatistics) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PlatformStatistics) GetHiddenSubscriberCount ¶
func (s *PlatformStatistics) GetHiddenSubscriberCount() OptBool
GetHiddenSubscriberCount returns the value of HiddenSubscriberCount.
func (*PlatformStatistics) GetSubscriberCount ¶
func (s *PlatformStatistics) GetSubscriberCount() OptString
GetSubscriberCount returns the value of SubscriberCount.
func (*PlatformStatistics) GetVideoCount ¶
func (s *PlatformStatistics) GetVideoCount() OptString
GetVideoCount returns the value of VideoCount.
func (*PlatformStatistics) GetViewCount ¶
func (s *PlatformStatistics) GetViewCount() OptString
GetViewCount returns the value of ViewCount.
func (*PlatformStatistics) MarshalJSON ¶
func (s *PlatformStatistics) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PlatformStatistics) SetHiddenSubscriberCount ¶
func (s *PlatformStatistics) SetHiddenSubscriberCount(val OptBool)
SetHiddenSubscriberCount sets the value of HiddenSubscriberCount.
func (*PlatformStatistics) SetSubscriberCount ¶
func (s *PlatformStatistics) SetSubscriberCount(val OptString)
SetSubscriberCount sets the value of SubscriberCount.
func (*PlatformStatistics) SetVideoCount ¶
func (s *PlatformStatistics) SetVideoCount(val OptString)
SetVideoCount sets the value of VideoCount.
func (*PlatformStatistics) SetViewCount ¶
func (s *PlatformStatistics) SetViewCount(val OptString)
SetViewCount sets the value of ViewCount.
func (*PlatformStatistics) UnmarshalJSON ¶
func (s *PlatformStatistics) UnmarshalJSON(data []byte) error
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 SecurityHandler ¶
type SecurityHandler interface { // HandleApiKeyAuth handles ApiKeyAuth security. HandleApiKeyAuth(ctx context.Context, operationName string, t ApiKeyAuth) (context.Context, error) }
SecurityHandler is handler for security parameters.
type SecuritySource ¶
type SecuritySource interface { // ApiKeyAuth provides ApiKeyAuth security value. ApiKeyAuth(ctx context.Context, operationName string) (ApiKeyAuth, 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 ThumbnailResponse ¶
type ThumbnailResponse struct { Height OptInt `json:"height"` URL OptString `json:"url"` Width OptInt `json:"width"` }
Ref: #/components/schemas/ThumbnailResponse
func (*ThumbnailResponse) Decode ¶
func (s *ThumbnailResponse) Decode(d *jx.Decoder) error
Decode decodes ThumbnailResponse from json.
func (*ThumbnailResponse) Encode ¶
func (s *ThumbnailResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ThumbnailResponse) GetHeight ¶
func (s *ThumbnailResponse) GetHeight() OptInt
GetHeight returns the value of Height.
func (*ThumbnailResponse) GetURL ¶
func (s *ThumbnailResponse) GetURL() OptString
GetURL returns the value of URL.
func (*ThumbnailResponse) GetWidth ¶
func (s *ThumbnailResponse) GetWidth() OptInt
GetWidth returns the value of Width.
func (*ThumbnailResponse) MarshalJSON ¶
func (s *ThumbnailResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ThumbnailResponse) SetHeight ¶
func (s *ThumbnailResponse) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*ThumbnailResponse) SetURL ¶
func (s *ThumbnailResponse) SetURL(val OptString)
SetURL sets the value of URL.
func (*ThumbnailResponse) SetWidth ¶
func (s *ThumbnailResponse) SetWidth(val OptInt)
SetWidth sets the value of Width.
func (*ThumbnailResponse) UnmarshalJSON ¶
func (s *ThumbnailResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ThumbnailsResponse ¶
type ThumbnailsResponse struct { Default OptThumbnailResponse `json:"default"` High OptThumbnailResponse `json:"high"` Maxres OptThumbnailResponse `json:"maxres"` Medium OptThumbnailResponse `json:"medium"` Standard OptThumbnailResponse `json:"standard"` }
Ref: #/components/schemas/ThumbnailsResponse
func (*ThumbnailsResponse) Decode ¶
func (s *ThumbnailsResponse) Decode(d *jx.Decoder) error
Decode decodes ThumbnailsResponse from json.
func (*ThumbnailsResponse) Encode ¶
func (s *ThumbnailsResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ThumbnailsResponse) GetDefault ¶
func (s *ThumbnailsResponse) GetDefault() OptThumbnailResponse
GetDefault returns the value of Default.
func (*ThumbnailsResponse) GetHigh ¶
func (s *ThumbnailsResponse) GetHigh() OptThumbnailResponse
GetHigh returns the value of High.
func (*ThumbnailsResponse) GetMaxres ¶
func (s *ThumbnailsResponse) GetMaxres() OptThumbnailResponse
GetMaxres returns the value of Maxres.
func (*ThumbnailsResponse) GetMedium ¶
func (s *ThumbnailsResponse) GetMedium() OptThumbnailResponse
GetMedium returns the value of Medium.
func (*ThumbnailsResponse) GetStandard ¶
func (s *ThumbnailsResponse) GetStandard() OptThumbnailResponse
GetStandard returns the value of Standard.
func (*ThumbnailsResponse) MarshalJSON ¶
func (s *ThumbnailsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ThumbnailsResponse) SetDefault ¶
func (s *ThumbnailsResponse) SetDefault(val OptThumbnailResponse)
SetDefault sets the value of Default.
func (*ThumbnailsResponse) SetHigh ¶
func (s *ThumbnailsResponse) SetHigh(val OptThumbnailResponse)
SetHigh sets the value of High.
func (*ThumbnailsResponse) SetMaxres ¶
func (s *ThumbnailsResponse) SetMaxres(val OptThumbnailResponse)
SetMaxres sets the value of Maxres.
func (*ThumbnailsResponse) SetMedium ¶
func (s *ThumbnailsResponse) SetMedium(val OptThumbnailResponse)
SetMedium sets the value of Medium.
func (*ThumbnailsResponse) SetStandard ¶
func (s *ThumbnailsResponse) SetStandard(val OptThumbnailResponse)
SetStandard sets the value of Standard.
func (*ThumbnailsResponse) UnmarshalJSON ¶
func (s *ThumbnailsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) ChannelsChannelIDVideosGet ¶
func (UnimplementedHandler) ChannelsChannelIDVideosGet(ctx context.Context, params ChannelsChannelIDVideosGetParams) (r ChannelsChannelIDVideosGetRes, _ error)
ChannelsChannelIDVideosGet implements GET /channels/{channel_id}/videos operation.
Retrieve all videos related to a specific channel.
GET /channels/{channel_id}/videos
func (UnimplementedHandler) ChannelsChannelIDVideosPost ¶
func (UnimplementedHandler) ChannelsChannelIDVideosPost(ctx context.Context, req *ChannelsChannelIDVideosPostReq, params ChannelsChannelIDVideosPostParams) (r ChannelsChannelIDVideosPostRes, _ error)
ChannelsChannelIDVideosPost implements POST /channels/{channel_id}/videos operation.
Update videos related to a specific channel based on provided cronType.
POST /channels/{channel_id}/videos
func (UnimplementedHandler) ChannelsChannelIDVideosPut ¶
func (UnimplementedHandler) ChannelsChannelIDVideosPut(ctx context.Context, req *ChannelsChannelIDVideosPutReq, params ChannelsChannelIDVideosPutParams) (r ChannelsChannelIDVideosPutRes, _ error)
ChannelsChannelIDVideosPut implements PUT /channels/{channel_id}/videos operation.
Update videos related to a specific channel based on provided cronType.
PUT /channels/{channel_id}/videos
func (UnimplementedHandler) ChannelsGet ¶
func (UnimplementedHandler) ChannelsGet(ctx context.Context, params ChannelsGetParams) (r ChannelsGetRes, _ error)
ChannelsGet implements GET /channels operation.
Retrieves all channels based on provided IDs.
GET /channels
func (UnimplementedHandler) ChannelsPost ¶
func (UnimplementedHandler) ChannelsPost(ctx context.Context, req *ChannelsPostReq) (r ChannelsPostRes, _ error)
ChannelsPost implements POST /channels operation.
Creates channels by fetching from Youtube using provided Channel IDs.
POST /channels
func (UnimplementedHandler) ChannelsPut ¶
func (UnimplementedHandler) ChannelsPut(ctx context.Context, req *ChannelsPutReq) (r ChannelsPutRes, _ error)
ChannelsPut implements PUT /channels operation.
Updates channels by fetching from Youtube using provided Channel IDs.
PUT /channels
type VideoResponse ¶
type VideoResponse struct { ChannelId OptString `json:"channelId"` ChannelTitle OptString `json:"channelTitle"` Description OptString `json:"description"` ID OptString `json:"id"` PublishedAt OptString `json:"publishedAt"` Tags []string `json:"tags"` Thumbnails OptThumbnailsResponse `json:"thumbnails"` Title OptString `json:"title"` }
Ref: #/components/schemas/VideoResponse
func (*VideoResponse) Decode ¶
func (s *VideoResponse) Decode(d *jx.Decoder) error
Decode decodes VideoResponse from json.
func (*VideoResponse) Encode ¶
func (s *VideoResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VideoResponse) GetChannelId ¶
func (s *VideoResponse) GetChannelId() OptString
GetChannelId returns the value of ChannelId.
func (*VideoResponse) GetChannelTitle ¶
func (s *VideoResponse) GetChannelTitle() OptString
GetChannelTitle returns the value of ChannelTitle.
func (*VideoResponse) GetDescription ¶
func (s *VideoResponse) GetDescription() OptString
GetDescription returns the value of Description.
func (*VideoResponse) GetID ¶
func (s *VideoResponse) GetID() OptString
GetID returns the value of ID.
func (*VideoResponse) GetPublishedAt ¶
func (s *VideoResponse) GetPublishedAt() OptString
GetPublishedAt returns the value of PublishedAt.
func (*VideoResponse) GetTags ¶
func (s *VideoResponse) GetTags() []string
GetTags returns the value of Tags.
func (*VideoResponse) GetThumbnails ¶
func (s *VideoResponse) GetThumbnails() OptThumbnailsResponse
GetThumbnails returns the value of Thumbnails.
func (*VideoResponse) GetTitle ¶
func (s *VideoResponse) GetTitle() OptString
GetTitle returns the value of Title.
func (*VideoResponse) MarshalJSON ¶
func (s *VideoResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VideoResponse) SetChannelId ¶
func (s *VideoResponse) SetChannelId(val OptString)
SetChannelId sets the value of ChannelId.
func (*VideoResponse) SetChannelTitle ¶
func (s *VideoResponse) SetChannelTitle(val OptString)
SetChannelTitle sets the value of ChannelTitle.
func (*VideoResponse) SetDescription ¶
func (s *VideoResponse) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*VideoResponse) SetID ¶
func (s *VideoResponse) SetID(val OptString)
SetID sets the value of ID.
func (*VideoResponse) SetPublishedAt ¶
func (s *VideoResponse) SetPublishedAt(val OptString)
SetPublishedAt sets the value of PublishedAt.
func (*VideoResponse) SetTags ¶
func (s *VideoResponse) SetTags(val []string)
SetTags sets the value of Tags.
func (*VideoResponse) SetThumbnails ¶
func (s *VideoResponse) SetThumbnails(val OptThumbnailsResponse)
SetThumbnails sets the value of Thumbnails.
func (*VideoResponse) SetTitle ¶
func (s *VideoResponse) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*VideoResponse) UnmarshalJSON ¶
func (s *VideoResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type VideosResponse ¶
type VideosResponse struct {
Videos []VideoResponse `json:"videos"`
}
Ref: #/components/schemas/VideosResponse
func (*VideosResponse) Decode ¶
func (s *VideosResponse) Decode(d *jx.Decoder) error
Decode decodes VideosResponse from json.
func (*VideosResponse) Encode ¶
func (s *VideosResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VideosResponse) GetVideos ¶
func (s *VideosResponse) GetVideos() []VideoResponse
GetVideos returns the value of Videos.
func (*VideosResponse) MarshalJSON ¶
func (s *VideosResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VideosResponse) SetVideos ¶
func (s *VideosResponse) SetVideos(val []VideoResponse)
SetVideos sets the value of Videos.
func (*VideosResponse) UnmarshalJSON ¶
func (s *VideosResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_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