Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToUint64(v []byte) (uint64, error)
- func CallBack(err error)
- func CheckBigInt(num string) (types.Coin, error)
- func CheckBool(async string) (bool, error)
- func CheckFabric(isFabric string) (bool, error)
- func CheckInt64(num string) (int64, error)
- func CheckJsonArgs(str string, param interface{}) (bool, error)
- func CheckRequiredFlag(cmd *cobra.Command, names ...string)
- func CheckStringLength(min, max int, str string) error
- func CheckUint64(num string) (uint64, error)
- func Discovery() (string, error)
- func GetDomain() (host string, err error)
- func GetLocalAddress() string
- func ParsePubKey(pub string) (crypto.PubKey, error)
- func SchemaPrefix() string
- func SetEnvToViper(vp *viper.Viper, key string) []string
- func SetLimit(limit int)
- func Setup(id int64)
- func TrapSignal(cleanupFunc func())
- func TxHash(b []byte) []byte
- func Uint64ToBytes(u uint64) []byte
- type DomainInfo
Constants ¶
View Source
const ( IDG_APPID = "IDG_APPID" DefaultTCP = "tcp://" DefaultHTTP = "http://" DefaultHTTPS = "https://" DefaultWS = "ws" DefaultWSS = "wss" )
/const CHIANID int64 = 999
Variables ¶
View Source
var CHAINID int64
View Source
var IteratorLimit int
Functions ¶
func BytesToUint64 ¶
func CheckFabric ¶
func CheckInt64 ¶
func CheckJsonArgs ¶
func CheckRequiredFlag ¶
func CheckStringLength ¶
func CheckUint64 ¶
func GetLocalAddress ¶ added in v1.5.25
func GetLocalAddress() string
func SchemaPrefix ¶ added in v1.5.55
func SchemaPrefix() string
func TrapSignal ¶
func TrapSignal(cleanupFunc func())
TrapSignal traps SIGINT and SIGTERM and terminates the server correctly.
func Uint64ToBytes ¶
Types ¶
type DomainInfo ¶ added in v1.5.21
Click to show internal directories.
Click to hide internal directories.