setting

package
v0.0.0-...-394f01a Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConf = &AppConfig{}

Functions

func Steup

func Steup(configFile string) error

Types

type AppConfig

type AppConfig struct {
	Clients []ClientConfig  `json:"clients"`
	Topics  []TopicConfig   `json:"topics"`
	Routing []RoutingConfig `json:"routing"`
}

type ClientConfig

type ClientConfig struct {
	Tag      string `json:"tag"`
	Address  string `json:"address"`
	UserName string `json:"userName"`
	Password string `json:"password"`
}

type RoutingConfig

type RoutingConfig struct {
	FromTags  []string `json:"fromTags"`
	ToTags    []string `json:"toTags"`
	TopicTags []string `json:"topicTags"`
}

type TopicConfig

type TopicConfig struct {
	Tag    string   `json:"tag"`
	Qos    byte     `json:"qos"`
	Filter []string `json:"filter"`
}

Jump to

Keyboard shortcuts

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