Documentation ¶
Index ¶
- type Jellyfin
- func (jf *Jellyfin) Authenticate(username, password string) (map[string]interface{}, int, error)
- func (jf *Jellyfin) DeleteUser(userID string) (int, error)
- func (jf *Jellyfin) GetDisplayPreferences(userID string) (map[string]interface{}, int, error)
- func (jf *Jellyfin) GetUsers(public bool) ([]map[string]interface{}, int, error)
- func (jf *Jellyfin) NewUser(username, password string) (map[string]interface{}, int, error)
- func (jf *Jellyfin) SetConfiguration(userID string, configuration map[string]interface{}) (int, error)
- func (jf *Jellyfin) SetDisplayPreferences(userID string, displayprefs map[string]interface{}) (int, error)
- func (jf *Jellyfin) SetPolicy(userID string, policy map[string]interface{}) (int, error)
- func (jf *Jellyfin) UserByID(userID string, public bool) (map[string]interface{}, int, error)
- func (jf *Jellyfin) UserByName(username string, public bool) (map[string]interface{}, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jellyfin ¶
type Jellyfin struct { Server string ServerInfo serverInfo Username string Authenticated bool AccessToken string CacheExpiry time.Time Hyphens bool // contains filtered or unexported fields }
Jellyfin represents a running Jellyfin instance.
func NewJellyfin ¶
func NewJellyfin(server, client, version, device, deviceID string, timeoutHandler common.TimeoutHandler, cacheTimeout int) (*Jellyfin, error)
NewJellyfin returns a new Jellyfin object.
func (*Jellyfin) Authenticate ¶
Authenticate attempts to authenticate using a username & password
func (*Jellyfin) DeleteUser ¶
DeleteUser deletes the user corresponding to the provided ID.
func (*Jellyfin) GetDisplayPreferences ¶
GetDisplayPreferences gets the displayPreferences (part of homescreen layout) for the user corresponding to the provided ID.
func (*Jellyfin) SetConfiguration ¶
func (jf *Jellyfin) SetConfiguration(userID string, configuration map[string]interface{}) (int, error)
SetConfiguration sets the configuration (part of homescreen layout) for the user corresponding to the provided ID.
func (*Jellyfin) SetDisplayPreferences ¶
func (jf *Jellyfin) SetDisplayPreferences(userID string, displayprefs map[string]interface{}) (int, error)
SetDisplayPreferences sets the displayPreferences (part of homescreen layout) for the user corresponding to the provided ID.
func (*Jellyfin) SetPolicy ¶
SetPolicy sets the access policy for the user corresponding to the provided ID.