app

package
v0.0.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const UserAgent = "go-github-nextmn-srv6-ctrl"

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServerEntity

type HttpServerEntity struct {
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(conf *config.CtrlConfig, srv6Srv *pfcp_networking.PFCPEntityUP) *HttpServerEntity

func NewHttpServerEntity

func NewHttpServerEntity(httpAddr netip.AddrPort, pfcp *pfcp_networking.PFCPEntityUP) *HttpServerEntity

func (*HttpServerEntity) Start

func (e *HttpServerEntity) Start(ctx context.Context) error

func (*HttpServerEntity) WaitShutdown added in v0.0.20

func (e *HttpServerEntity) WaitShutdown(ctx context.Context) error

type RouterRegistry

type RouterRegistry struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*RouterRegistry) DeleteRouter

func (r *RouterRegistry) DeleteRouter(c *gin.Context)

func (*RouterRegistry) GetRouter

func (r *RouterRegistry) GetRouter(c *gin.Context)

get a router infos

func (*RouterRegistry) GetRouters

func (r *RouterRegistry) GetRouters(c *gin.Context)

func (*RouterRegistry) PostRouter

func (r *RouterRegistry) PostRouter(c *gin.Context)

post a router infos

func (*RouterRegistry) Status

func (l *RouterRegistry) Status(c *gin.Context)

get status of the controller

type RulesPusher added in v0.0.16

type RulesPusher struct {
	// contains filtered or unexported fields
}

func NewRulesPusher added in v0.0.16

func NewRulesPusher(config *config.CtrlConfig) *RulesPusher

type Setup

type Setup struct {
	HTTPServer  *HttpServerEntity
	Upf         *Upf
	RulesPusher *RulesPusher
}

func NewSetup

func NewSetup(conf *config.CtrlConfig) Setup

func (Setup) Run

func (s Setup) Run(ctx context.Context) error

type Upf added in v0.0.20

type Upf struct {
	// contains filtered or unexported fields
}

func NewUpf added in v0.0.20

func NewUpf(conf *config.CtrlConfig) *Upf

func (*Upf) PFCPServerAddHooks added in v0.0.20

func (upf *Upf) PFCPServerAddHooks(pusher *RulesPusher) error

func (*Upf) Start added in v0.0.20

func (upf *Upf) Start(ctx context.Context) error

func (*Upf) WaitShutdown added in v0.0.20

func (upf *Upf) WaitShutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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