go-tezos: github.com/DefinitelyNotAGoat/go-tezos/node Index | Files

package node

import "github.com/DefinitelyNotAGoat/go-tezos/node"


Package Files

interfaces.go mocks.go node.go

type Bootstrap Uses

type Bootstrap struct {
    Block     string
    Timestamp time.Time

Bootstrap is a structure representing the bootstrapped response

type NodeService Uses

type NodeService struct {
    // contains filtered or unexported fields

NodeService is a service for node related functions

func NewNodeService Uses

func NewNodeService(tzclient tzc.TezosClient) *NodeService

NewNodeService returns a new NodeService

func (*NodeService) Bootstrapped Uses

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

Bootstrapped gets the current node bootstrap

func (*NodeService) CommitHash Uses

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

CommitHash gets the current commit the node is running

type TezosNodeService Uses

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

Package node imports 4 packages (graph) and is imported by 3 packages. Updated 2019-09-18. Refresh now. Tools for package owners.