goTezos: github.com/DefinitelyNotAGoat/goTezos/node Index | Files

package node

import "github.com/DefinitelyNotAGoat/goTezos/node"

Index

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). Updated 2019-10-22. Refresh now. Tools for package owners.