server

package
v0.0.0-...-646ff60 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: CC0-1.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrNoOAuthHandler

type ErrNoOAuthHandler struct {
	Err error
}

func (ErrNoOAuthHandler) Error

func (err ErrNoOAuthHandler) Error() string

func (ErrNoOAuthHandler) Unwrap

func (err ErrNoOAuthHandler) Unwrap() error

type ErrNoOAuthHandlerForPort

type ErrNoOAuthHandlerForPort struct {
	Port uint16
}

func (ErrNoOAuthHandlerForPort) Error

func (err ErrNoOAuthHandlerForPort) Error() string

type GRPCServer

type GRPCServer struct {
	streamd_grpc.UnimplementedStreamDServer
	StreamD               api.StreamD
	MemoizeDataValue      *memoize.MemoizeData
	OAuthURLHandlerLocker xsync.Mutex
	OAuthURLHandlers      oauthURLHandlers

	UnansweredOAuthRequestsLocker xsync.Mutex
	UnansweredOAuthRequests       map[streamcontrol.PlatformName]map[uint16]*streamd_grpc.OAuthRequest
}

func NewGRPCServer

func NewGRPCServer(streamd api.StreamD) *GRPCServer

func (*GRPCServer) AddIncomingStream

func (*GRPCServer) AddStreamForward

func (*GRPCServer) AddStreamPlayer

func (grpc *GRPCServer) AddStreamPlayer(
	ctx context.Context,
	req *streamd_grpc.AddStreamPlayerRequest,
) (_ret *streamd_grpc.AddStreamPlayerReply, _err error)

func (*GRPCServer) AddTimer

func (*GRPCServer) AddTriggerRule

func (*GRPCServer) ApplyProfile

func (*GRPCServer) BanUser

func (*GRPCServer) Close

func (grpc *GRPCServer) Close() error

func (*GRPCServer) EndStream

func (*GRPCServer) GetBackendInfo

func (*GRPCServer) GetConfig

func (*GRPCServer) GetLoggingLevel

func (*GRPCServer) GetStreamPlayer

func (*GRPCServer) GetStreamStatus

func (*GRPCServer) GetVariable

func (*GRPCServer) GetVariableHash

func (*GRPCServer) InitCache

func (*GRPCServer) IsBackendEnabled

func (*GRPCServer) ListStreamPlayers

func (*GRPCServer) ListTimers

func (*GRPCServer) ListTriggerRules

func (*GRPCServer) MemoizeData

func (grpc *GRPCServer) MemoizeData() *memoize.MemoizeData

func (*GRPCServer) OpenBrowser

func (grpc *GRPCServer) OpenBrowser(
	ctx context.Context,
	url string,
) (_ret error)

func (*GRPCServer) OpenOAuthURL

func (grpc *GRPCServer) OpenOAuthURL(
	ctx context.Context,
	listenPort uint16,
	platID streamcontrol.PlatformName,
	authURL string,
) (_ret error)

func (*GRPCServer) Ping

func (*GRPCServer) RemoveChatMessage

func (*GRPCServer) RemoveStreamPlayer

func (grpc *GRPCServer) RemoveStreamPlayer(
	ctx context.Context,
	req *streamd_grpc.RemoveStreamPlayerRequest,
) (_req *streamd_grpc.RemoveStreamPlayerReply, _err error)

func (*GRPCServer) RemoveTimer

func (*GRPCServer) RemoveTriggerRule

func (*GRPCServer) ResetCache

func (*GRPCServer) SaveConfig

func (*GRPCServer) SendChatMessage

func (*GRPCServer) SetConfig

func (*GRPCServer) SetDescription

func (*GRPCServer) SetLoggingLevel

func (*GRPCServer) SetTitle

func (*GRPCServer) SetVariable

func (*GRPCServer) StartStream

func (*GRPCServer) StartStreamServer

func (*GRPCServer) StopStreamServer

func (*GRPCServer) StreamPlayerClose

func (*GRPCServer) StreamPlayerOpen

func (*GRPCServer) StreamPlayerStop

func (*GRPCServer) SubmitEvent

func (*GRPCServer) SubmitOAuthCode

func (*GRPCServer) SubscribeToOAuthRequests

func (*GRPCServer) UpdateStream

func (*GRPCServer) UpdateStreamPlayer

func (grpc *GRPCServer) UpdateStreamPlayer(
	ctx context.Context,
	req *streamd_grpc.UpdateStreamPlayerRequest,
) (_req *streamd_grpc.UpdateStreamPlayerReply, _err error)

func (*GRPCServer) UpdateTriggerRule

func (*GRPCServer) WaitForStreamPublisher

type OAuthURLHandler

type OAuthURLHandler struct {
	Sender   streamd_grpc.StreamD_SubscribeToOAuthRequestsServer
	CancelFn context.CancelFunc
}

Jump to

Keyboard shortcuts

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