service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ClientMessageJoin      = "join"
	ClientMessageSDP       = "sdp"
	ClientMessageICE       = "ice"
	ClientMessageMute      = "mute"
	ClientMessageUnmute    = "unmute"
	ClientMessageScreenOn  = "screen_on"
	ClientMessageScreenOff = "screen_off"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMessage

type ClientMessage struct {
	Type string                 `msgpack:"type"`
	Data map[string]interface{} `msgpack:"data"`
}

func NewClientMessage

func NewClientMessage(msgType string, data map[string]interface{}) *ClientMessage

func (*ClientMessage) Pack

func (m *ClientMessage) Pack() ([]byte, error)

func (*ClientMessage) Unpack

func (m *ClientMessage) Unpack(data []byte) error

type Config

type Config struct {
	API   api.Config
	RTC   rtc.ServerConfig
	Store StoreConfig
}

func (Config) IsValid

func (c Config) IsValid() error

type Service

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

func New

func New(cfg Config, log mlog.LoggerIFace) (*Service, error)

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

type StoreConfig

type StoreConfig struct {
	DataSource string `toml:"data_source"`
}

func (StoreConfig) IsValid

func (c StoreConfig) IsValid() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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