pb

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NearDBService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "neardbv2.pb.NearDBService",
	HandlerType: (*NearDBServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _NearDBService_Add_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _NearDBService_Query_Handler,
		},
		{
			MethodName: "QueryById",
			Handler:    _NearDBService_QueryById_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _NearDBService_Remove_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb.proto",
}

NearDBService_ServiceDesc is the grpc.ServiceDesc for NearDBService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNearDBServiceServer

func RegisterNearDBServiceServer(s grpc.ServiceRegistrar, srv NearDBServiceServer)

Types

type AddRequest

type AddRequest struct {
	Id      uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Taglist []string `protobuf:"bytes,2,rep,name=taglist,proto3" json:"taglist,omitempty"`
	Pop     uint64   `protobuf:"varint,3,opt,name=pop,proto3" json:"pop,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

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

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetId

func (x *AddRequest) GetId() uint64

func (*AddRequest) GetPop added in v1.1.8

func (x *AddRequest) GetPop() uint64

func (*AddRequest) GetTaglist

func (x *AddRequest) GetTaglist() []string

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

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

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

type Item

type Item struct {
	Id       uint64  `protobuf:"varint,8,opt,name=id,proto3" json:"id,omitempty"`
	Distance float32 `protobuf:"fixed32,9,opt,name=distance,proto3" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetDistance

func (x *Item) GetDistance() float32

func (*Item) GetId

func (x *Item) GetId() uint64

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type NearDBServiceClient

type NearDBServiceClient interface {
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*NoneResponse, error)
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	QueryById(ctx context.Context, in *QueryByIdRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*NoneResponse, error)
}

NearDBServiceClient is the client API for NearDBService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type NearDBServiceServer

type NearDBServiceServer interface {
	Add(context.Context, *AddRequest) (*NoneResponse, error)
	Query(context.Context, *QueryRequest) (*QueryResponse, error)
	QueryById(context.Context, *QueryByIdRequest) (*QueryResponse, error)
	Remove(context.Context, *RemoveRequest) (*NoneResponse, error)
	// contains filtered or unexported methods
}

NearDBServiceServer is the server API for NearDBService service. All implementations must embed UnimplementedNearDBServiceServer for forward compatibility

type NoneResponse

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

func (*NoneResponse) Descriptor deprecated

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

Deprecated: Use NoneResponse.ProtoReflect.Descriptor instead.

func (*NoneResponse) ProtoMessage

func (*NoneResponse) ProtoMessage()

func (*NoneResponse) ProtoReflect

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

func (*NoneResponse) Reset

func (x *NoneResponse) Reset()

func (*NoneResponse) String

func (x *NoneResponse) String() string

type QueryByIdRequest added in v1.0.2

type QueryByIdRequest struct {
	Id    uint64  `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"`
	K     int64   `protobuf:"varint,12,opt,name=k,proto3" json:"k,omitempty"`
	Drift float64 `protobuf:"fixed64,13,opt,name=drift,proto3" json:"drift,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryByIdRequest) Descriptor deprecated added in v1.0.2

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

Deprecated: Use QueryByIdRequest.ProtoReflect.Descriptor instead.

func (*QueryByIdRequest) GetDrift added in v1.0.2

func (x *QueryByIdRequest) GetDrift() float64

func (*QueryByIdRequest) GetId added in v1.0.2

func (x *QueryByIdRequest) GetId() uint64

func (*QueryByIdRequest) GetK added in v1.0.2

func (x *QueryByIdRequest) GetK() int64

func (*QueryByIdRequest) ProtoMessage added in v1.0.2

func (*QueryByIdRequest) ProtoMessage()

func (*QueryByIdRequest) ProtoReflect added in v1.0.2

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

func (*QueryByIdRequest) Reset added in v1.0.2

func (x *QueryByIdRequest) Reset()

func (*QueryByIdRequest) String added in v1.0.2

func (x *QueryByIdRequest) String() string

type QueryRequest

type QueryRequest struct {
	Taglist []string `protobuf:"bytes,5,rep,name=taglist,proto3" json:"taglist,omitempty"`
	K       int64    `protobuf:"varint,6,opt,name=k,proto3" json:"k,omitempty"`
	Drift   float64  `protobuf:"fixed64,7,opt,name=drift,proto3" json:"drift,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest) Descriptor deprecated

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

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetDrift

func (x *QueryRequest) GetDrift() float64

func (*QueryRequest) GetK

func (x *QueryRequest) GetK() int64

func (*QueryRequest) GetTaglist

func (x *QueryRequest) GetTaglist() []string

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryResponse

type QueryResponse struct {
	Items []*Item `protobuf:"bytes,10,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetItems

func (x *QueryResponse) GetItems() []*Item

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type RemoveRequest

type RemoveRequest struct {
	Id uint64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

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

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetId

func (x *RemoveRequest) GetId() uint64

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect

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

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

type UnimplementedNearDBServiceServer

type UnimplementedNearDBServiceServer struct {
}

UnimplementedNearDBServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNearDBServiceServer) Add

func (UnimplementedNearDBServiceServer) Query

func (UnimplementedNearDBServiceServer) QueryById added in v1.0.2

func (UnimplementedNearDBServiceServer) Remove

type UnsafeNearDBServiceServer added in v1.1.8

type UnsafeNearDBServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeNearDBServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NearDBServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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