conf

package
v0.0.0-...-535fc81 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct {
	MaxTimes     int `yaml:"maxTimes"`
	TimeInterval int `yaml:"timeInterval"`
}

type DB

type DB struct {
	Driver string          `yaml:"driver"`
	Mysql  mysqlx.Settings `yaml:"mysql"`
}

func (*DB) Init

func (db *DB) Init()

type RegistrySettings

type RegistrySettings struct {
	Etcd etcdx.Conf `yaml:"etcd"`
}

type Server

type Server struct {
	Http httpsrv.Http `yaml:"http"`
	Grpc grpcsrv.Grpc `yaml:"grpc"`
}

type Settings

type Settings struct {
	Server              `yaml:"server"`
	DB                  DB    `yaml:"db"`
	Timeout             int64 `yaml:"timeout"`
	AutomaticExecution2 bool  `yaml:"automaticExecution2"`
	// Tracing             Tracing          `yaml:"tracing"`
	Registry RegistrySettings `yaml:"registry"`
	Cron     Cron             `yaml:"cron"`
}

func (*Settings) GetRegistry

func (s *Settings) GetRegistry() (registry.Registry, error)

func (*Settings) Init

func (s *Settings) Init()

TODO : Added tracing

func (*Settings) SetRegistry

func (s *Settings) SetRegistry() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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