config

package
v0.0.0-...-849f1c2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	PullZone  int    `yaml:"pull_zone"`
	AccessKey string `yaml:"access_key"`
}

Cache config

type Config

type Config struct {
	Path    string  `yaml:"path"`
	Cache   Cache   `yaml:"cache"`
	Storage Storage `yaml:"storage"`
}

Config of the bunny-upload

func Read

func Read(configPath string) (*Config, error)

Read config from file system

type Storage

type Storage struct {
	Zone     string `yaml:"storage_zone"`
	Password string `yaml:"password"`
}

Storage config

Jump to

Keyboard shortcuts

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