Documentation
¶
Overview ¶
Package kernel is the core of olive.
Index ¶
- func NewBout(showID string, showMap *syncmap.RWMap[string, Show], cfg *config.Config) (*bout, error)
- type Kernel
- func (k *Kernel) DeleteShow(shows ...Show)
- func (k *Kernel) Done() <-chan struct{}
- func (k *Kernel) HandleShow(shows ...Show)
- func (k *Kernel) IsValidPortalUser(un, pw string) bool
- func (k *Kernel) Run()
- func (k *Kernel) Shutdown(ctx context.Context)
- func (k *Kernel) UpdateConfig(key, value string)
- func (k *Kernel) UpdateShow(shows ...Show)
- type Show
- type SplitRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kernel ¶
type Kernel struct {
// contains filtered or unexported fields
}
func (*Kernel) DeleteShow ¶
func (*Kernel) HandleShow ¶
func (*Kernel) IsValidPortalUser ¶
func (*Kernel) UpdateConfig ¶
func (*Kernel) UpdateShow ¶
type Show ¶
type Show struct { ID string `json:"show_id"` Enable bool `json:"enable"` Platform string `json:"platform"` RoomID string `json:"room_id"` StreamerName string `json:"streamer_name"` OutTmpl string `json:"out_tmpl"` Parser string `json:"parser"` SaveDir string `json:"save_dir"` PostCmds string `json:"post_cmds"` SplitRule string `json:"split_rule"` DateCreated time.Time `json:"date_created"` DateUpdated time.Time `json:"date_updated"` }
Show represents an individual show.
func (*Show) CheckAndFix ¶
type SplitRule ¶
func NewSplitRule ¶
Click to show internal directories.
Click to hide internal directories.