apiservice

package
v0.0.0-...-9514a38 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SvcCfg

type SvcCfg struct {
	Guest struct{ Username, Password string }
	MQ    struct {
		IP, Port string
		Qke      struct {
			Src []struct{ Exchange, Key string }
			Dst []struct{ Queue, Key, Exchange string }
		}
	}
}

SvcCfg is a struct for config file

func CfgUnmarshal

func CfgUnmarshal(path string) (c *SvcCfg)

CfgUnmarshal is to read config and unmarshal to apisvccfg struct

func (*SvcCfg) Unmarshal

func (cfg *SvcCfg) Unmarshal(res gjson.Result)

Unmarshal is to implement interface Unmarshaler

Jump to

Keyboard shortcuts

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