Documentation
¶
Index ¶
- func CheckPortIsValid(method string, port int)
- func ContainsInt(s []int, v int) bool
- func ContainsInt32(s []int32, v int32) bool
- func ContainsString(s []string, v string) bool
- func FilterString(s []string, cb func(s string) bool) []string
- func IsEmpty(text string) string
- func SecondsToMinutes(sec int64) string
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPortIsValid ¶
CheckPortIsValid check port is small than 1024 or bigger than 65535
func ContainsInt32 ¶
ContainsInt32 check value is contains []int32
func ContainsString ¶ added in v1.0.4
ContainsString check value is contains []string
func FilterString ¶ added in v1.0.4
FilterString make new []int32 without specific value
func SecondsToMinutes ¶
SecondsToMinutes convert seconds to minutes
Types ¶
type Event ¶
type Event struct {
Player struct {
ActiveItem struct {
Columns []string `json:"columns"`
Duration float64 `json:"duration"`
Index int `json:"index"`
PlaylistID string `json:"playlistId"`
PlaylistIndex int `json:"playlistIndex"`
Position float64 `json:"position"`
} `json:"activeItem"`
Info struct {
Name string `json:"name"`
PluginVersion string `json:"pluginVersion"`
Title string `json:"title"`
Version string `json:"version"`
} `json:"info"`
PlaybackMode int `json:"playbackMode"`
PlaybackModes []string `json:"playbackModes"`
PlaybackState string `json:"playbackState"`
Volume struct {
IsMuted bool `json:"isMuted"`
Max float64 `json:"max"`
Min float64 `json:"min"`
Type string `json:"type"`
Value float64 `json:"value"`
} `json:"volume"`
} `json:"player"`
}
Event Beefweb JSON struct
Click to show internal directories.
Click to hide internal directories.