Documentation
¶
Index ¶
- Constants
- func NewPFCPNode(conf *config.CtrlConfig) *pfcp_networking.PFCPEntityUP
- func PFCPServerAddHooks(s *pfcp_networking.PFCPEntityUP, pusher *RulesPusher) error
- func StartPFCPServer(ctx context.Context, srv *pfcp_networking.PFCPEntityUP)
- type HttpServerEntity
- type RouterRegistry
- type RulesPusher
- type Setup
Constants ¶
View Source
const UserAgent = "go-github-nextmn-srv6-ctrl"
Variables ¶
This section is empty.
Functions ¶
func NewPFCPNode ¶
func NewPFCPNode(conf *config.CtrlConfig) *pfcp_networking.PFCPEntityUP
func PFCPServerAddHooks ¶ added in v0.0.9
func PFCPServerAddHooks(s *pfcp_networking.PFCPEntityUP, pusher *RulesPusher) error
func StartPFCPServer ¶ added in v0.0.9
func StartPFCPServer(ctx context.Context, srv *pfcp_networking.PFCPEntityUP)
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() error
func (*HttpServerEntity) Stop ¶
func (e *HttpServerEntity) Stop()
type RouterRegistry ¶
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
PFCPServer *pfcp_networking.PFCPEntityUP
RulesPusher *RulesPusher
}
func NewSetup ¶
func NewSetup(conf *config.CtrlConfig) Setup
Click to show internal directories.
Click to hide internal directories.