config

package
v0.0.0-...-6ed6c48 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 0 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 {
	Name         string          `mapstructure:"name"`
	ServerConfig ServerConfig    `mapstructure:"server"`
	RepoManager  RepoManager     `mapstructure:"repoManager"`
	LogConfig    LogConfig       `mapstructure:"log"`
	Store        PersistentStore `mapstructure:"persistentStore"`
	WorkManager  WorkManager     `mapstructure:"workManager"`
	MQ           MQ              `mapstructure:"mq"`
}

type ImagePuller

type ImagePuller struct {
	MaxRetry       int `mapstructure:"maxRetry"`
	MaxConcurrency int `mapstructure:"maxConcurrency"`
}

type ImagePusher

type ImagePusher struct {
	Endpoint string `mapstructure:"endpoint"`
	AK       string `mapstructure:"ak"`
	SK       string `mapstructure:"sk"`
	Bucket   string `mapstructure:"bucket"`
	PartSize int64  `mapstructure:"partSize"`
}

type ImageVerifier

type ImageVerifier struct {
}

type LogConfig

type LogConfig struct {
	LogFile string `mapstructure:"logFile"`
	ErrFile string `mapstructure:"errFile"`
}

type MQ

type MQ struct {
	KafkaBrokers string `mapstructure:"kafka_brokers"`
}

type PersistentStore

type PersistentStore struct {
	Host     string `mapstructure:"host"`
	Port     int    `mapstructure:"port"`
	User     string `mapstructure:"user"`
	Password string `mapstructure:"password"`
	DBName   string `mapstructure:"dbname"`
}

type RepoManager

type RepoManager struct {
}

type ServerConfig

type ServerConfig struct {
	PublicHttpPort   int    `mapstructure:"publicHttpPort"`
	InternalHttpPort int    `mapstructure:"internalHttpPort"`
	DataFolder       string `mapstructure:"dataFolder"`
}

type WorkManager

type WorkManager struct {
	SyncInterval int     `mapstructure:"syncInterval"`
	Threads      int     `mapstructure:"threads"`
	Workers      Workers `mapstructure:"workers"`
}

type Workers

type Workers struct {
	ImagePusher   ImagePusher   `mapstructure:"imagerPusher"`
	ImageVerifier ImageVerifier `mapstructure:"imageVerifier"`
	ImagePuller   ImagePuller   `mapstructure:"imagerPuller"`
}

Jump to

Keyboard shortcuts

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