Documentation ¶
Index ¶
- Variables
- func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)
- type ReadRequest
- type ReadRequestValidationError
- func (e ReadRequestValidationError) Cause() error
- func (e ReadRequestValidationError) Error() string
- func (e ReadRequestValidationError) ErrorName() string
- func (e ReadRequestValidationError) Field() string
- func (e ReadRequestValidationError) Key() bool
- func (e ReadRequestValidationError) Reason() string
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadResponse) GetEvent() *TransactionEvent
- func (x *ReadResponse) GetKey() string
- func (*ReadResponse) ProtoMessage()
- func (x *ReadResponse) ProtoReflect() protoreflect.Message
- func (x *ReadResponse) Reset()
- func (x *ReadResponse) String() string
- func (m *ReadResponse) Validate() error
- type ReadResponseValidationError
- func (e ReadResponseValidationError) Cause() error
- func (e ReadResponseValidationError) Error() string
- func (e ReadResponseValidationError) ErrorName() string
- func (e ReadResponseValidationError) Field() string
- func (e ReadResponseValidationError) Key() bool
- func (e ReadResponseValidationError) Reason() string
- type TransactionEvent
- func (*TransactionEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionEvent) GetReq() *any.Any
- func (x *TransactionEvent) GetRsp() *any.Any
- func (*TransactionEvent) ProtoMessage()
- func (x *TransactionEvent) ProtoReflect() protoreflect.Message
- func (x *TransactionEvent) Reset()
- func (x *TransactionEvent) String() string
- func (m *TransactionEvent) Validate() error
- type TransactionEvent2
- func (*TransactionEvent2) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionEvent2) GetReq() *_struct.Value
- func (x *TransactionEvent2) GetRsp() *_struct.Value
- func (*TransactionEvent2) ProtoMessage()
- func (x *TransactionEvent2) ProtoReflect() protoreflect.Message
- func (x *TransactionEvent2) Reset()
- func (x *TransactionEvent2) String() string
- func (m *TransactionEvent2) Validate() error
- type TransactionEvent2ValidationError
- func (e TransactionEvent2ValidationError) Cause() error
- func (e TransactionEvent2ValidationError) Error() string
- func (e TransactionEvent2ValidationError) ErrorName() string
- func (e TransactionEvent2ValidationError) Field() string
- func (e TransactionEvent2ValidationError) Key() bool
- func (e TransactionEvent2ValidationError) Reason() string
- type TransactionEventValidationError
- func (e TransactionEventValidationError) Cause() error
- func (e TransactionEventValidationError) Error() string
- func (e TransactionEventValidationError) ErrorName() string
- func (e TransactionEventValidationError) Field() string
- func (e TransactionEventValidationError) Key() bool
- func (e TransactionEventValidationError) Reason() string
- type TransactionServiceClient
- type TransactionServiceServer
- type UnimplementedTransactionServiceServer
- type UnsafeTransactionServiceServer
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRequest) GetEvent() *TransactionEvent
- func (x *WriteRequest) GetKey() string
- func (*WriteRequest) ProtoMessage()
- func (x *WriteRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRequest) Reset()
- func (x *WriteRequest) String() string
- func (m *WriteRequest) Validate() error
- type WriteRequestValidationError
- func (e WriteRequestValidationError) Cause() error
- func (e WriteRequestValidationError) Error() string
- func (e WriteRequestValidationError) ErrorName() string
- func (e WriteRequestValidationError) Field() string
- func (e WriteRequestValidationError) Key() bool
- func (e WriteRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_mkit_service_transaction_v1_transaction_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTransactionServiceServer ¶
func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)
Types ¶
type ReadRequest ¶
type ReadRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) GetKey ¶
func (x *ReadRequest) GetKey() string
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
func (*ReadRequest) Validate ¶
func (m *ReadRequest) Validate() error
Validate checks the field values on ReadRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ReadRequestValidationError ¶
type ReadRequestValidationError struct {
// contains filtered or unexported fields
}
ReadRequestValidationError is the validation error returned by ReadRequest.Validate if the designated constraints aren't met.
func (ReadRequestValidationError) Cause ¶
func (e ReadRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadRequestValidationError) Error ¶
func (e ReadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadRequestValidationError) ErrorName ¶
func (e ReadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadRequestValidationError) Field ¶
func (e ReadRequestValidationError) Field() string
Field function returns field value.
func (ReadRequestValidationError) Key ¶
func (e ReadRequestValidationError) Key() bool
Key function returns key value.
func (ReadRequestValidationError) Reason ¶
func (e ReadRequestValidationError) Reason() string
Reason function returns reason value.
type ReadResponse ¶
type ReadResponse struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Event *TransactionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) GetEvent ¶
func (x *ReadResponse) GetEvent() *TransactionEvent
func (*ReadResponse) GetKey ¶
func (x *ReadResponse) GetKey() string
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
func (*ReadResponse) Validate ¶
func (m *ReadResponse) Validate() error
Validate is disabled for ReadResponse. This method will always return nil.
type ReadResponseValidationError ¶
type ReadResponseValidationError struct {
// contains filtered or unexported fields
}
ReadResponseValidationError is the validation error returned by ReadResponse.Validate if the designated constraints aren't met.
func (ReadResponseValidationError) Cause ¶
func (e ReadResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadResponseValidationError) Error ¶
func (e ReadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadResponseValidationError) ErrorName ¶
func (e ReadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadResponseValidationError) Field ¶
func (e ReadResponseValidationError) Field() string
Field function returns field value.
func (ReadResponseValidationError) Key ¶
func (e ReadResponseValidationError) Key() bool
Key function returns key value.
func (ReadResponseValidationError) Reason ¶
func (e ReadResponseValidationError) Reason() string
Reason function returns reason value.
type TransactionEvent ¶
type TransactionEvent struct { Req *any.Any `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` Rsp *any.Any `protobuf:"bytes,2,opt,name=rsp,proto3" json:"rsp,omitempty"` // contains filtered or unexported fields }
Transaction Event
func (*TransactionEvent) Descriptor
deprecated
func (*TransactionEvent) Descriptor() ([]byte, []int)
Deprecated: Use TransactionEvent.ProtoReflect.Descriptor instead.
func (*TransactionEvent) GetReq ¶
func (x *TransactionEvent) GetReq() *any.Any
func (*TransactionEvent) GetRsp ¶
func (x *TransactionEvent) GetRsp() *any.Any
func (*TransactionEvent) ProtoMessage ¶
func (*TransactionEvent) ProtoMessage()
func (*TransactionEvent) ProtoReflect ¶
func (x *TransactionEvent) ProtoReflect() protoreflect.Message
func (*TransactionEvent) Reset ¶
func (x *TransactionEvent) Reset()
func (*TransactionEvent) String ¶
func (x *TransactionEvent) String() string
func (*TransactionEvent) Validate ¶
func (m *TransactionEvent) Validate() error
Validate checks the field values on TransactionEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TransactionEvent2 ¶
type TransactionEvent2 struct { // request Req *_struct.Value `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` // response Rsp *_struct.Value `protobuf:"bytes,2,opt,name=rsp,proto3" json:"rsp,omitempty"` // contains filtered or unexported fields }
Transaction Event
func (*TransactionEvent2) Descriptor
deprecated
func (*TransactionEvent2) Descriptor() ([]byte, []int)
Deprecated: Use TransactionEvent2.ProtoReflect.Descriptor instead.
func (*TransactionEvent2) GetReq ¶
func (x *TransactionEvent2) GetReq() *_struct.Value
func (*TransactionEvent2) GetRsp ¶
func (x *TransactionEvent2) GetRsp() *_struct.Value
func (*TransactionEvent2) ProtoMessage ¶
func (*TransactionEvent2) ProtoMessage()
func (*TransactionEvent2) ProtoReflect ¶
func (x *TransactionEvent2) ProtoReflect() protoreflect.Message
func (*TransactionEvent2) Reset ¶
func (x *TransactionEvent2) Reset()
func (*TransactionEvent2) String ¶
func (x *TransactionEvent2) String() string
func (*TransactionEvent2) Validate ¶
func (m *TransactionEvent2) Validate() error
Validate checks the field values on TransactionEvent2 with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TransactionEvent2ValidationError ¶
type TransactionEvent2ValidationError struct {
// contains filtered or unexported fields
}
TransactionEvent2ValidationError is the validation error returned by TransactionEvent2.Validate if the designated constraints aren't met.
func (TransactionEvent2ValidationError) Cause ¶
func (e TransactionEvent2ValidationError) Cause() error
Cause function returns cause value.
func (TransactionEvent2ValidationError) Error ¶
func (e TransactionEvent2ValidationError) Error() string
Error satisfies the builtin error interface
func (TransactionEvent2ValidationError) ErrorName ¶
func (e TransactionEvent2ValidationError) ErrorName() string
ErrorName returns error name.
func (TransactionEvent2ValidationError) Field ¶
func (e TransactionEvent2ValidationError) Field() string
Field function returns field value.
func (TransactionEvent2ValidationError) Key ¶
func (e TransactionEvent2ValidationError) Key() bool
Key function returns key value.
func (TransactionEvent2ValidationError) Reason ¶
func (e TransactionEvent2ValidationError) Reason() string
Reason function returns reason value.
type TransactionEventValidationError ¶
type TransactionEventValidationError struct {
// contains filtered or unexported fields
}
TransactionEventValidationError is the validation error returned by TransactionEvent.Validate if the designated constraints aren't met.
func (TransactionEventValidationError) Cause ¶
func (e TransactionEventValidationError) Cause() error
Cause function returns cause value.
func (TransactionEventValidationError) Error ¶
func (e TransactionEventValidationError) Error() string
Error satisfies the builtin error interface
func (TransactionEventValidationError) ErrorName ¶
func (e TransactionEventValidationError) ErrorName() string
ErrorName returns error name.
func (TransactionEventValidationError) Field ¶
func (e TransactionEventValidationError) Field() string
Field function returns field value.
func (TransactionEventValidationError) Key ¶
func (e TransactionEventValidationError) Key() bool
Key function returns key value.
func (TransactionEventValidationError) Reason ¶
func (e TransactionEventValidationError) Reason() string
Reason function returns reason value.
type TransactionServiceClient ¶
type TransactionServiceClient interface { Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
TransactionServiceClient is the client API for TransactionService 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 NewTransactionServiceClient ¶
func NewTransactionServiceClient(cc grpc.ClientConnInterface) TransactionServiceClient
type TransactionServiceServer ¶
type TransactionServiceServer interface { Read(context.Context, *ReadRequest) (*ReadResponse, error) Write(context.Context, *WriteRequest) (*empty.Empty, error) }
TransactionServiceServer is the server API for TransactionService service. All implementations should embed UnimplementedTransactionServiceServer for forward compatibility
type UnimplementedTransactionServiceServer ¶
type UnimplementedTransactionServiceServer struct { }
UnimplementedTransactionServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTransactionServiceServer) Read ¶
func (UnimplementedTransactionServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
func (UnimplementedTransactionServiceServer) Write ¶
func (UnimplementedTransactionServiceServer) Write(context.Context, *WriteRequest) (*empty.Empty, error)
type UnsafeTransactionServiceServer ¶
type UnsafeTransactionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServiceServer will result in compilation errors.
type WriteRequest ¶
type WriteRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Event *TransactionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*WriteRequest) Descriptor
deprecated
func (*WriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
func (*WriteRequest) GetEvent ¶
func (x *WriteRequest) GetEvent() *TransactionEvent
func (*WriteRequest) GetKey ¶
func (x *WriteRequest) GetKey() string
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) ProtoReflect ¶
func (x *WriteRequest) ProtoReflect() protoreflect.Message
func (*WriteRequest) Reset ¶
func (x *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (x *WriteRequest) String() string
func (*WriteRequest) Validate ¶
func (m *WriteRequest) Validate() error
Validate checks the field values on WriteRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WriteRequestValidationError ¶
type WriteRequestValidationError struct {
// contains filtered or unexported fields
}
WriteRequestValidationError is the validation error returned by WriteRequest.Validate if the designated constraints aren't met.
func (WriteRequestValidationError) Cause ¶
func (e WriteRequestValidationError) Cause() error
Cause function returns cause value.
func (WriteRequestValidationError) Error ¶
func (e WriteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WriteRequestValidationError) ErrorName ¶
func (e WriteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WriteRequestValidationError) Field ¶
func (e WriteRequestValidationError) Field() string
Field function returns field value.
func (WriteRequestValidationError) Key ¶
func (e WriteRequestValidationError) Key() bool
Key function returns key value.
func (WriteRequestValidationError) Reason ¶
func (e WriteRequestValidationError) Reason() string
Reason function returns reason value.