datastore

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Ack.ProtoReflect.Descriptor instead.

func (*Ack) GetError

func (x *Ack) GetError() string

func (*Ack) GetSequence

func (x *Ack) GetSequence() uint64

func (*Ack) GetSuccess

func (x *Ack) GetSuccess() bool

func (*Ack) GetType

func (x *Ack) GetType() string

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) ProtoReflect

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

func (*Ack) Reset

func (x *Ack) Reset()

func (*Ack) String

func (x *Ack) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetContent

func (x *Payload) GetContent() []byte

func (*Payload) GetSequence

func (x *Payload) GetSequence() uint64

func (*Payload) GetTags

func (x *Payload) GetTags() []*Tag

func (*Payload) GetType

func (x *Payload) GetType() string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

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

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetKey

func (x *Tag) GetKey() string

func (*Tag) GetValue

func (x *Tag) GetValue() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type UnimplementedDatastoreServiceServer

type UnimplementedDatastoreServiceServer struct {
}

UnimplementedDatastoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDatastoreServiceServer) FetchRecord added in v0.9.5

func (UnimplementedDatastoreServiceServer) FetchRecords

func (UnimplementedDatastoreServiceServer) StoreRecords

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.

Jump to

Keyboard shortcuts

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