config

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNN

type DNN struct {
	Dnn  string `yaml:"dnn"`
	Cidr string `yaml:"cidr"`
}

type GTPU

type GTPU struct {
	Forwarder            string               `yaml:"forwarder"`
	TunInterfaceName     *string              `yaml:"tunInterfaceName,omitempty"`
	GTPUProtocolEntities []GTPUProtocolEntity `yaml:"ifList"`
}

type GTPUProtocolEntity

type GTPUProtocolEntity struct {
	Addr netip.Addr `yaml:"addr"`
	Type string     `yaml:"type"` // unused for now, should contain N3, N9, etc.
}

type Logger added in v0.0.9

type Logger struct {
	Level logrus.Level `yaml:"level"`
}

type PFCP

type PFCP struct {
	Addr           netip.Addr     `yaml:"addr"`
	NodeID         string         `yaml:"nodeID"`
	RetransTimeout *time.Duration `yaml:"retransTimeout,omitempty"`
	MaxRetrans     *int           `yaml:"maxRetrans,omitempty"`
}

type UpfConfig

type UpfConfig struct {
	Pfcp    PFCP    `yaml:"pfcp"`
	Gtpu    GTPU    `yaml:"gtpu"`
	DNNList []DNN   `yaml:"dnnList"`
	Logger  *Logger `yaml:"logger,omitempty"`
}

func ParseConf

func ParseConf(file string) (*UpfConfig, error)

Jump to

Keyboard shortcuts

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