config

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlRule

type AccessControlRule struct {
	Action   string `yaml:"action"`
	Pubkey   string `yaml:"pubkey"`
	Resource string `yaml:"resource"`
}

type Config

type Config struct {
	DbPath             string              `yaml:"db_path"`
	LogLevel           string              `yaml:"log_level"`
	ApiAddr            string              `yaml:"api_addr"`
	CdnUrl             string              `yaml:"cdn_url"`
	AdminPubkey        string              `yaml:"admin_pubkey"`
	MaxUploadSizeBytes int                 `yaml:"max_upload_size_bytes"`
	AccessControlRules []AccessControlRule `yaml:"access_control_rules"`
	AllowedMimeTypes   []string            `yaml:"allowed_mime_types"`
}

func NewConfig

func NewConfig(path string) (*Config, error)

Jump to

Keyboard shortcuts

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