config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DBFile      string                           `yaml:"db_file"`
	SQLiteDB    string                           `yaml:"sqlite_db"`
	PostgresURL string                           `yaml:"postgres_url"`
	DID         string                           `yaml:"did"`
	PrivateKey  string                           `yaml:"private_key"`
	Password    string                           `yaml:"password"`
	Endpoint    string                           `yaml:"endpoint"`
	Labels      bsky.LabelerDefs_LabelerPolicies `yaml:"labels"`
}

func (*Config) LabelValues

func (c *Config) LabelValues() []string

LabelValues returns the list of labels specified in the config.

func (*Config) UpdateLabelValues

func (c *Config) UpdateLabelValues()

UpdateLabelValues ensures that all labels defined in c.Labels.LabelValueDefinitions are also listed in c.Labels.LabelValues.

Jump to

Keyboard shortcuts

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