cherryProfile

package
v1.1.28 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 Get added in v1.1.28

func Get(path ...interface{}) jsoniter.Any

func GetBool added in v1.1.28

func GetBool(json jsoniter.Any, path string, defaultValue ...bool) bool

func GetInt added in v1.1.28

func GetInt(json jsoniter.Any, path string, defaultValue ...int) int

func GetInt32 added in v1.1.28

func GetInt32(json jsoniter.Any, path string, defaultValue ...int32) int32

func GetInt64 added in v1.1.28

func GetInt64(json jsoniter.Any, path string, defaultValue ...int64) int64

func GetString added in v1.1.28

func GetString(json jsoniter.Any, path string, defaultValue ...string) 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 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