configs

package
Version: v0.0.0-...-0eae801 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFullPath

func GetFullPath(filename string) string

GetFullPath ...

func LoadJSONConfig

func LoadJSONConfig(config interface{}, filename string)

LoadJSONConfig is used to load config files as json format to config. config should be a pointer to structure, if not, panic

func LoadJSONFile

func LoadJSONFile(filename string) (cfg string)

LoadJSONFile ...

func OpenFile

func OpenFile(filename string) *os.File

OpenFile ...

Types

type MqConfig

type MqConfig struct {
	Topics     []string `json:"topics"`
	Servers    []string `json:"servers"`
	Ak         string   `json:"username"`
	Password   string   `json:"password"`
	ConsumerID string   `json:"consumerGroup"`
	CertFile   string   `json:"cert_file"`
}

MqConfig ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL