app

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 19 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 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

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

Variables

This section is empty.

Functions

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

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
	PFCPServer  *pfcp_networking.PFCPEntityUP
	RulesPusher *RulesPusher
}

func NewSetup

func NewSetup(conf *config.CtrlConfig) Setup

func (Setup) Run

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

Jump to

Keyboard shortcuts

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