config

package
v0.0.0-...-519dc3d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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"`
	LogConfig       LogConfig       `mapstructure:"log"`
	JobManager      *JobManager     `mapstructure:"jobManager"`
	LogManager      *LogManager     `mapstructure:"logManager"`
	PersistentStore PersistentStore `mapstructure:"persistentStore"`
	Engine          Engine          `mapstructure:"engine"`
}

type Engine

type Engine struct {
	PluginName string `mapstructure:"pluginName"`
	//Section below belongs to config option related to kubernetes engine
	X86ConfigFile            string `mapstructure:"x86ConfigFile"`
	Aarch64ConfigFile        string `mapstructure:"aarch64ConfigFile"`
	KubernetesTemplateFolder string `mapstructure:"kubernetesTemplateFolder"`
}

type JobManager

type JobManager struct {
	//Add meaningful option here
	Name         string `mapstructure:"name"`
	Worker       int    `mapstructure:"worker"`
	SyncInterval int    `mapstructure:"syncInterval"`
	//TTL for job record in the format of second
	TTL int64 `mapstructure:"ttl"`
}

type LogConfig

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

type LogManager

type LogManager struct {
	Name   string `mapstructure:"name"`
	Worker int    `mapstructure:"worker"`
	//TTL for log record in the format of second
	TTL int64 `mapstructure:"ttl"`
}

type PersistentStore

type PersistentStore struct {
	PluginName            string            `mapstructure:"pluginName"`
	Hosts                 string            `mapstructure:"hosts"`
	Port                  int               `mapstructure:"port"`
	User                  string            `mapstructure:"user"`
	Password              string            `mapstructure:"password"`
	Keyspace              string            `mapstructure:"keyspace"`
	MaxConns              int               `mapstructure:"maxConns"`
	ConnectAttributes     map[string]string `mapstructure:"connectAttributes"`
	ProtoVersion          int               `mapstructure:"protoVersion"`
	AllowedAuthenticators []string          `mapstructure:"allowedAuthenticators"`
	Region                string            `mapstructure:"region"`
	Datacenter            string            `mapstructure:"datacenter"`
}

type ServerConfig

type ServerConfig struct {
	HttpPort int `mapstructure:"httpPort"`
}

Jump to

Keyboard shortcuts

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