domain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

domain 层

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheFileWriter

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

func NewCacheFileWriter

func NewCacheFileWriter(homeDir, cacheDir, cacheFilename string) *CacheFileWriter

func (*CacheFileWriter) Write

func (w *CacheFileWriter) Write(height uint64) error

type Context

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

func NewContext

func NewContext(height uint64, chainName string) *Context

func (*Context) ChainName

func (ctx *Context) ChainName() string

ChainName return the ChainName of the chain

func (*Context) Height

func (ctx *Context) Height() uint64

Height return the current height of the chain

func (*Context) IncrHeight

func (ctx *Context) IncrHeight()

func (*Context) SetHeight

func (ctx *Context) SetHeight(height uint64)

Jump to

Keyboard shortcuts

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