rpc

package
v1.4.0 Latest Latest
Warning

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

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

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