config

package
v0.0.0-...-560f09a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticConfig

type ElasticConfig struct {
	ESNodes         []string `yaml:"elastic_nodes"`
	Username        string   `yaml:"username"`
	ESPass          string   `yaml:"elastic_pass"`
	Index           string   `yaml:"index"`
	BatchSize       int      `yaml:"batch_size"`
	BatchTimeMillis int      `yaml:"batch_time_millis"`
}

type EtcdConfig

type EtcdConfig struct {
	Hosts    []string `yaml:"hosts"`
	Username string   `yaml:"username"`
	Password string   `yaml:"password"`
}

type GiteaConfig

type GiteaConfig struct {
	HostUrl  string `yaml:"host_url"`
	Username string `yaml:"username"`
	Password string `yaml:"password""`
}

type JetstreamConfig

type JetstreamConfig struct {
	Host        string `yaml:"host"`
	Username    string `yaml:"username"`
	Password    string `yaml:"password"`
	MaxPubQueue int    `yaml:"max_pub_queue"`
}

type LoggerConfig

type LoggerConfig struct {
	Name     string        `yaml:"name"`
	WorkerId string        `yaml:"worker_id"`
	Level    logrus.Level  `yaml:"level"`
	File     string        `yaml:"file"`
	ESConfig ElasticConfig `yaml:"es_config"`
}

type MeiliConfig

type MeiliConfig struct {
	Host    string                      `yaml:"host"`
	Token   string                      `yaml:"token"`
	Indices map[string]MeiliIndexConfig `yaml:"indices"`
}

type MeiliIndexConfig

type MeiliIndexConfig struct {
	Name                 string   `yaml:"name"`
	PrimaryKey           string   `yaml:"primary_key"`
	UpdateConfig         bool     `yaml:"update_config"`
	SearchableAttributes []string `yaml:"searchable_attributes"`
	FilterableAttributes []string `yaml:"filterable_attributes"`
	DisplayedAttributes  []string `yaml:"displayed_attributes"`
	SortableAttributes   []string `yaml:"sortable_attributes"`
}

type RedisConfig

type RedisConfig struct {
	RedisNodes    []string `yaml:"redis_nodes"`
	RedisDatabase int      `yaml:"redis_db"`
	RedisType     string   `yaml:"redis_type"`
	RedisPassword string   `yaml:"redis_pass"`
}

type StorageConfig

type StorageConfig struct {
	Engine StorageEngine   `yaml:"engine"`
	S3     StorageS3Config `yaml:"s3"`
	FS     StorageFSConfig `yaml:"fs"`
}

type StorageEngine

type StorageEngine string
const (
	StorageEngineS3 StorageEngine = "s3"
	StorageEngineFS StorageEngine = "fs"
)

type StorageFSConfig

type StorageFSConfig struct {
	Root string `yaml:"root"`
}

type StorageS3Config

type StorageS3Config struct {
	Bucket    string `yaml:"bucket"`
	Region    string `yaml:"region"`
	AccessKey string `yaml:"access_key"`
	SecretKey string `yaml:"secret_key"`
	Endpoint  string `yaml:"endpoint"`
	UseSSL    bool   `yaml:"use_ssl"`
}

type TitaniumConfig

type TitaniumConfig struct {
	TitaniumHost       string   `yaml:"db_host"`
	TitaniumPort       string   `yaml:"db_port"`
	TitaniumPDHosts    []string `yaml:"pd_hosts"`
	TitaniumName       string   `yaml:"db_name"`
	TitaniumUser       string   `yaml:"db_user"`
	TitaniumPassword   string   `yaml:"db_password"`
	TitaniumBackupPath string   `yaml:"db_backup_path"`
}

Jump to

Keyboard shortcuts

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