transactionv1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Cause function returns cause value.

func (ReadRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadRequestValidationError) ErrorName

func (e ReadRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ReadRequestValidationError) Field

Field function returns field value.

func (ReadRequestValidationError) Key

Key function returns key value.

func (ReadRequestValidationError) Reason

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

Cause function returns cause value.

func (ReadResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadResponseValidationError) ErrorName

func (e ReadResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ReadResponseValidationError) Field

Field function returns field value.

func (ReadResponseValidationError) Key

Key function returns key value.

func (ReadResponseValidationError) Reason

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

Cause function returns cause value.

func (TransactionEvent2ValidationError) Error

Error satisfies the builtin error interface

func (TransactionEvent2ValidationError) ErrorName

ErrorName returns error name.

func (TransactionEvent2ValidationError) Field

Field function returns field value.

func (TransactionEvent2ValidationError) Key

Key function returns key value.

func (TransactionEvent2ValidationError) Reason

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

Cause function returns cause value.

func (TransactionEventValidationError) Error

Error satisfies the builtin error interface

func (TransactionEventValidationError) ErrorName

ErrorName returns error name.

func (TransactionEventValidationError) Field

Field function returns field value.

func (TransactionEventValidationError) Key

Key function returns key value.

func (TransactionEventValidationError) Reason

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.

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) Write

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

Cause function returns cause value.

func (WriteRequestValidationError) Error

Error satisfies the builtin error interface

func (WriteRequestValidationError) ErrorName

func (e WriteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (WriteRequestValidationError) Field

Field function returns field value.

func (WriteRequestValidationError) Key

Key function returns key value.

func (WriteRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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