client

package
v0.0.0-...-7b3ddb2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//doc handler
	SearchHandler        = "SearchHandler"
	DeleteByQueryHandler = "DeleteByQueryHandler"
	MSearchHandler       = "MSearchHandler"
	StreamSearchHandler  = "StreamSearchHandler"
	GetDocHandler        = "GetDocHandler"
	GetDocsHandler       = "GetDocsHandler"
	WriteHandler         = "WriteHandler"
	BatchHandler         = "BatchHandler"
	FlushHandler         = "FlushHandler"
	ForceMergeHandler    = "ForceMergeHandler"

	//admin handler
	CreatePartitionHandler = "CreatePartitionHandler"
	DeletePartitionHandler = "DeletePartitionHandler"
	UpdatePartitionHandler = "UpdatePartitionHandler"
	StatsHandler           = "StatsHandler"
	IsLiveHandler          = "IsLiveHandler"
	PartitionInfoHandler   = "PartitionInfoHandler"
	ChangeMemberHandler    = "ChangeMemberHandler"
)
View Source
const Authorization = "Authorization"
View Source
const Root = "root"

Variables

This section is empty.

Functions

func Execute

func Execute(addr, servicePath string, request request.Request) (interface{}, int64, error)

ExecuteErrorChangeRetry add retry to handle no leader and not leader situation

func Slot

func Slot(routingValue string) uint32

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conf *config.Config) (client *Client, err error)

func (*Client) Master

func (client *Client) Master() *masterClient

func (*Client) PS

func (client *Client) PS() *psClient

func (*Client) Stop

func (client *Client) Stop()

type ClientType

type ClientType int
const (
	LEADER ClientType = iota
	RANDOM
	ALL
)

type MasterServer

type MasterServer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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