commentThread

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CommentThread

type CommentThread struct {
	*common.Fields
	AuthorChannelId  string `yaml:"author_channel_id" json:"author_channel_id,omitempty"`
	ModerationStatus string `yaml:"moderation_status" json:"moderation_status,omitempty"`
	Order            string `yaml:"order" json:"order,omitempty"`
	SearchTerms      string `yaml:"search_terms" json:"search_terms,omitempty"`
	TextFormat       string `yaml:"text_format" json:"text_format,omitempty"`
	TextOriginal     string `yaml:"text_original" json:"text_original,omitempty"`
	VideoId          string `yaml:"video_id" json:"video_id,omitempty"`

	AllThreadsRelatedToChannelId string `yaml:"all_threads_related_to_channel_id" json:"all_threads_related_to_channel_id,omitempty"`
}

func (*CommentThread) Get added in v0.9.9

func (c *CommentThread) Get() ([]*youtube.CommentThread, error)

func (*CommentThread) Insert

func (c *CommentThread) Insert(writer io.Writer) error

func (*CommentThread) List

func (c *CommentThread) List(writer io.Writer) error

type ICommentThread added in v0.10.5

type ICommentThread[T any] interface {
	Get() ([]*T, error)
	List(io.Writer) error
	Insert(io.Writer) error
}

func NewCommentThread

func NewCommentThread(opts ...Option) ICommentThread[youtube.CommentThread]

type Option

type Option func(*CommentThread)

func WithAllThreadsRelatedToChannelId

func WithAllThreadsRelatedToChannelId(allThreadsRelatedToChannelId string) Option

func WithAuthorChannelId

func WithAuthorChannelId(authorChannelId string) Option

func WithModerationStatus

func WithModerationStatus(moderationStatus string) Option

func WithOrder

func WithOrder(order string) Option

func WithSearchTerms

func WithSearchTerms(searchTerms string) Option

func WithTextFormat

func WithTextFormat(textFormat string) Option

func WithTextOriginal

func WithTextOriginal(textOriginal string) Option

func WithVideoId

func WithVideoId(videoId string) Option

Jump to

Keyboard shortcuts

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