config

package
v0.0.0-...-a0a6eb5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: MIT Imports: 6 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 {
	OauthToken         string `json:"oauthToken"`
	ExpirationDateTime int64  `json:"expirationDateTime"`
	MainAlbumUrl       string `json:"mainAlbumUrl"`
}

func Load

func Load() (*Config, error)

func (*Config) Save

func (config *Config) Save() error

func (*Config) TokenExpired

func (config *Config) TokenExpired() bool

func (*Config) UpdateExpirationDateTime

func (config *Config) UpdateExpirationDateTime(expiresIn int64)

Jump to

Keyboard shortcuts

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