models

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(db *gorm.DB)

Init starts the DB migration

Types

type Settings

type Settings struct {
	gorm.Model
	CacheLifetime  int
	MaxLogAge      int
	MaxLogCount    int
	MaxLogSize     int
	SyncInterval   time.Duration
	WebserverPort  int
	LocalServer    plex.Host
	LocalServerID  uint
	RemoteServer   plex.Host
	RemoteServerID uint
}

Settings stores the application settings

func (*Settings) Load

func (s *Settings) Load() error

Load retreves the settings from the Database

func (*Settings) Save

func (s *Settings) Save() error

Save updates the settings in the Database

Jump to

Keyboard shortcuts

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