config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Config     *Config     `yaml:"config"`
	ServerChan *ServerChan `yaml:"serverChan"`
	// contains filtered or unexported fields
}

func New

func New(path string) (*Conf, error)

func (*Conf) Update

func (c *Conf) Update(config *Config) error

type Config

type Config struct {
	RefreshToken string `yaml:"refreshToken"`
	AccessToken  string `yaml:"accessToken"`
	ExpiredAt    int64  `yaml:"expiredAt"`
}

type ServerChan

type ServerChan struct {
	SecretKey string `yaml:"secretKey"`
}

Jump to

Keyboard shortcuts

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