extractor

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallResponse

func CallResponse(data []byte) (interface{}, *foundation.Error, error)

CallResponse extracts response of Call

func NodeInfoResponse

func NodeInfoResponse(data []byte) (string, string, error)

NodeInfoResponse extracts response of GetNodeInfo

func PublicKeyResponse

func PublicKeyResponse(data []byte) (string, error)

PublicKeyResponse extracts response of GetPublicKey

Types

type Info

type Info struct {
	RootDomain              string   `json:"rootDomain"`
	RootMember              string   `json:"rootMember"`
	MigrationDaemonsMembers []string `json:"migrationDaemonMembers"`
	MigrationAdminMember    string   `json:"migrationAdminMember"`
	NodeDomain              string   `json:"nodeDomain"`
}

InfoResponse represents response from Info() method of RootDomain contract

func InfoResponse

func InfoResponse(data []byte) (*Info, error)

InfoResponse returns response from Info() method of RootDomain contract

Jump to

Keyboard shortcuts

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