flussonic

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flussonic

type Flussonic struct {
	Url            *url.URL
	User           string
	Password       string
	ScrapeInterval string
	InstanceName   string
}

func ParseConfig

func ParseConfig(v *viper.Viper, key string) ([]*Flussonic, error)

func (*Flussonic) GetMedia added in v0.2.0

func (f *Flussonic) GetMedia() (*Media, error)

func (*Flussonic) GetServer

func (f *Flussonic) GetServer() (*Server, error)

func (*Flussonic) GetSessions added in v0.3.0

func (f *Flussonic) GetSessions() (*Sessions, error)

type Media added in v0.2.0

type Media struct {
	RequestDuration float64
	Url             string
	Streams         map[string]*Stream
}

type MediaInfo added in v0.4.0

type MediaInfo struct {
	Provider string   `mapstructure:"provider"`
	Title    string   `mapstructure:"title"`
	Tracks   []Tracks `mapstructure:"tracks"`
}

type MediaSessions added in v0.3.0

type MediaSessions struct {
	Name         string
	DvrClients   float64
	TotalClients float64
	Types        map[string]float64
}

type Options added in v0.2.0

type Options struct {
	Disabled bool   `mapstructure:"disabled"`
	Title    string `mapstructure:"title"`
	Comment  string `mapstructure:"comment"`
}

type Server

type Server struct {
	RequestDuration float64 `json:"-"`
	Url             string  `json:"-"`
	TotalClients    float64 `json:"total_clients"`
}

type Sessions added in v0.3.0

type Sessions struct {
	RequestDuration float64
	Url             string
	TotalDvrClients float64
	Sessions        map[string]*MediaSessions
}

type Stats added in v0.2.0

type Stats struct {
	Bitrate           float64   `mapstructure:"bitrate"`
	Alive             bool      `mapstructure:"alive"`
	ClientCount       float64   `mapstructure:"client_count"`
	DvrEnabled        bool      `mapstructure:"dvr_enabled"`
	InputErrorRate    float64   `mapstructure:"input_error_rate"`
	Lifetime          float64   `mapstructure:"lifetime"`
	RetryCount        float64   `mapstructure:"retry_count"`
	RunningTranscoder bool      `mapstructure:"running_transcoder"`
	MediaInfo         MediaInfo `mapstructure:"media_info"`
}

type Stream added in v0.2.0

type Stream struct {
	Name    string  `mapstructure:"name"`
	Stats   Stats   `mapstructure:"stats"`
	Options Options `mapstructure:"options"`
}

type Tracks added in v0.4.0

type Tracks struct {
	TrackId string `mapstructure:"track_id"`
	Content string `mapstructure:"content"`
}

Jump to

Keyboard shortcuts

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