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 ¶
- type ControllerRegistry
- type RulesRegistry
- func (rr *RulesRegistry) DeleteRule(c *gin.Context)
- func (rr *RulesRegistry) DisableRule(c *gin.Context)
- func (rr *RulesRegistry) EnableRule(c *gin.Context)
- func (rr *RulesRegistry) GetRule(c *gin.Context)
- func (rr *RulesRegistry) GetRules(c *gin.Context)
- func (rr *RulesRegistry) PostRule(c *gin.Context)
- func (rr *RulesRegistry) SwitchRule(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerRegistry ¶
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) SwitchRule ¶ added in v0.0.16
func (rr *RulesRegistry) SwitchRule(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.