types

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListMapper

type ListMapper interface {
	Len(sdk.Context) int64
	Get(sdk.Context, int64, interface{})
	Set(sdk.Context, int64, interface{})
	Push(sdk.Context, interface{})
	Iterate(sdk.Context, interface{}, func(sdk.Context, int64))
}

func NewListMapper

func NewListMapper(cdc *wire.Codec, key sdk.StoreKey) ListMapper

type QueueMapper

type QueueMapper interface {
	Push(sdk.Context, interface{})
	Peek(sdk.Context, interface{})
	Pop(sdk.Context)
	IsEmpty(sdk.Context) bool
	Iterate(sdk.Context, interface{}, func(sdk.Context) bool)
}

func NewQueueMapper

func NewQueueMapper(cdc *wire.Codec, key sdk.StoreKey) QueueMapper

Jump to

Keyboard shortcuts

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