configservice

package
v0.0.0-...-10435be Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnablePlugin

func EnablePlugin(ctx context.Context)

Types

type Config

type Config struct {
	Forwards []*Forward `mapstructure:"forwards,omitempty" json:"forwards,omitempty"`
}

type Forward

type Forward struct {
	Src     string `mapstructure:"src,omitempty" json:"src,omitempty"`
	Target  string `mapstructure:"target,omitempty" json:"target,omitempty"`
	Network string `mapstructure:"network,omitempty" json:"network,omitempty"`
}

type Service

type Service interface {
	RegisterOnConfigChange(name string, f func())
	GetForwards() []*Forward
}

func GetService

func GetService() Service

Jump to

Keyboard shortcuts

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