ctrl

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2023 Louis Royer and the NextMN-SRv6 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 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

This section is empty.

Functions

This section is empty.

Types

type ControllerRegistry

type ControllerRegistry struct {
	RemoteControlURI string // URI of the controller
	LocalControlURI  string // URI of the router, used to control it
	Locator          string
	Backbone         netip.Addr
	Resource         string
}

type RulesRegistry

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

A RulesRegistry contains rules for an headend

func NewRulesRegistry

func NewRulesRegistry(db *database.Database) *RulesRegistry

func (*RulesRegistry) ByUUID

func (rr *RulesRegistry) ByUUID(uuid uuid.UUID) (jsonapi.Action, error)

func (*RulesRegistry) DeleteRule

func (rr *RulesRegistry) DeleteRule(c *gin.Context)

func (*RulesRegistry) DisableRule

func (rr *RulesRegistry) DisableRule(c *gin.Context)

func (*RulesRegistry) DownlinkAction

func (rr *RulesRegistry) DownlinkAction(UEIp netip.Addr) (uuid.UUID, jsonapi.Action, error)

func (*RulesRegistry) EnableRule

func (rr *RulesRegistry) EnableRule(c *gin.Context)

func (*RulesRegistry) GetRule

func (rr *RulesRegistry) GetRule(c *gin.Context)

func (*RulesRegistry) GetRules

func (rr *RulesRegistry) GetRules(c *gin.Context)

func (*RulesRegistry) PostRule

func (rr *RulesRegistry) PostRule(c *gin.Context)

Post a new rule

func (*RulesRegistry) UplinkAction

func (rr *RulesRegistry) UplinkAction(UEIp netip.Addr, GnbIp netip.Addr) (uuid.UUID, jsonapi.Action, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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