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

package cycle

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

Index

Package Files

cycle.go interfaces.go mocks.go

type CycleService Uses

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

CycleService is a struct wrapper for cycle functions

func NewCycleService Uses

func NewCycleService(blockService block.TezosBlockService) *CycleService

NewCycleService returns a new CycleService

func (*CycleService) GetCurrent Uses

func (s *CycleService) GetCurrent() (int, error)

GetCurrent gets the current cycle of the chain

type TezosCycleService Uses

type TezosCycleService interface {
    GetCurrent() (int, error)
}

Package cycle imports 2 packages (graph) and is imported by 6 packages. Updated 2019-07-30. Refresh now. Tools for package owners.