indexer

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_indexer_proto protoreflect.FileDescriptor

Functions

func RegisterIndexerServiceServer

func RegisterIndexerServiceServer(s *grpc.Server, srv IndexerServiceServer)

Types

type IndexerServiceClient

type IndexerServiceClient interface {
	TaskRPC(ctx context.Context, opts ...grpc.CallOption) (IndexerService_TaskRPCClient, error)
}

IndexerServiceClient is the client API for IndexerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type IndexerServiceServer

type IndexerServiceServer interface {
	TaskRPC(IndexerService_TaskRPCServer) error
}

IndexerServiceServer is the server API for IndexerService service.

type IndexerService_TaskRPCClient

type IndexerService_TaskRPCClient interface {
	Send(*TaskRequest) error
	Recv() (*TaskResponse, error)
	grpc.ClientStream
}

type IndexerService_TaskRPCServer

type IndexerService_TaskRPCServer interface {
	Send(*TaskResponse) error
	Recv() (*TaskRequest, error)
	grpc.ServerStream
}

type TaskError

type TaskError struct {
	Msg  string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskError) Descriptor deprecated

func (*TaskError) Descriptor() ([]byte, []int)

Deprecated: Use TaskError.ProtoReflect.Descriptor instead.

func (*TaskError) GetMsg

func (x *TaskError) GetMsg() string

func (*TaskError) GetType

func (x *TaskError) GetType() string

func (*TaskError) ProtoMessage

func (*TaskError) ProtoMessage()

func (*TaskError) ProtoReflect

func (x *TaskError) ProtoReflect() protoreflect.Message

func (*TaskError) Reset

func (x *TaskError) Reset()

func (*TaskError) String

func (x *TaskError) String() string

type TaskRequest

type TaskRequest struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Type    string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	From    string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
	Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskRequest) Descriptor deprecated

func (*TaskRequest) Descriptor() ([]byte, []int)

Deprecated: Use TaskRequest.ProtoReflect.Descriptor instead.

func (*TaskRequest) GetFrom

func (x *TaskRequest) GetFrom() string

func (*TaskRequest) GetId

func (x *TaskRequest) GetId() string

func (*TaskRequest) GetPayload

func (x *TaskRequest) GetPayload() []byte

func (*TaskRequest) GetType

func (x *TaskRequest) GetType() string

func (*TaskRequest) GetVersion

func (x *TaskRequest) GetVersion() string

func (*TaskRequest) ProtoMessage

func (*TaskRequest) ProtoMessage()

func (*TaskRequest) ProtoReflect

func (x *TaskRequest) ProtoReflect() protoreflect.Message

func (*TaskRequest) Reset

func (x *TaskRequest) Reset()

func (*TaskRequest) String

func (x *TaskRequest) String() string

type TaskResponse

type TaskResponse struct {
	Version string     `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Id      string     `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Type    string     `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Order   int64      `protobuf:"varint,4,opt,name=order,proto3" json:"order,omitempty"`
	Final   bool       `protobuf:"varint,5,opt,name=final,proto3" json:"final,omitempty"`
	Error   *TaskError `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
	Payload []byte     `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskResponse) Descriptor deprecated

func (*TaskResponse) Descriptor() ([]byte, []int)

Deprecated: Use TaskResponse.ProtoReflect.Descriptor instead.

func (*TaskResponse) GetError

func (x *TaskResponse) GetError() *TaskError

func (*TaskResponse) GetFinal

func (x *TaskResponse) GetFinal() bool

func (*TaskResponse) GetId

func (x *TaskResponse) GetId() string

func (*TaskResponse) GetOrder

func (x *TaskResponse) GetOrder() int64

func (*TaskResponse) GetPayload

func (x *TaskResponse) GetPayload() []byte

func (*TaskResponse) GetType

func (x *TaskResponse) GetType() string

func (*TaskResponse) GetVersion

func (x *TaskResponse) GetVersion() string

func (*TaskResponse) ProtoMessage

func (*TaskResponse) ProtoMessage()

func (*TaskResponse) ProtoReflect

func (x *TaskResponse) ProtoReflect() protoreflect.Message

func (*TaskResponse) Reset

func (x *TaskResponse) Reset()

func (*TaskResponse) String

func (x *TaskResponse) String() string

type UnimplementedIndexerServiceServer

type UnimplementedIndexerServiceServer struct {
}

UnimplementedIndexerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedIndexerServiceServer) TaskRPC

Jump to

Keyboard shortcuts

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