config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 2 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 {
	Global Global `yaml:"global"`
}

func ReadConfigFile

func ReadConfigFile(configFile string) (Config, error)

type Global

type Global struct {
	Pcep       Pcep       `yaml:"pcep"`
	GrpcServer GrpcServer `yaml:"grpc-server"`
	Log        Log        `yaml:"log"`
	Ted        Ted        `yaml:"ted"`
	Gobgp      Gobgp      `yaml:"gobgp"`
}

type Gobgp added in v1.1.0

type Gobgp struct {
	GrpcClient GrpcClient `yaml:"grpc-client"`
}

type GrpcClient added in v1.1.0

type GrpcClient struct {
	Address string `yaml:"address"`
	Port    string `yaml:"port"`
}

type GrpcServer added in v1.1.0

type GrpcServer struct {
	Address string `yaml:"address"`
	Port    string `yaml:"port"`
}

type Log

type Log struct {
	Path string `yaml:"path"`
	Name string `yaml:"name"`
}

type Pcep

type Pcep struct {
	Address string `yaml:"address"`
	Port    string `yaml:"port"`
}

type Ted added in v1.1.0

type Ted struct {
	Enable bool   `yaml:"enable"`
	Source string `yaml:"source"`
}

Jump to

Keyboard shortcuts

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