domain

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 5 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) DecrHeight added in v0.2.0

func (ctx *Context) DecrHeight()

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) PushQueue added in v0.2.0

func (ctx *Context) PushQueue(queue QueueMetaData)

func (*Context) Queue added in v0.2.0

func (ctx *Context) Queue() []QueueMetaData

func (*Context) SetHeight

func (ctx *Context) SetHeight(height uint64)

func (*Context) SetQueue added in v0.2.0

func (ctx *Context) SetQueue(queue []QueueMetaData)

type QueueMetaData added in v0.2.0

type QueueMetaData struct {
	Timestamp   uint64
	Height      uint64
	RecvPackets types.Msgs
}

Jump to

Keyboard shortcuts

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