ctrl

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 8 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 {
	// contains filtered or unexported fields
}

A RulesRegistry contains rules for an headend

func NewRulesRegistry

func NewRulesRegistry(db *database.Database) *RulesRegistry

func (*RulesRegistry) DeleteRule

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

func (*RulesRegistry) DisableRule

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

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) SwitchRule added in v0.0.16

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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