Documentation ¶
Index ¶
- func CanDial(addr ma.Multiaddr, s *swarm.Swarm) bool
- 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 LoadKey(pth string) crypto.PrivKey
- func MustParseAddr(str string) ma.Multiaddr
- 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(repoPath string) error
- func TCPAddrFromMultiAddr(maddr ma.Multiaddr) (addr string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBoostrapPeers ¶
func FreeLocalAddr ¶
func GenerateRandomBytes ¶
func InstanceFromJSON ¶
func InstanceFromJSON(b []byte, i interface{})
func JSONFromInstance ¶
func JSONFromInstance(i interface{}) []byte
func MustParseAddr ¶
func SchemaFromInstance ¶
func SchemaFromInstance(i interface{}, expandedStruct bool) *jsonschema.Schema
func SchemaFromSchemaString ¶
func SchemaFromSchemaString(s string) *jsonschema.Schema
func SetJSONProperty ¶
func SetLogLevels ¶
SetLogLevels sets levels for the given systems.
func SetupDefaultLoggingConfig ¶
SetupDefaultLoggingConfig sets up a standard logging configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.