rest

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterSessionsByIP

func FilterSessionsByIP(nodeMap *map[string]*core.NodeAssociation, filterByIP net.IP) *core.Session

func FilterSessionsByTeid

func FilterSessionsByTeid(nodeMap *map[string]*core.NodeAssociation, filterByTeid uint32) *core.Session

func GetAllSessions

func GetAllSessions(nodeMap *map[string]*core.NodeAssociation) (sessions []core.Session)

Types

type ApiHandler

type ApiHandler struct {
	BpfObjects        *ebpf.BpfObjects
	PfcpSrv           *core.PfcpConnection
	ForwardPlaneStats *ebpf.UpfXdpActionStatistic
	Cfg               *config.UpfConfig
}

func NewApiHandler

func NewApiHandler(bpfObjects *ebpf.BpfObjects, pfcpSrv *core.PfcpConnection, forwardPlaneStats *ebpf.UpfXdpActionStatistic, cfg *config.UpfConfig) *ApiHandler

func (*ApiHandler) InitMetricsRoute

func (h *ApiHandler) InitMetricsRoute() *gin.Engine

func (*ApiHandler) InitRoutes

func (h *ApiHandler) InitRoutes() *gin.Engine

Jump to

Keyboard shortcuts

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