handler

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateChannelHandler

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

func NewCreateChannelHandler

func NewCreateChannelHandler(c *chaturbate.Manager, cli *cli.Context) *CreateChannelHandler

func (*CreateChannelHandler) Handle

func (h *CreateChannelHandler) Handle(c *gin.Context)

type CreateChannelRequest

type CreateChannelRequest struct {
	Username           string `json:"username"`
	Framerate          int    `json:"framerate"`
	FilenamePattern    string `json:"filename_pattern"`
	Resolution         int    `json:"resolution"`
	ResolutionFallback string `json:"resolution_fallback"`
	SplitDuration      int    `json:"split_duration"`
	SplitFilesize      int    `json:"split_filesize"`
}

type CreateChannelResponse

type CreateChannelResponse struct {
}

type DeleteChannelHandler

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

func NewDeleteChannelHandler

func NewDeleteChannelHandler(c *chaturbate.Manager, cli *cli.Context) *DeleteChannelHandler

func (*DeleteChannelHandler) Handle

func (h *DeleteChannelHandler) Handle(c *gin.Context)

type DeleteChannelRequest

type DeleteChannelRequest struct {
	Username string `json:"username"`
}

type DeleteChannelResponse

type DeleteChannelResponse struct {
}

type GetChannelHandler

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

func NewGetChannelHandler

func NewGetChannelHandler(c *chaturbate.Manager, cli *cli.Context) *GetChannelHandler

func (*GetChannelHandler) Handle

func (h *GetChannelHandler) Handle(c *gin.Context)

type GetChannelRequest

type GetChannelRequest struct {
	Username string `json:"username"`
}

type GetChannelResponse

type GetChannelResponse struct {
	Username        string   `json:"username"`
	ChannelURL      string   `json:"channel_url"`
	Filename        string   `json:"filename"`
	LastStreamedAt  string   `json:"last_streamed_at"`
	SegmentDuration string   `json:"segment_duration"`
	SplitDuration   string   `json:"split_duration"`
	SegmentFilesize string   `json:"segment_filesize"`
	SplitFilesize   string   `json:"split_filesize"`
	IsOnline        bool     `json:"is_online"`
	IsPaused        bool     `json:"is_paused"`
	Logs            []string `json:"logs"`
}

type GetSettingsHandler

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

func NewGetSettingsHandler

func NewGetSettingsHandler(cli *cli.Context) *GetSettingsHandler

func (*GetSettingsHandler) Handle

func (h *GetSettingsHandler) Handle(c *gin.Context)

type GetSettingsHandlerRequest

type GetSettingsHandlerRequest struct {
}

type GetSettingsHandlerResponse

type GetSettingsHandlerResponse struct {
	Version            string `json:"version"`
	Framerate          int    `json:"framerate"`
	Resolution         int    `json:"resolution"`
	ResolutionFallback string `json:"resolution_fallback"`
	FilenamePattern    string `json:"filename_pattern"`
	SplitDuration      int    `json:"split_duration"`
	SplitFilesize      int    `json:"split_filesize"`
	LogLevel           string `json:"log_level"`
	Port               string `json:"port"`
	GUI                string `json:"gui"`
}

type ListChannelsHandler

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

func NewListChannelsHandler

func NewListChannelsHandler(c *chaturbate.Manager, cli *cli.Context) *ListChannelsHandler

func (*ListChannelsHandler) Handle

func (h *ListChannelsHandler) Handle(c *gin.Context)

type ListChannelsRequest

type ListChannelsRequest struct {
}

type ListChannelsResponse

type ListChannelsResponse struct {
	Channels []*ListChannelsResponseChannel `json:"channels"`
}

type ListChannelsResponseChannel

type ListChannelsResponseChannel struct {
	Username        string   `json:"username"`
	ChannelURL      string   `json:"channel_url"`
	Filename        string   `json:"filename"`
	LastStreamedAt  string   `json:"last_streamed_at"`
	SegmentDuration string   `json:"segment_duration"`
	SplitDuration   string   `json:"split_duration"`
	SegmentFilesize string   `json:"segment_filesize"`
	SplitFilesize   string   `json:"split_filesize"`
	IsOnline        bool     `json:"is_online"`
	IsPaused        bool     `json:"is_paused"`
	Logs            []string `json:"logs"`
}

type ListenUpdateHandler

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

func NewListenUpdateHandler

func NewListenUpdateHandler(c *chaturbate.Manager, cli *cli.Context) *ListenUpdateHandler

func (*ListenUpdateHandler) Handle

func (h *ListenUpdateHandler) Handle(c *gin.Context)

type ListenUpdateRequest

type ListenUpdateRequest struct {
}

type PauseChannelHandler

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

func NewPauseChannelHandler

func NewPauseChannelHandler(c *chaturbate.Manager, cli *cli.Context) *PauseChannelHandler

func (*PauseChannelHandler) Handle

func (h *PauseChannelHandler) Handle(c *gin.Context)

type PauseChannelRequest

type PauseChannelRequest struct {
	Username string `json:"username"`
}

type PauseChannelResponse

type PauseChannelResponse struct {
}

type ResumeChannelHandler

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

func NewResumeChannelHandler

func NewResumeChannelHandler(c *chaturbate.Manager, cli *cli.Context) *ResumeChannelHandler

func (*ResumeChannelHandler) Handle

func (h *ResumeChannelHandler) Handle(c *gin.Context)

type ResumeChannelRequest

type ResumeChannelRequest struct {
	Username string `json:"username"`
}

type ResumeChannelResponse

type ResumeChannelResponse struct {
}

type TerminateProgramHandler

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

func NewTerminateProgramHandler

func NewTerminateProgramHandler(cli *cli.Context) *TerminateProgramHandler

func (*TerminateProgramHandler) Handle

func (h *TerminateProgramHandler) Handle(c *gin.Context)

type TerminateProgramRequest

type TerminateProgramRequest struct {
}

type TerminateProgramResponse

type TerminateProgramResponse struct {
}

Jump to

Keyboard shortcuts

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