Documentation ¶
Index ¶
- Constants
- func ReadConfigFromPath(ctx context.Context, cfgPath string, cfg *Config) error
- func WriteConfigToPath(ctx context.Context, cfgPath string, cfg Config) error
- type AlignX
- type AlignY
- type Config
- func (cfg *Config) Convert() error
- func (cfg Config) MarshalYAML() ([]byte, error)
- func (cfg *Config) Read(b []byte) (int, error)
- func (cfg *Config) ReadFrom(r io.Reader) (int64, error)
- func (cfg *Config) UnmarshalYAML(b []byte) (_err error)
- func (cfg Config) Write(b []byte) (int, error)
- func (cfg Config) WriteTo(w io.Writer) (int64, error)
- type DashboardConfig
- type DashboardElementConfig
- type DashboardFilterType
- type DashboardSourceImageDummy
- type DashboardSourceImageOBSScreenshot
- func (s *DashboardSourceImageOBSScreenshot) GetImage(ctx context.Context, obsServer obs_grpc.OBSServer, el DashboardElementConfig, ...) (image.Image, time.Time, error)
- func (s *DashboardSourceImageOBSScreenshot) GetImageBytes(ctx context.Context, obsServer obs_grpc.OBSServer, el DashboardElementConfig) ([]byte, string, time.Time, error)
- func (*DashboardSourceImageOBSScreenshot) SourceType() DashboardSourceImageType
- type DashboardSourceImageOBSVolume
- type DashboardSourceImageType
- type Duration
- type Event
- type EventQuery
- type Filter
- type FilterColor
- type GetImageByteser
- type GitRepoConfig
- type ImageFormat
- type P2PNetwork
- type P2PPrivateKey
- type P2PVPNConfig
- type ProfileMetadata
- type SourceImage
- type TriggerRule
- type TriggerRules
Constants ¶
View Source
const ( DashboardFilterTypeUndefined = DashboardFilterType("") DashboardFilterTypeColor = DashboardFilterType("color") )
View Source
const ( DashboardSourceImageTypeUndefined = DashboardSourceImageType("") DashboardSourceImageTypeDummy = DashboardSourceImageType("dummy") DashboardSourceImageTypeOBSVideo = DashboardSourceImageType("obs_video") // rename to `obs_screenshot` DashboardSourceImageTypeOBSVolume = DashboardSourceImageType("obs_volume") )
View Source
const ( ImageFormatUndefined = ImageFormat("") ImageFormatPNG = ImageFormat("png") ImageFormatJPEG = ImageFormat("jpeg") ImageFormatWebP = ImageFormat("webp") )
Variables ¶
This section is empty.
Functions ¶
func ReadConfigFromPath ¶
Types ¶
type Config ¶
type Config config
func NewSampleConfig ¶
func NewSampleConfig() Config
func ReadOrCreateConfigFile ¶
func (Config) MarshalYAML ¶
func (*Config) UnmarshalYAML ¶
type DashboardConfig ¶
type DashboardConfig struct {
Elements map[string]DashboardElementConfig `yaml:"elements"` // TODO: rename this to `video_elements`
}
type DashboardElementConfig ¶
type DashboardElementConfig _RawDashboardElementConfig
func (DashboardElementConfig) MarshalYAML ¶
func (cfg DashboardElementConfig) MarshalYAML() (b []byte, _err error)
func (*DashboardElementConfig) UnmarshalYAML ¶
func (cfg *DashboardElementConfig) UnmarshalYAML(b []byte) (_err error)
type DashboardFilterType ¶
type DashboardFilterType string
func (DashboardFilterType) New ¶
func (mst DashboardFilterType) New() Filter
type DashboardSourceImageDummy ¶
type DashboardSourceImageDummy struct{}
func (*DashboardSourceImageDummy) GetImage ¶
func (*DashboardSourceImageDummy) GetImage( ctx context.Context, obsServer obs_grpc.OBSServer, el DashboardElementConfig, obsState *streamtypes.OBSState, ) (image.Image, time.Time, error)
func (*DashboardSourceImageDummy) SourceType ¶
func (*DashboardSourceImageDummy) SourceType() DashboardSourceImageType
type DashboardSourceImageOBSScreenshot ¶
type DashboardSourceImageOBSScreenshot struct { Name string `yaml:"name" json:"name"` Width float64 `yaml:"width" json:"width"` Height float64 `yaml:"height" json:"height"` ImageFormat ImageFormat `yaml:"image_format" json:"image_format"` UpdateInterval Duration `yaml:"update_interval" json:"update_interval"` }
func (*DashboardSourceImageOBSScreenshot) GetImage ¶
func (s *DashboardSourceImageOBSScreenshot) GetImage( ctx context.Context, obsServer obs_grpc.OBSServer, el DashboardElementConfig, obsState *streamtypes.OBSState, ) (image.Image, time.Time, error)
func (*DashboardSourceImageOBSScreenshot) GetImageBytes ¶
func (*DashboardSourceImageOBSScreenshot) SourceType ¶
func (*DashboardSourceImageOBSScreenshot) SourceType() DashboardSourceImageType
type DashboardSourceImageOBSVolume ¶
type DashboardSourceImageOBSVolume struct { Name string `yaml:"name" json:"name"` UpdateInterval Duration `yaml:"update_interval" json:"update_interval"` ColorActive string `yaml:"color_active" json:"color_active"` ColorPassive string `yaml:"color_passive" json:"color_passive"` }
func (*DashboardSourceImageOBSVolume) GetImage ¶
func (s *DashboardSourceImageOBSVolume) GetImage( ctx context.Context, obsServer obs_grpc.OBSServer, el DashboardElementConfig, obsState *streamtypes.OBSState, ) (image.Image, time.Time, error)
func (*DashboardSourceImageOBSVolume) SourceType ¶
func (*DashboardSourceImageOBSVolume) SourceType() DashboardSourceImageType
type DashboardSourceImageType ¶
type DashboardSourceImageType string
func (DashboardSourceImageType) New ¶
func (mst DashboardSourceImageType) New() SourceImage
type EventQuery ¶
type EventQuery = eventquery.EventQuery
type FilterColor ¶
type FilterColor struct { Brightness float64 `yaml:"brightness" json:"brightness"` Opacity float64 `yaml:"opacity" json:"opacity"` }
func (*FilterColor) DashboardFilterType ¶
func (f *FilterColor) DashboardFilterType() DashboardFilterType
type GetImageByteser ¶
type GitRepoConfig ¶
type ImageFormat ¶
type ImageFormat string
type P2PNetwork ¶
type P2PNetwork struct { NetworkID string `yaml:"network_id"` PeerName string `yaml:"peer_name"` PrivateKey P2PPrivateKey `yaml:"private_key"` PSK secret.Bytes `yaml:"psk"` VPN P2PVPNConfig `yaml:"vpn"` }
func GetRandomP2PConfig ¶
func GetRandomP2PConfig() P2PNetwork
func (*P2PNetwork) IsZero ¶
func (cfg *P2PNetwork) IsZero() bool
type P2PPrivateKey ¶
func (*P2PPrivateKey) Get ¶
func (cfg *P2PPrivateKey) Get() (crypto.PrivateKey, error)
type P2PVPNConfig ¶
type P2PVPNConfig struct {
Network string `yaml:"network"`
}
type ProfileMetadata ¶
type SourceImage ¶
type SourceImage interface { GetImage( ctx context.Context, obsServer obs_grpc.OBSServer, el DashboardElementConfig, obsState *streamtypes.OBSState, ) (image.Image, time.Time, error) SourceType() DashboardSourceImageType }
type TriggerRule ¶
type TriggerRule struct { Description string `yaml:"description,omitempty" json:"description,omitempty"` EventQuery eventquery.EventQuery `yaml:"trigger" json:"trigger"` Action action.Action `yaml:"action" json:"action"` }
func (TriggerRule) MarshalYAML ¶
func (tr TriggerRule) MarshalYAML() (b []byte, _err error)
func (*TriggerRule) String ¶
func (tr *TriggerRule) String() string
func (*TriggerRule) UnmarshalYAML ¶
func (tr *TriggerRule) UnmarshalYAML(b []byte) (_err error)
type TriggerRules ¶
type TriggerRules []*TriggerRule
Source Files ¶
Click to show internal directories.
Click to hide internal directories.