config

package
v0.0.0-...-f1ebe90 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Public    string = "public"    // everyone can read/write
	Protected string = "protected" // everyone can read, write with api key
	Private   string = "private"   // read/write with api key
)

Variables

This section is empty.

Functions

func ValidateAccess

func ValidateAccess(s string) bool

Types

type Config

type Config struct {
	DataDir       string
	JSONCacheSize int
	MetaCacheSize int
	DefaultAccess string
}

func NewConfig

func NewConfig() *Config

type DataDir

type DataDir string

func NewDataDir

func NewDataDir(conf *Config, logger *util.Logger) (DataDir, error)

Jump to

Keyboard shortcuts

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