api

package
v0.0.0-...-5e02292 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

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

WithServerURL sets context key to override server URL.

Types

type APICronChannelsGetBadRequest

type APICronChannelsGetBadRequest CronResponse

func (*APICronChannelsGetBadRequest) Decode

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

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

Decode decodes APICronChannelsGetInternalServerError from json.

func (*APICronChannelsGetInternalServerError) Encode

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

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

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

type APICronChannelsGetRes

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

type APICronChannelsGetUnauthorized

type APICronChannelsGetUnauthorized CronResponse

func (*APICronChannelsGetUnauthorized) Decode

Decode decodes APICronChannelsGetUnauthorized from json.

func (*APICronChannelsGetUnauthorized) Encode

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

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

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

type APICronCreatorsGetForbidden

type APICronCreatorsGetForbidden CronResponse

func (*APICronCreatorsGetForbidden) Decode

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

Decode decodes APICronCreatorsGetInternalServerError from json.

func (*APICronCreatorsGetInternalServerError) Encode

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

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

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

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

type APICronCreatorsGetRes

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

type APICronCreatorsGetUnauthorized

type APICronCreatorsGetUnauthorized CronResponse

func (*APICronCreatorsGetUnauthorized) Decode

Decode decodes APICronCreatorsGetUnauthorized from json.

func (*APICronCreatorsGetUnauthorized) Encode

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

Decode decodes APICronExistVideosGetBadRequest from json.

func (*APICronExistVideosGetBadRequest) Encode

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

Decode decodes APICronExistVideosGetForbidden from json.

func (*APICronExistVideosGetForbidden) Encode

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

Decode decodes APICronExistVideosGetInternalServerError from json.

func (*APICronExistVideosGetInternalServerError) Encode

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

Decode decodes APICronExistVideosGetNotFound from json.

func (*APICronExistVideosGetNotFound) Encode

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

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

Decode decodes APICronExistVideosGetUnauthorized from json.

func (*APICronExistVideosGetUnauthorized) Encode

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

Decode decodes APICronSearchVideosGetBadRequest from json.

func (*APICronSearchVideosGetBadRequest) Encode

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

Decode decodes APICronSearchVideosGetForbidden from json.

func (*APICronSearchVideosGetForbidden) Encode

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

Decode decodes APICronSearchVideosGetInternalServerError from json.

func (*APICronSearchVideosGetInternalServerError) Encode

Encode encodes APICronSearchVideosGetInternalServerError as json.

func (*APICronSearchVideosGetInternalServerError) MarshalJSON

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

Decode decodes APICronSearchVideosGetNotFound from json.

func (*APICronSearchVideosGetNotFound) Encode

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

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

type APICronSearchVideosGetRes

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

type APICronSearchVideosGetUnauthorized

type APICronSearchVideosGetUnauthorized CronResponse

func (*APICronSearchVideosGetUnauthorized) Decode

Decode decodes APICronSearchVideosGetUnauthorized from json.

func (*APICronSearchVideosGetUnauthorized) Encode

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

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

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

func (c *Client) Ping(ctx context.Context) (*PingOK, error)

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 ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

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

Decode decodes ExistVideosInternalServerError from json.

func (*ExistVideosInternalServerError) Encode

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

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

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

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

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

func (*Labeler) Add

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

Add attributes to the Labeler.

func (*Labeler) AttributeSet

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

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

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

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

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

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

func (*OptExistVideosReqPeriod) Reset

func (o *OptExistVideosReqPeriod) Reset()

Reset unsets value.

func (*OptExistVideosReqPeriod) SetTo

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

Decode decodes SearchVideosReqVideoType from json.

func (OptSearchVideosReqVideoType) Encode

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

Encode encodes SearchVideosReqVideoType as json.

func (OptSearchVideosReqVideoType) Get

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

func (OptSearchVideosReqVideoType) IsSet

IsSet returns true if OptSearchVideosReqVideoType was set.

func (OptSearchVideosReqVideoType) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (OptSearchVideosReqVideoType) Or

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

func (*OptSearchVideosReqVideoType) Reset

func (o *OptSearchVideosReqVideoType) Reset()

Reset unsets value.

func (*OptSearchVideosReqVideoType) SetTo

SetTo sets value to v.

func (*OptSearchVideosReqVideoType) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

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

Decode decodes string from json.

func (OptString) Encode

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

Encode encodes string as json.

func (OptString) Get

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

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

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

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

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type 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) Decode

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

Decode decodes PingOK from json.

func (*PingOK) Encode

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

Encode implements json.Marshaler.

func (*PingOK) GetMessage

func (s *PingOK) GetMessage() OptString

GetMessage returns the value of Message.

func (*PingOK) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (*PingOK) SetMessage

func (s *PingOK) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*PingOK) UnmarshalJSON

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

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type 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

Decode decodes SearchVideosInternalServerError from json.

func (*SearchVideosInternalServerError) Encode

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

AllValues returns all SearchVideosReqPlatformTypeItem values.

func (*SearchVideosReqPlatformTypeItem) Decode

Decode decodes SearchVideosReqPlatformTypeItem from json.

func (SearchVideosReqPlatformTypeItem) Encode

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

type SearchVideosReqVideoType

type SearchVideosReqVideoType string

Type of the cron.

const (
	SearchVideosReqVideoTypeVspoStream SearchVideosReqVideoType = "vspo_stream"
	SearchVideosReqVideoTypeClip       SearchVideosReqVideoType = "clip"
	SearchVideosReqVideoTypeFreechat   SearchVideosReqVideoType = "freechat"
)

func (SearchVideosReqVideoType) AllValues

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.

func (*Server) FindPath

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

FindPath finds Route for given method and URL.

func (*Server) FindRoute

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

FindRoute finds Route for given method and path.

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

func (*Server) ServeHTTP

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

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

type ServerOption

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

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

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

func WithMethodNotAllowed

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

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type UnimplementedHandler

type UnimplementedHandler struct{}

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

func (UnimplementedHandler) APICronChannelsGet

APICronChannelsGet implements GET /api/cron/channels operation.

Update channels.

GET /api/cron/channels

func (UnimplementedHandler) APICronCreatorsGet

APICronCreatorsGet implements GET /api/cron/creators operation.

Creates creators by fetching from Youtube using provided Channel IDs.

GET /api/cron/creators

func (UnimplementedHandler) APICronExistVideosGet

APICronExistVideosGet implements GET /api/cron/exist_videos operation.

Update exist videos.

GET /api/cron/exist_videos

func (UnimplementedHandler) APICronSearchVideosGet

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

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

SearchVideos implements search_videos operation.

Update videos related to a specific creator based on provided.

POST /search_videos

Jump to

Keyboard shortcuts

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