config

package
v0.0.0-...-d2593da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PlexServerUrl string                     `json:"plexServerUrl"`
	PlexToken     string                     `json:"plexToken"`
	Playlists     map[string]*PlaylistConfig `json:"playlists"`
	KeyCacheSalt  string                     `json:"keyCacheSalt"`
	HttpPort      int                        `json:"port"` // Http port
}

func NewConfig

func NewConfig() (*Config, error)

type PlaylistConfig

type PlaylistConfig struct {
	PlexRatingKey  int  `json:"plexRatingKey"`  // Playlists to expose
	VisibleOnIndex bool `json:"visibleOnIndex"` // Whether the playlist should be visible on the index page
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL