cherryProfile

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 10 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() jsoniter.Any

func Debug

func Debug() bool

func Dir added in v1.1.0

func Dir() string

func FileName added in v1.1.0

func FileName() string

func Init

func Init(profilePath, profileName string) (jsoniter.Any, error)

func LoadNode added in v1.1.5

func LoadNode(nodeId string) (cherryFacade.INode, error)

func Name

func Name() string

Types

type NatsConfig added in v1.1.17

type NatsConfig struct {
	Address        string
	ReconnectDelay time.Duration
	MaxReconnects  int
	RequestTimeout time.Duration
	User           string
	Password       string
}

func NewNatsConfig added in v1.1.17

func NewNatsConfig() *NatsConfig

func NewNatsWithConfig added in v1.1.17

func NewNatsWithConfig(config jsoniter.Any) *NatsConfig

type Node added in v1.1.5

type Node struct {
	// contains filtered or unexported fields
}

Node node info

func (*Node) Address added in v1.1.5

func (n *Node) Address() string

func (*Node) Enabled added in v1.1.5

func (n *Node) Enabled() bool

func (*Node) NodeId added in v1.1.5

func (n *Node) NodeId() string

func (*Node) NodeType added in v1.1.5

func (n *Node) NodeType() string

func (*Node) RpcAddress added in v1.1.5

func (n *Node) RpcAddress() string

func (*Node) Settings added in v1.1.5

func (n *Node) Settings() jsoniter.Any

func (*Node) String added in v1.1.5

func (n *Node) String() string

Jump to

Keyboard shortcuts

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