config

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	InsecurePort    int
	Port            int
	CertFilePath    string
	KeyFilePath     string
	AgentVersion    string
	AgentRepository string
	DB              *coredb.DB
	Models          *model.Models
	InformerFactory informer.Factory
	ServiceFactory  *service.Factory
	ReleaseVersion  string
}

func NewServerConfig

func NewServerConfig(op *ServerOptions) (*ServerConfig, error)

type ServerOptions

type ServerOptions struct {
	InsecurePort         int
	Port                 int
	RedisAddress         string
	RedisDB              int
	RedisPassword        string
	CertFilePath         string
	KeyFilePath          string
	MysqlHost            string
	MysqlUser            string
	MysqlPassword        string
	MysqlDbName          string
	ListWatcherResyncSec int
	AgentVersion         string
	AgentRepository      string
	ReleaseVersion       string
}

Jump to

Keyboard shortcuts

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