Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEmbedFrameAncestors added in v0.2.1

func ParseEmbedFrameAncestors(value string) []string

ParseEmbedFrameAncestors parses the comma- or whitespace-separated format accepted by CLICKCLACK_EMBED_FRAME_ANCESTORS and --embed-frame-ancestors.

Types

type Config

type Config struct {
	Addr                string   `json:"addr"`
	Data                string   `json:"data"`
	DB                  string   `json:"db"`
	Uploads             string   `json:"uploads"`
	Environment         string   `json:"environment"`
	MetricsEnabled      bool     `json:"metrics_enabled"`
	PublicURL           string   `json:"public_url"`
	PublicAPIURL        string   `json:"public_api_url"`
	EmbedFrameAncestors []string `json:"embed_frame_ancestors"`
	CookieNamespace     string   `json:"cookie_namespace"`
	DevBootstrap        bool     `json:"dev_bootstrap"`
	GitHubClientID      string   `json:"github_client_id"`
	GitHubClientSecret  string   `json:"github_client_secret"`
	GitHubAllowedOrg    string   `json:"github_allowed_org"`
	GitHubModeratorOrg  string   `json:"github_moderator_org"`
	AccessTeamDomain    string   `json:"access_team_domain"`
	AccessAUD           string   `json:"access_aud"`
	PushoverAPIToken    string   `json:"pushover_api_token"`
	R2AccountID         string   `json:"r2_account_id"`
	R2AccessKeyID       string   `json:"r2_access_key_id"`
	R2SecretAccessKey   string   `json:"r2_secret_access_key"`
	R2Endpoint          string   `json:"r2_endpoint"`
}

func Defaults

func Defaults() Config

func Load

func Load(path string) (Config, error)

func (*Config) ValidateServe added in v0.2.0

func (c *Config) ValidateServe() error

Jump to

Keyboard shortcuts

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