Documentation ¶
Index ¶
- Variables
- func RegisterDatastoreServiceServer(s grpc.ServiceRegistrar, srv DatastoreServiceServer)
- type Ack
- func (*Ack) Descriptor() ([]byte, []int)deprecated
- func (x *Ack) GetError() string
- func (x *Ack) GetSequence() uint64
- func (x *Ack) GetSuccess() bool
- func (x *Ack) GetType() string
- func (*Ack) ProtoMessage()
- func (x *Ack) ProtoReflect() protoreflect.Message
- func (x *Ack) Reset()
- func (x *Ack) String() string
- type AcksResponse
- type DataRequest
- func (*DataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DataRequest) GetLimit() uint32
- func (x *DataRequest) GetSequence() uint64
- func (x *DataRequest) GetType() string
- func (*DataRequest) ProtoMessage()
- func (x *DataRequest) ProtoReflect() protoreflect.Message
- func (x *DataRequest) Reset()
- func (x *DataRequest) String() string
- type DataResponsePayload
- func (*DataResponsePayload) Descriptor() ([]byte, []int)deprecated
- func (x *DataResponsePayload) GetContent() []byte
- func (x *DataResponsePayload) GetError() string
- func (x *DataResponsePayload) GetSequence() uint64
- func (x *DataResponsePayload) GetTags() []*Tag
- func (x *DataResponsePayload) GetType() string
- func (*DataResponsePayload) ProtoMessage()
- func (x *DataResponsePayload) ProtoReflect() protoreflect.Message
- func (x *DataResponsePayload) Reset()
- func (x *DataResponsePayload) String() string
- type DatastoreServiceClient
- type DatastoreServiceServer
- type DatastoreService_FetchRecordsClient
- type DatastoreService_FetchRecordsServer
- type DatastoreService_StoreRecordsClient
- type DatastoreService_StoreRecordsServer
- type FetchRecordRequest
- func (*FetchRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchRecordRequest) GetSequence() uint64
- func (x *FetchRecordRequest) GetType() string
- func (*FetchRecordRequest) ProtoMessage()
- func (x *FetchRecordRequest) ProtoReflect() protoreflect.Message
- func (x *FetchRecordRequest) Reset()
- func (x *FetchRecordRequest) String() string
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)deprecated
- func (x *Payload) GetContent() []byte
- func (x *Payload) GetSequence() uint64
- func (x *Payload) GetTags() []*Tag
- func (x *Payload) GetType() string
- func (*Payload) ProtoMessage()
- func (x *Payload) ProtoReflect() protoreflect.Message
- func (x *Payload) Reset()
- func (x *Payload) String() string
- type Tag
- type UnimplementedDatastoreServiceServer
- func (UnimplementedDatastoreServiceServer) FetchRecord(context.Context, *FetchRecordRequest) (*DataResponsePayload, error)
- func (UnimplementedDatastoreServiceServer) FetchRecords(*DataRequest, DatastoreService_FetchRecordsServer) error
- func (UnimplementedDatastoreServiceServer) StoreRecords(DatastoreService_StoreRecordsServer) error
- type UnsafeDatastoreServiceServer
Constants ¶
This section is empty.
Variables ¶
var DatastoreService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "datastore.DatastoreService", HandlerType: (*DatastoreServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchRecord", Handler: _DatastoreService_FetchRecord_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StoreRecords", Handler: _DatastoreService_StoreRecords_Handler, ClientStreams: true, }, { StreamName: "FetchRecords", Handler: _DatastoreService_FetchRecords_Handler, ServerStreams: true, }, }, Metadata: "proto/datastore/datastore.proto", }
DatastoreService_ServiceDesc is the grpc.ServiceDesc for DatastoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_datastore_datastore_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDatastoreServiceServer ¶
func RegisterDatastoreServiceServer(s grpc.ServiceRegistrar, srv DatastoreServiceServer)
Types ¶
type Ack ¶
type Ack struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Ack) Descriptor
deprecated
func (*Ack) GetSequence ¶
func (*Ack) GetSuccess ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) ProtoReflect ¶
func (x *Ack) ProtoReflect() protoreflect.Message
type AcksResponse ¶
type AcksResponse struct { Acks []*Ack `protobuf:"bytes,1,rep,name=acks,proto3" json:"acks,omitempty"` // contains filtered or unexported fields }
func (*AcksResponse) Descriptor
deprecated
func (*AcksResponse) Descriptor() ([]byte, []int)
Deprecated: Use AcksResponse.ProtoReflect.Descriptor instead.
func (*AcksResponse) GetAcks ¶
func (x *AcksResponse) GetAcks() []*Ack
func (*AcksResponse) ProtoMessage ¶
func (*AcksResponse) ProtoMessage()
func (*AcksResponse) ProtoReflect ¶
func (x *AcksResponse) ProtoReflect() protoreflect.Message
func (*AcksResponse) Reset ¶
func (x *AcksResponse) Reset()
func (*AcksResponse) String ¶
func (x *AcksResponse) String() string
type DataRequest ¶
type DataRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*DataRequest) Descriptor
deprecated
func (*DataRequest) Descriptor() ([]byte, []int)
Deprecated: Use DataRequest.ProtoReflect.Descriptor instead.
func (*DataRequest) GetLimit ¶
func (x *DataRequest) GetLimit() uint32
func (*DataRequest) GetSequence ¶
func (x *DataRequest) GetSequence() uint64
func (*DataRequest) GetType ¶
func (x *DataRequest) GetType() string
func (*DataRequest) ProtoMessage ¶
func (*DataRequest) ProtoMessage()
func (*DataRequest) ProtoReflect ¶
func (x *DataRequest) ProtoReflect() protoreflect.Message
func (*DataRequest) Reset ¶
func (x *DataRequest) Reset()
func (*DataRequest) String ¶
func (x *DataRequest) String() string
type DataResponsePayload ¶
type DataResponsePayload struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` Tags []*Tag `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*DataResponsePayload) Descriptor
deprecated
func (*DataResponsePayload) Descriptor() ([]byte, []int)
Deprecated: Use DataResponsePayload.ProtoReflect.Descriptor instead.
func (*DataResponsePayload) GetContent ¶
func (x *DataResponsePayload) GetContent() []byte
func (*DataResponsePayload) GetError ¶
func (x *DataResponsePayload) GetError() string
func (*DataResponsePayload) GetSequence ¶
func (x *DataResponsePayload) GetSequence() uint64
func (*DataResponsePayload) GetTags ¶
func (x *DataResponsePayload) GetTags() []*Tag
func (*DataResponsePayload) GetType ¶
func (x *DataResponsePayload) GetType() string
func (*DataResponsePayload) ProtoMessage ¶
func (*DataResponsePayload) ProtoMessage()
func (*DataResponsePayload) ProtoReflect ¶
func (x *DataResponsePayload) ProtoReflect() protoreflect.Message
func (*DataResponsePayload) Reset ¶
func (x *DataResponsePayload) Reset()
func (*DataResponsePayload) String ¶
func (x *DataResponsePayload) String() string
type DatastoreServiceClient ¶
type DatastoreServiceClient interface { StoreRecords(ctx context.Context, opts ...grpc.CallOption) (DatastoreService_StoreRecordsClient, error) FetchRecords(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (DatastoreService_FetchRecordsClient, error) FetchRecord(ctx context.Context, in *FetchRecordRequest, opts ...grpc.CallOption) (*DataResponsePayload, error) }
DatastoreServiceClient is the client API for DatastoreService 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.
func NewDatastoreServiceClient ¶
func NewDatastoreServiceClient(cc grpc.ClientConnInterface) DatastoreServiceClient
type DatastoreServiceServer ¶
type DatastoreServiceServer interface { StoreRecords(DatastoreService_StoreRecordsServer) error FetchRecords(*DataRequest, DatastoreService_FetchRecordsServer) error FetchRecord(context.Context, *FetchRecordRequest) (*DataResponsePayload, error) // contains filtered or unexported methods }
DatastoreServiceServer is the server API for DatastoreService service. All implementations must embed UnimplementedDatastoreServiceServer for forward compatibility
type DatastoreService_FetchRecordsClient ¶
type DatastoreService_FetchRecordsClient interface { Recv() (*DataResponsePayload, error) grpc.ClientStream }
type DatastoreService_FetchRecordsServer ¶
type DatastoreService_FetchRecordsServer interface { Send(*DataResponsePayload) error grpc.ServerStream }
type DatastoreService_StoreRecordsClient ¶
type DatastoreService_StoreRecordsClient interface { Send(*Payload) error CloseAndRecv() (*AcksResponse, error) grpc.ClientStream }
type DatastoreService_StoreRecordsServer ¶
type DatastoreService_StoreRecordsServer interface { SendAndClose(*AcksResponse) error Recv() (*Payload, error) grpc.ServerStream }
type FetchRecordRequest ¶ added in v0.9.5
type FetchRecordRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` // contains filtered or unexported fields }
func (*FetchRecordRequest) Descriptor
deprecated
added in
v0.9.5
func (*FetchRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchRecordRequest.ProtoReflect.Descriptor instead.
func (*FetchRecordRequest) GetSequence ¶ added in v0.9.5
func (x *FetchRecordRequest) GetSequence() uint64
func (*FetchRecordRequest) GetType ¶ added in v0.9.5
func (x *FetchRecordRequest) GetType() string
func (*FetchRecordRequest) ProtoMessage ¶ added in v0.9.5
func (*FetchRecordRequest) ProtoMessage()
func (*FetchRecordRequest) ProtoReflect ¶ added in v0.9.5
func (x *FetchRecordRequest) ProtoReflect() protoreflect.Message
func (*FetchRecordRequest) Reset ¶ added in v0.9.5
func (x *FetchRecordRequest) Reset()
func (*FetchRecordRequest) String ¶ added in v0.9.5
func (x *FetchRecordRequest) String() string
type Payload ¶
type Payload struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` Tags []*Tag `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Payload) Descriptor
deprecated
func (*Payload) GetContent ¶
func (*Payload) GetSequence ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
type Tag ¶
type Tag struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Tag) Descriptor
deprecated
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type UnimplementedDatastoreServiceServer ¶
type UnimplementedDatastoreServiceServer struct { }
UnimplementedDatastoreServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDatastoreServiceServer) FetchRecord ¶ added in v0.9.5
func (UnimplementedDatastoreServiceServer) FetchRecord(context.Context, *FetchRecordRequest) (*DataResponsePayload, error)
func (UnimplementedDatastoreServiceServer) FetchRecords ¶
func (UnimplementedDatastoreServiceServer) FetchRecords(*DataRequest, DatastoreService_FetchRecordsServer) error
func (UnimplementedDatastoreServiceServer) StoreRecords ¶
func (UnimplementedDatastoreServiceServer) StoreRecords(DatastoreService_StoreRecordsServer) error
type UnsafeDatastoreServiceServer ¶ added in v0.9.14
type UnsafeDatastoreServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDatastoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DatastoreServiceServer will result in compilation errors.