indexcontext

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithIndexCtx

func WithIndexCtx(ctx context.Context, indexCtx IndexCtx) context.Context

WithIndexCtx adds IndexCtx into context

Types

type IndexCtx

type IndexCtx struct {
	ChainClient    iotexapi.APIServiceClient
	ElectionClient api.APIServiceClient
}

IndexCtx provides the indexer with auxiliary information

func MustGetIndexCtx

func MustGetIndexCtx(ctx context.Context) IndexCtx

MustGetIndexCtx must get index context

Jump to

Keyboard shortcuts

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