config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init init config for eupf package

Types

type UpfConfig

type UpfConfig struct {
	InterfaceName     []string `mapstructure:"interface_name"`
	XDPAttachMode     string   `mapstructure:"xdp_attach_mode" validate:"oneof=generic native offload"`
	ApiAddress        string   `mapstructure:"api_address" validate:"hostname_port"`
	PfcpAddress       string   `mapstructure:"pfcp_address" validate:"hostname_port"`
	PfcpNodeId        string   `mapstructure:"pfcp_node_id" validate:"hostname|ip"`
	MetricsAddress    string   `mapstructure:"metrics_address" validate:"hostname_port"`
	N3Address         string   `mapstructure:"n3_address" validate:"ipv4"`
	QerMapSize        uint32   `mapstructure:"qer_map_size" validate:"min=1"`
	FarMapSize        uint32   `mapstructure:"far_map_size" validate:"min=1"`
	PdrMapSize        uint32   `mapstructure:"pdr_map_size" validate:"min=1"`
	EbpfMapResize     bool     `mapstructure:"resize_ebpf_maps"`
	HeartbeatRetries  uint32   `mapstructure:"heartbeat_retries"`
	HeartbeatInterval uint32   `mapstructure:"heartbeat_interval"`
	HeartbeatTimeout  uint32   `mapstructure:"heartbeat_timeout"`
}
var Conf UpfConfig

func (*UpfConfig) Unmarshal

func (c *UpfConfig) Unmarshal() error

Unmarshal data from config file

func (*UpfConfig) Validate

func (c *UpfConfig) Validate() error

Jump to

Keyboard shortcuts

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