router

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*shutter.Shutter
	// contains filtered or unexported fields
}

func New

func New(config *Config, modules *Modules) *App

func (*App) IsReady

func (a *App) IsReady() bool

func (*App) Run

func (a *App) Run() error

type Config

type Config struct {
	ServiceVersion     string // dmesh service version (v1)
	BlockmetaAddr      string // Blockmeta endpoint is queried to validate cursors that are passed LIB and forked out
	GRPCListenAddr     string // Address to listen for incoming gRPC requests
	HeadDelayTolerance uint64 // Number of blocks above a backend's head we allow a request query to be served (Live & Router)
	LibDelayTolerance  uint64 // Number of blocks above a backend's lib we allow a request query to be served (Live & Router)
	EnableRetry        bool   // Enable the router's attempt to retry a backend search if there is an error. This could have adverse consequences when search through the live
}

type Modules

type Modules struct {
	Dmesh dmeshClient.SearchClient
}

Jump to

Keyboard shortcuts

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