ctrl

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 13 Imported by: 0

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

Functions

func Exit

func Exit() error

func ParseConf

func ParseConf(file string) error

func Run

func Run() error

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

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

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

Jump to

Keyboard shortcuts

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