grpc

package
v0.0.0-...-ff1c243 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelDoc

func DelDoc(in *pb.DeleteReq)

DelDoc delete doc

func InitDelGrpcc

func InitDelGrpcc(address string, docid string) int32

InitDelGrpcc init delete grpcc

func InitEngine

func InitEngine(conf com.Config)

InitEngine init engine

func InitErpc

func InitErpc(num int)

InitErpc init grpc

func InitGrpc

func InitGrpc(port string, args ...bool)

InitGrpc init grpc

func InitGrpcc

func InitGrpcc(address string, doc Doc) int32

InitGrpcc init grpc client

func InitSearchRpc

func InitSearchRpc(address string, sea com.SearchArgs) (*pb.SearchReply, error)

InitSearchRpc init search grpc

func WgRpc

func WgRpc(address string, sea com.SearchArgs)

WgRpc rpc

Types

type Doc

type Doc struct {
	DocId   uint64
	Content string
	// Attri   interface{}
	Attri  []byte
	Tokens []*pb.TokenData
	// Tokens      []types.TokenData
	Labels      []string
	Fields      interface{}
	ForceUpdate bool
}

Doc grpc response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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