dummy

package
v0.0.0-...-ad8d7c7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	OnIntro               func(message interface{})
	OnOutro               func(message interface{})
	OnNodeState           func(message interface{})
	OnChannelSubscription func(message interface{})
	OnStreamPublishing    func(message interface{})
	OnStreamRelaying      func(message interface{})
}

type Client

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

func New

func New(config Config, hostname string) *Client

func (*Client) Close

func (client *Client) Close() error

func (*Client) Connect

func (client *Client) Connect() error

func (*Client) Heartbeat

func (client *Client) Heartbeat(channelID types.ChannelID) error

func (*Client) Name

func (client *Client) Name() string

func (*Client) SetLogger

func (client *Client) SetLogger(log logrus.FieldLogger)

func (*Client) StartStream

func (client *Client) StartStream(channelID types.ChannelID, streamID types.StreamID) error

func (*Client) StopStream

func (client *Client) StopStream(channelID types.ChannelID, streamID types.StreamID) error

type Config

type Config struct {
	// RegionCode we are representing
	RegionCode string
	// Hostname for ourselves, so edges know how to reach us
	Hostname string
	// Logger for orchestrator client messages
	Logger logrus.FieldLogger
	// Handler for callbacks
	Callbacks Callbacks
}

Jump to

Keyboard shortcuts

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