rpc

package
v0.0.0-...-b6b44b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALLINDEX  = 0
	INCRINDEX = 1
)

Variables

This section is empty.

Functions

func Init

func Init(cfg RpcClientSection, indexes []string)

func Push2Index

func Push2Index(mode int, items []*dataobj.TsdbItem, indexAddrs []string)

func ReNewPools

func ReNewPools(indexes []string) []string

Types

type RpcClientSection

type RpcClientSection struct {
	MaxConns    int `yaml:"maxConns"`
	MaxIdle     int `yaml:"maxIdle"`
	ConnTimeout int `yaml:"connTimeout"`
	CallTimeout int `yaml:"callTimeout"`
}
var (
	// 连接池 node_address -> connection_pool
	IndexConnPools *pools.ConnPools
	Config         RpcClientSection
)

Jump to

Keyboard shortcuts

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