entity

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anchor

type Anchor struct {
	// contains filtered or unexported fields
}

func NewAnchor

func NewAnchor(id int, blockRoots []string, networks []Network, root, status string) Anchor

func (Anchor) BlockRoots

func (a Anchor) BlockRoots() []string

func (Anchor) ID

func (a Anchor) ID() int

func (Anchor) Networks

func (a Anchor) Networks() []Network

func (Anchor) Root

func (a Anchor) Root() string

func (Anchor) Status

func (a Anchor) Status() string

type AnchorParams

type AnchorParams struct {
	Timeout int
}

type Network

type Network struct {
	Name   string `json:"name"`
	State  string `json:"state"`
	TxHash string `json:"tx_hash"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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