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 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 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 ¶
This section is empty.
Variables ¶
var PFCPServer *pfcp_networking.PFCPEntityUP
Functions ¶
Types ¶
type CtrlConfig ¶
type CtrlConfig struct { Debug *bool `yaml:"debug,omitempty"` // default: false PFCPAddress *string `yaml:"pfcp-address,omitempty"` HTTPAddress *string `yaml:"http-address,omitempty"` HTTPPort *string `yaml:"http-port,omitempty"` // default: 80 }
var Ctrl *CtrlConfig
type HttpServerEntity ¶ added in v0.0.3
type HttpServerEntity struct {
// contains filtered or unexported fields
}
var HTTPServer *HttpServerEntity
func NewHttpServerEntity ¶ added in v0.0.3
func NewHttpServerEntity(addr string, port string) *HttpServerEntity
func (*HttpServerEntity) Start ¶ added in v0.0.3
func (e *HttpServerEntity) Start()
func (*HttpServerEntity) Stop ¶ added in v0.0.3
func (e *HttpServerEntity) Stop()
type RouterRegistry ¶ added in v0.0.3
func (*RouterRegistry) DeleteRouter ¶ added in v0.0.3
func (r *RouterRegistry) DeleteRouter(c *gin.Context)
func (*RouterRegistry) GetRouter ¶ added in v0.0.3
func (r *RouterRegistry) GetRouter(c *gin.Context)
get a router infos
func (*RouterRegistry) GetRouters ¶ added in v0.0.3
func (r *RouterRegistry) GetRouters(c *gin.Context)
func (*RouterRegistry) PostRouter ¶ added in v0.0.3
func (r *RouterRegistry) PostRouter(c *gin.Context)
post a router infos
func (*RouterRegistry) Status ¶ added in v0.0.3
func (l *RouterRegistry) Status(c *gin.Context)
get status of the controller