Documentation
¶
Index ¶
- Variables
- func AddNotify(n *Notify) error
- func AddServer(s *EmbyServer) error
- func CheckInit() bool
- func CreateUser(username, password string) error
- func DeleteNotify(id uint) error
- func DeleteServer(id uint) error
- func Init(path string) error
- func UpdateGlobalConfig(g *GlobalConfig) error
- func UpdateNotify(n *Notify) error
- func UpdatePassword(username, newPassword string) error
- func UpdateServer(s *EmbyServer) error
- type EmbyServer
- type GlobalConfig
- type Notify
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func AddServer ¶
func AddServer(s *EmbyServer) error
func CreateUser ¶
func DeleteNotify ¶ added in v0.0.8
func DeleteServer ¶
func UpdateGlobalConfig ¶
func UpdateGlobalConfig(g *GlobalConfig) error
func UpdateNotify ¶ added in v0.0.8
func UpdatePassword ¶
func UpdateServer ¶
func UpdateServer(s *EmbyServer) error
Types ¶
type EmbyServer ¶
type EmbyServer struct {
ID uint `gorm:"primaryKey" json:"ID"`
Name string `gorm:"uniqueIndex" json:"Name"`
HTTPPort int `gorm:"uniqueIndex" json:"HTTPPort"`
EmbyHost string `json:"EmbyHost"`
EmbyToken string `json:"EmbyToken"`
MountPath string `json:"MountPath"`
LocalMediaRoot string `json:"LocalMediaRoot"` // Emby 本地媒体根目录
OpenlistHost string `json:"OpenlistHost"`
OpenlistToken string `json:"OpenlistToken"`
InternalRedirectEnable bool `json:"InternalRedirectEnable"`
DirectLinkCacheExpired string `json:"DirectLinkCacheExpired"`
DirectLinkCacheIgnore string `json:"DirectLinkCacheIgnore"`
DirectLinkCacheIgnoreMode int `json:"DirectLinkCacheIgnoreMode"` // 0: blacklist, 1: whitelist
DisableProxy bool `json:"DisableProxy"` // If true, only serve as config holder, don't start proxy
CreatedAt time.Time
UpdatedAt time.Time
}
func GetServers ¶
func GetServers() ([]EmbyServer, error)
type GlobalConfig ¶
type GlobalConfig struct {
ID uint `gorm:"primaryKey"`
EpisodesUnplayPrior bool
ResortRandomItems bool
ProxyErrorStrategy string
ImagesQuality int
DownloadStrategy string
CacheEnable bool
CacheExpired string
VideoPreviewEnable bool
VideoPreviewContainers string
VideoPreviewIgnoreTemplateIds string
PathEmby2Openlist string
LogDisableColor bool
StrmPathMap string
CacheWhiteList string
LTGEnable bool
LTGFFmpegEnable bool
LTGVirtualContainers string
LTGStrmContainers string
LTGMusicContainers string
LTGAutoRemoveMaxCount int
LTGRefreshInterval int
LTGScanPrefixes string
LTGIgnoreContainers string
LTGThreads int
SslEnable bool
SslSinglePort bool
SslKey string
SslCrt string
NotifyEnable bool
NotifyUrl string
NotifyMethod string
NotifyContentType string
NotifyTitleKey string
NotifyContentKey string
}
func GetGlobalConfig ¶
func GetGlobalConfig() (GlobalConfig, error)
type Notify ¶ added in v0.0.8
type Notify struct {
ID uint `gorm:"primaryKey" json:"ID"`
Name string `json:"Name"`
Enable bool `json:"Enable"`
Url string `json:"Url"`
Method string `json:"Method"`
ContentType string `json:"ContentType"`
TitleKey string `json:"TitleKey"`
ContentKey string `json:"ContentKey"`
CreatedAt time.Time `json:"CreatedAt"`
UpdatedAt time.Time `json:"UpdatedAt"`
}
func GetNotifies ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.