Documentation ¶
Overview ¶
Package core is the core of Kirino Media Server. core is to Kirino as OpenRC or *cringes in disgust* systemd is to Linux.
Index ¶
- func DecodeConfig(path string)
- func RunServices(c *Core)
- type Config
- type Core
- func (c *Core) AddFetcher(fetcher *Fetcher)
- func (c *Core) AddTask(t *Task)
- func (c *Core) AddUser(u *User)
- func (c *Core) AnythingToPlay() bool
- func (c *Core) Fetch(l *Library)
- func (c *Core) Fetcher(id string) *Fetcher
- func (c *Core) Fetchers() []*Fetcher
- func (c *Core) Libraries() []*Library
- func (c *Core) Library(id int) *Library
- func (c *Core) NewLibrary(l *Library)
- func (c *Core) Play() string
- func (c *Core) Provider(id string) *Provider
- func (c *Core) Providers() []*Provider
- func (c *Core) RegisterProvider(provider *Provider)
- func (c *Core) RegisterService(service *Service)
- func (c *Core) Start()
- func (c *Core) Task(id int) *Task
- func (c *Core) Tasks() []*Task
- func (c *Core) ToPlay(thing string)
- type Fetcher
- type Item
- type Library
- type LibraryType
- type Provider
- type Scanner
- type Series
- type Service
- type Task
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶
func DecodeConfig(path string)
func RunServices ¶
func RunServices(c *Core)
RunServices starts up all services on Core c registered with RegisterService
Types ¶
type Core ¶
func (*Core) AddFetcher ¶
Register Fetcher fetcher for Core c
func (*Core) AnythingToPlay ¶
func (*Core) RegisterProvider ¶
func (*Core) RegisterService ¶
Register a service with Core c
type Fetcher ¶
type Fetcher struct { ID string `json:"id"` Type LibraryType `json:"type"` Name string `json:"name"` Description string `json:"description"` SearchFunc func(query string) []*Series `json:"-"` FetchFunc func(series *Series) `json:"-"` }
A fetcher
type Library ¶
type Library struct { ID int `json:"id"` Type LibraryType `json:"type"` Name string `json:"name"` MediaDirs []string `json:"media_dirs"` Scanner *Scanner `json:"scanner"` Provider string `json:"provider"` Fetcher string `json:"Fetcher"` // contains filtered or unexported fields }
A library
type LibraryType ¶
type LibraryType string
const ( LibraryTypeAnime LibraryType = "anime" LibraryTypeManga LibraryType = "manga" LibraryTypeMusic LibraryType = "music" LibraryTypePodcasts LibraryType = "podcasts" LibraryTypeTubeVideos LibraryType = "tube_videos" )
Library types
type Scanner ¶
type Scanner struct { ID string `json:"id"` Type LibraryType `json:"type"` Name string `json:"name"` Func func(library *Library) `json:"-"` }
type Series ¶
Click to show internal directories.
Click to hide internal directories.