config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	Uri      jsonapi.ControlURI `yaml:"uri"`       // may contain domain name instead of ip address
	BindAddr netip.AddrPort     `yaml:"bind-addr"` // in the form `ip:port`
}

type Cp

type Cp struct {
	Uri         jsonapi.ControlURI `yaml:"uri"` // uri of the control plane
	OneWayDelay time.Duration      `yaml:"one-way-delay"`
}

type DockerSetup added in v0.1.0

type DockerSetup struct {
	Routes []Route `yaml:"routes"`
}

TODO: move this into github.com/nextmn/docker-setup

type GNBConfig

type GNBConfig struct {
	Control     Control     `yaml:"control"`
	Ran         Ran         `yaml:"ran"`
	Cp          Cp          `yaml:"cp"`
	Logger      *Logger     `yaml:"logger,omitempty"`
	Gtp         netip.Addr  `yaml:"gtp"`
	DockerSetup DockerSetup `yaml:"docker-setup"`
}

func ParseConf

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

type Logger

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

type OneWayDelays added in v0.1.0

type OneWayDelays struct {
	Control time.Duration `yaml:"control"`
	Data    time.Duration `yaml:"data"`
}

type Ran

type Ran struct {
	BindAddr     netip.AddrPort `yaml:"bind-addr"`
	OneWayDelays OneWayDelays   `yaml:"one-way-delays"` // one-way-delays used for downlink
}

type Route added in v0.1.0

type Route struct {
	Prefix  netip.Prefix `yaml:"prefix"`
	Gateway netip.Addr   `yaml:"gateway"`
}

Jump to

Keyboard shortcuts

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