config

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load added in v0.3.0

func Load(filename string) error

Types

type Card

type Card struct {
	Id      string  `yaml:"id"`
	Name    string  `yaml:"name"`
	Library Library `yaml:"library"`
}

type Config

type Config struct {
	Identity string `yaml:"identity"`
	Cards    []Card `yaml:"cards"`

	Goodreads Goodreads `yaml:"goodreads"`
	// contains filtered or unexported fields
}

func Get added in v0.3.0

func Get() *Config

func (*Config) Save added in v0.3.0

func (c *Config) Save() error

type Goodreads added in v0.3.0

type Goodreads struct {
	AccessToken  string `yaml:"access_token"`
	RefreshToken string `yaml:"refresh_token"`
	ExpiresAt    int64  `yaml:"expires_at"`
	UserId       string `yaml:"user_id"`
}

type Library

type Library struct {
	Name string `yaml:"name"`
	Key  string `yaml:"key"`
}

Jump to

Keyboard shortcuts

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