config

package
v0.0.0-...-26823d6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TokenKey is the key of the github access token config value
	TokenKey = "gh-access-token"

	// LastSyncKey is the key of the last sync timestamp config value
	LastSyncKey = "last-sync"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config stores and retrieves config values from the data store

func New

func New(storage storage.BucketKeyValueStore) (*Config, error)

New returns a new Config

func (*Config) Get

func (c *Config) Get(id string) (string, error)

Get retieves a config value

func (*Config) Set

func (c *Config) Set(k string, v string) error

Set sets a config value

Jump to

Keyboard shortcuts

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