Documentation ¶
Index ¶
- func ComputeAddrsEdge(as []PeerAddr) uint64
- func ComputeHeadsEdge(hs []LogHead) uint64
- func DefaultBoostrapPeers() []peer.AddrInfo
- func FreeLocalAddr() ma.Multiaddr
- func GenerateRandomBytes(n int) []byte
- func InstanceFromJSON(b []byte, i interface{})
- func JSONFromInstance(i interface{}) []byte
- func LevelFromDebugFlag(debug bool) logging.LogLevel
- func MakeToken(n int) string
- func MustParseAddr(str string) ma.Multiaddr
- func NewBadgerDatastore(dirPath, name string, lowMem bool) (kt.TxnDatastoreExtended, error)
- func ParseBootstrapPeers(addrs []string) ([]peer.AddrInfo, error)
- func SchemaFromInstance(i interface{}, expandedStruct bool) *jsonschema.Schema
- func SchemaFromSchemaString(s string) *jsonschema.Schema
- func SetJSONID(id core.InstanceID, json []byte) []byte
- func SetJSONProperty(name string, value interface{}, json []byte) []byte
- func SetLogLevels(systems map[string]logging.LogLevel) error
- func SetupDefaultLoggingConfig(file string) error
- func StopGRPCServer(server *grpc.Server)
- func TCPAddrFromMultiAddr(maddr ma.Multiaddr) (addr string, err error)
- type LogHead
- type PeerAddr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeAddrsEdge ¶ added in v1.1.0
func ComputeHeadsEdge ¶ added in v1.1.0
func DefaultBoostrapPeers ¶
func FreeLocalAddr ¶ added in v0.1.13
func GenerateRandomBytes ¶ added in v0.1.22
func InstanceFromJSON ¶ added in v0.1.13
func InstanceFromJSON(b []byte, i interface{})
func JSONFromInstance ¶ added in v0.1.13
func JSONFromInstance(i interface{}) []byte
func LevelFromDebugFlag ¶ added in v1.1.0
LevelFromDebugFlag returns the debug or info log level.
func MustParseAddr ¶ added in v0.1.6
func NewBadgerDatastore ¶ added in v1.1.0
func NewBadgerDatastore(dirPath, name string, lowMem bool) (kt.TxnDatastoreExtended, error)
NewBadgerDatastore returns a badger based datastore.
func SchemaFromInstance ¶ added in v0.1.13
func SchemaFromInstance(i interface{}, expandedStruct bool) *jsonschema.Schema
func SchemaFromSchemaString ¶ added in v0.1.13
func SchemaFromSchemaString(s string) *jsonschema.Schema
func SetJSONProperty ¶ added in v0.1.13
func SetLogLevels ¶
SetLogLevels sets levels for the given systems.
func SetupDefaultLoggingConfig ¶
SetupDefaultLoggingConfig sets up a standard logging configuration.
func StopGRPCServer ¶ added in v1.1.0
Types ¶
Click to show internal directories.
Click to hide internal directories.