node

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	Block     string
	Timestamp time.Time
}

Bootstrap is a structure representing the bootstrapped response

type NodeService

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

NodeService is a service for node related functions

func NewNodeService

func NewNodeService(tzclient tzc.TezosClient) *NodeService

NewNodeService returns a new NodeService

func (*NodeService) Bootstrapped

func (n *NodeService) Bootstrapped() (Bootstrap, error)

Bootstrapped gets the current node bootstrap

func (*NodeService) CommitHash

func (n *NodeService) CommitHash() (string, error)

CommitHash gets the current commit the node is running

type TezosNodeService

type TezosNodeService interface {
	Bootstrapped() (Bootstrap, error)
	CommitHash() (string, error)
}

Jump to

Keyboard shortcuts

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