ctrl

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerRegistry

type ControllerRegistry struct {
	RemoteControlURI jsonapi.ControlURI // URI of the controller
	LocalControlURI  jsonapi.ControlURI // URI of the router, used to control it
	Locator          n4tosrv6.Locator
	Backbone         n4tosrv6.BackboneIP
	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