datastore

package
v0.9.28 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 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: "StoreRecord",
			Handler:    _DatastoreService_StoreRecord_Handler,
		},
		{
			MethodName: "FetchRecord",
			Handler:    _DatastoreService_FetchRecord_Handler,
		},
		{
			MethodName: "FetchTypes",
			Handler:    _DatastoreService_FetchTypes_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"`
	Subtype  string `protobuf:"bytes,3,opt,name=subtype,proto3" json:"subtype,omitempty"`
	Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Error    string `protobuf:"bytes,5,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) GetSubtype added in v0.9.15

func (x *Ack) GetSubtype() string

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"`
	Subtype  string `protobuf:"bytes,2,opt,name=subtype,proto3" json:"subtype,omitempty"`
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Limit    uint32 `protobuf:"varint,4,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) GetSubtype added in v0.9.15

func (x *DataRequest) GetSubtype() string

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"`
	Subtype  string `protobuf:"bytes,2,opt,name=subtype,proto3" json:"subtype,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"`
	Tags     []*Tag `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	Content  []byte `protobuf:"bytes,6,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) GetSubtype added in v0.9.15

func (x *DataResponsePayload) GetSubtype() string

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)
	StoreRecord(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*Ack, error)
	FetchRecords(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (DatastoreService_FetchRecordsClient, error)
	FetchRecord(ctx context.Context, in *FetchRecordRequest, opts ...grpc.CallOption) (*DataResponsePayload, error)
	FetchTypes(ctx context.Context, in *FetchTypesRequest, opts ...grpc.CallOption) (*FetchTypesResponse, 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
	StoreRecord(context.Context, *Payload) (*Ack, error)
	FetchRecords(*DataRequest, DatastoreService_FetchRecordsServer) error
	FetchRecord(context.Context, *FetchRecordRequest) (*DataResponsePayload, error)
	FetchTypes(context.Context, *FetchTypesRequest) (*FetchTypesResponse, 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"`
	Subtype  string `protobuf:"bytes,2,opt,name=subtype,proto3" json:"subtype,omitempty"`
	Sequence uint64 `protobuf:"varint,3,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) GetSubtype added in v0.9.15

func (x *FetchRecordRequest) GetSubtype() string

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 FetchTypesRequest added in v0.9.15

type FetchTypesRequest struct {
	Type  string     `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	After *Timestamp `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchTypesRequest) Descriptor deprecated added in v0.9.15

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

Deprecated: Use FetchTypesRequest.ProtoReflect.Descriptor instead.

func (*FetchTypesRequest) GetAfter added in v0.9.15

func (x *FetchTypesRequest) GetAfter() *Timestamp

func (*FetchTypesRequest) GetType added in v0.9.15

func (x *FetchTypesRequest) GetType() string

func (*FetchTypesRequest) ProtoMessage added in v0.9.15

func (*FetchTypesRequest) ProtoMessage()

func (*FetchTypesRequest) ProtoReflect added in v0.9.15

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

func (*FetchTypesRequest) Reset added in v0.9.15

func (x *FetchTypesRequest) Reset()

func (*FetchTypesRequest) String added in v0.9.15

func (x *FetchTypesRequest) String() string

type FetchTypesResponse added in v0.9.15

type FetchTypesResponse struct {
	Types []*TypeRecord `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchTypesResponse) Descriptor deprecated added in v0.9.15

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

Deprecated: Use FetchTypesResponse.ProtoReflect.Descriptor instead.

func (*FetchTypesResponse) GetTypes added in v0.9.15

func (x *FetchTypesResponse) GetTypes() []*TypeRecord

func (*FetchTypesResponse) ProtoMessage added in v0.9.15

func (*FetchTypesResponse) ProtoMessage()

func (*FetchTypesResponse) ProtoReflect added in v0.9.15

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

func (*FetchTypesResponse) Reset added in v0.9.15

func (x *FetchTypesResponse) Reset()

func (*FetchTypesResponse) String added in v0.9.15

func (x *FetchTypesResponse) String() string

type Payload

type Payload struct {
	Type     string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Subtype  string `protobuf:"bytes,2,opt,name=subtype,proto3" json:"subtype,omitempty"`
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,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 (*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) GetSubtype added in v0.9.15

func (x *Payload) GetSubtype() string

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 Timestamp added in v0.9.15

type Timestamp struct {
	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanos   int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	// contains filtered or unexported fields
}

func (*Timestamp) Descriptor deprecated added in v0.9.15

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

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetNanos added in v0.9.15

func (x *Timestamp) GetNanos() int32

func (*Timestamp) GetSeconds added in v0.9.15

func (x *Timestamp) GetSeconds() int64

func (*Timestamp) ProtoMessage added in v0.9.15

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect added in v0.9.15

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

func (*Timestamp) Reset added in v0.9.15

func (x *Timestamp) Reset()

func (*Timestamp) String added in v0.9.15

func (x *Timestamp) String() string

type TypeRecord added in v0.9.15

type TypeRecord struct {
	Id      uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Type    string     `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Subtype string     `protobuf:"bytes,3,opt,name=subtype,proto3" json:"subtype,omitempty"`
	Created *Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*TypeRecord) Descriptor deprecated added in v0.9.15

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

Deprecated: Use TypeRecord.ProtoReflect.Descriptor instead.

func (*TypeRecord) GetCreated added in v0.9.15

func (x *TypeRecord) GetCreated() *Timestamp

func (*TypeRecord) GetId added in v0.9.15

func (x *TypeRecord) GetId() uint64

func (*TypeRecord) GetSubtype added in v0.9.15

func (x *TypeRecord) GetSubtype() string

func (*TypeRecord) GetType added in v0.9.15

func (x *TypeRecord) GetType() string

func (*TypeRecord) ProtoMessage added in v0.9.15

func (*TypeRecord) ProtoMessage()

func (*TypeRecord) ProtoReflect added in v0.9.15

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

func (*TypeRecord) Reset added in v0.9.15

func (x *TypeRecord) Reset()

func (*TypeRecord) String added in v0.9.15

func (x *TypeRecord) 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) FetchTypes added in v0.9.15

func (UnimplementedDatastoreServiceServer) StoreRecord added in v0.9.15

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