Documentation ¶
Overview ¶
Copyright 2023 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2024 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2024 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
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 ¶
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) *HttpServerEntity
func NewHttpServerEntity ¶
func NewHttpServerEntity(addr string, port string) *HttpServerEntity
func (*HttpServerEntity) Start ¶
func (e *HttpServerEntity) Start()
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