clientv1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CallbackService_SendResultNotify_FullMethodName = "/client.v1.CallbackService/SendResultNotify"
)
View Source
const (
	TxCheckService_Check_FullMethodName = "/client.v1.TxCheckService/Check"
)

Variables

View Source
var (
	TxCheckServiceCheckResponse_ResponseStatus_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "COMMITTED",
		2: "CANCELED",
	}
	TxCheckServiceCheckResponse_ResponseStatus_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"COMMITTED":          1,
		"CANCELED":           2,
	}
)

Enum value maps for TxCheckServiceCheckResponse_ResponseStatus.

View Source
var CallbackService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "client.v1.CallbackService",
	HandlerType: (*CallbackServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendResultNotify",
			Handler:    _CallbackService_SendResultNotify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "client/v1/notification.proto",
}

CallbackService_ServiceDesc is the grpc.ServiceDesc for CallbackService 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_client_v1_notification_proto protoreflect.FileDescriptor
View Source
var File_client_v1_tx_notification_proto protoreflect.FileDescriptor
View Source
var TxCheckService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "client.v1.TxCheckService",
	HandlerType: (*TxCheckServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Check",
			Handler:    _TxCheckService_Check_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "client/v1/tx_notification.proto",
}

TxCheckService_ServiceDesc is the grpc.ServiceDesc for TxCheckService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCallbackServiceServer

func RegisterCallbackServiceServer(s grpc.ServiceRegistrar, srv CallbackServiceServer)

func RegisterTxCheckServiceServer

func RegisterTxCheckServiceServer(s grpc.ServiceRegistrar, srv TxCheckServiceServer)

Types

type CallbackServiceClient

type CallbackServiceClient interface {
	SendResultNotify(ctx context.Context, in *SendResultNotifyRequest, opts ...grpc.CallOption) (*SendResultNotifyResponse, error)
}

CallbackServiceClient is the client API for CallbackService 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 CallbackServiceServer

type CallbackServiceServer interface {
	SendResultNotify(context.Context, *SendResultNotifyRequest) (*SendResultNotifyResponse, error)
}

CallbackServiceServer is the server API for CallbackService service. All implementations should embed UnimplementedCallbackServiceServer for forward compatibility.

type SendResultNotifyRequest

type SendResultNotifyRequest struct {
	NotificationId uint64          `protobuf:"varint,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	OriRequest     *v1.SendRequest `protobuf:"bytes,2,opt,name=ori_request,json=oriRequest,proto3" json:"ori_request,omitempty"`
	Result         *v1.SendResult  `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SendResultNotifyRequest) Descriptor deprecated

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

Deprecated: Use SendResultNotifyRequest.ProtoReflect.Descriptor instead.

func (*SendResultNotifyRequest) GetNotificationId

func (x *SendResultNotifyRequest) GetNotificationId() uint64

func (*SendResultNotifyRequest) GetOriRequest

func (x *SendResultNotifyRequest) GetOriRequest() *v1.SendRequest

func (*SendResultNotifyRequest) GetResult

func (x *SendResultNotifyRequest) GetResult() *v1.SendResult

func (*SendResultNotifyRequest) ProtoMessage

func (*SendResultNotifyRequest) ProtoMessage()

func (*SendResultNotifyRequest) ProtoReflect

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

func (*SendResultNotifyRequest) Reset

func (x *SendResultNotifyRequest) Reset()

func (*SendResultNotifyRequest) String

func (x *SendResultNotifyRequest) String() string

func (*SendResultNotifyRequest) Validate

func (m *SendResultNotifyRequest) Validate() error

Validate checks the field values on SendResultNotifyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendResultNotifyRequest) ValidateAll

func (m *SendResultNotifyRequest) ValidateAll() error

ValidateAll checks the field values on SendResultNotifyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendResultNotifyRequestMultiError, or nil if none found.

type SendResultNotifyRequestMultiError

type SendResultNotifyRequestMultiError []error

SendResultNotifyRequestMultiError is an error wrapping multiple validation errors returned by SendResultNotifyRequest.ValidateAll() if the designated constraints aren't met.

func (SendResultNotifyRequestMultiError) AllErrors

func (m SendResultNotifyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendResultNotifyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SendResultNotifyRequestValidationError

type SendResultNotifyRequestValidationError struct {
	// contains filtered or unexported fields
}

SendResultNotifyRequestValidationError is the validation error returned by SendResultNotifyRequest.Validate if the designated constraints aren't met.

func (SendResultNotifyRequestValidationError) Cause

Cause function returns cause value.

func (SendResultNotifyRequestValidationError) Error

Error satisfies the builtin error interface

func (SendResultNotifyRequestValidationError) ErrorName

ErrorName returns error name.

func (SendResultNotifyRequestValidationError) Field

Field function returns field value.

func (SendResultNotifyRequestValidationError) Key

Key function returns key value.

func (SendResultNotifyRequestValidationError) Reason

Reason function returns reason value.

type SendResultNotifyResponse

type SendResultNotifyResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*SendResultNotifyResponse) Descriptor deprecated

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

Deprecated: Use SendResultNotifyResponse.ProtoReflect.Descriptor instead.

func (*SendResultNotifyResponse) GetSuccess

func (x *SendResultNotifyResponse) GetSuccess() bool

func (*SendResultNotifyResponse) ProtoMessage

func (*SendResultNotifyResponse) ProtoMessage()

func (*SendResultNotifyResponse) ProtoReflect

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

func (*SendResultNotifyResponse) Reset

func (x *SendResultNotifyResponse) Reset()

func (*SendResultNotifyResponse) String

func (x *SendResultNotifyResponse) String() string

func (*SendResultNotifyResponse) Validate

func (m *SendResultNotifyResponse) Validate() error

Validate checks the field values on SendResultNotifyResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendResultNotifyResponse) ValidateAll

func (m *SendResultNotifyResponse) ValidateAll() error

ValidateAll checks the field values on SendResultNotifyResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendResultNotifyResponseMultiError, or nil if none found.

type SendResultNotifyResponseMultiError

type SendResultNotifyResponseMultiError []error

SendResultNotifyResponseMultiError is an error wrapping multiple validation errors returned by SendResultNotifyResponse.ValidateAll() if the designated constraints aren't met.

func (SendResultNotifyResponseMultiError) AllErrors

func (m SendResultNotifyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendResultNotifyResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SendResultNotifyResponseValidationError

type SendResultNotifyResponseValidationError struct {
	// contains filtered or unexported fields
}

SendResultNotifyResponseValidationError is the validation error returned by SendResultNotifyResponse.Validate if the designated constraints aren't met.

func (SendResultNotifyResponseValidationError) Cause

Cause function returns cause value.

func (SendResultNotifyResponseValidationError) Error

Error satisfies the builtin error interface

func (SendResultNotifyResponseValidationError) ErrorName

ErrorName returns error name.

func (SendResultNotifyResponseValidationError) Field

Field function returns field value.

func (SendResultNotifyResponseValidationError) Key

Key function returns key value.

func (SendResultNotifyResponseValidationError) Reason

Reason function returns reason value.

type TxCheckServiceCheckRequest

type TxCheckServiceCheckRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*TxCheckServiceCheckRequest) Descriptor deprecated

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

Deprecated: Use TxCheckServiceCheckRequest.ProtoReflect.Descriptor instead.

func (*TxCheckServiceCheckRequest) GetKey

func (x *TxCheckServiceCheckRequest) GetKey() string

func (*TxCheckServiceCheckRequest) ProtoMessage

func (*TxCheckServiceCheckRequest) ProtoMessage()

func (*TxCheckServiceCheckRequest) ProtoReflect

func (*TxCheckServiceCheckRequest) Reset

func (x *TxCheckServiceCheckRequest) Reset()

func (*TxCheckServiceCheckRequest) String

func (x *TxCheckServiceCheckRequest) String() string

func (*TxCheckServiceCheckRequest) Validate

func (m *TxCheckServiceCheckRequest) Validate() error

Validate checks the field values on TxCheckServiceCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TxCheckServiceCheckRequest) ValidateAll

func (m *TxCheckServiceCheckRequest) ValidateAll() error

ValidateAll checks the field values on TxCheckServiceCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TxCheckServiceCheckRequestMultiError, or nil if none found.

type TxCheckServiceCheckRequestMultiError

type TxCheckServiceCheckRequestMultiError []error

TxCheckServiceCheckRequestMultiError is an error wrapping multiple validation errors returned by TxCheckServiceCheckRequest.ValidateAll() if the designated constraints aren't met.

func (TxCheckServiceCheckRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TxCheckServiceCheckRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TxCheckServiceCheckRequestValidationError

type TxCheckServiceCheckRequestValidationError struct {
	// contains filtered or unexported fields
}

TxCheckServiceCheckRequestValidationError is the validation error returned by TxCheckServiceCheckRequest.Validate if the designated constraints aren't met.

func (TxCheckServiceCheckRequestValidationError) Cause

Cause function returns cause value.

func (TxCheckServiceCheckRequestValidationError) Error

Error satisfies the builtin error interface

func (TxCheckServiceCheckRequestValidationError) ErrorName

ErrorName returns error name.

func (TxCheckServiceCheckRequestValidationError) Field

Field function returns field value.

func (TxCheckServiceCheckRequestValidationError) Key

Key function returns key value.

func (TxCheckServiceCheckRequestValidationError) Reason

Reason function returns reason value.

type TxCheckServiceCheckResponse

type TxCheckServiceCheckResponse struct {
	// contains filtered or unexported fields
}

func (*TxCheckServiceCheckResponse) Descriptor deprecated

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

Deprecated: Use TxCheckServiceCheckResponse.ProtoReflect.Descriptor instead.

func (*TxCheckServiceCheckResponse) ProtoMessage

func (*TxCheckServiceCheckResponse) ProtoMessage()

func (*TxCheckServiceCheckResponse) ProtoReflect

func (*TxCheckServiceCheckResponse) Reset

func (x *TxCheckServiceCheckResponse) Reset()

func (*TxCheckServiceCheckResponse) String

func (x *TxCheckServiceCheckResponse) String() string

func (*TxCheckServiceCheckResponse) Validate

func (m *TxCheckServiceCheckResponse) Validate() error

Validate checks the field values on TxCheckServiceCheckResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TxCheckServiceCheckResponse) ValidateAll

func (m *TxCheckServiceCheckResponse) ValidateAll() error

ValidateAll checks the field values on TxCheckServiceCheckResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TxCheckServiceCheckResponseMultiError, or nil if none found.

type TxCheckServiceCheckResponseMultiError

type TxCheckServiceCheckResponseMultiError []error

TxCheckServiceCheckResponseMultiError is an error wrapping multiple validation errors returned by TxCheckServiceCheckResponse.ValidateAll() if the designated constraints aren't met.

func (TxCheckServiceCheckResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TxCheckServiceCheckResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TxCheckServiceCheckResponseValidationError

type TxCheckServiceCheckResponseValidationError struct {
	// contains filtered or unexported fields
}

TxCheckServiceCheckResponseValidationError is the validation error returned by TxCheckServiceCheckResponse.Validate if the designated constraints aren't met.

func (TxCheckServiceCheckResponseValidationError) Cause

Cause function returns cause value.

func (TxCheckServiceCheckResponseValidationError) Error

Error satisfies the builtin error interface

func (TxCheckServiceCheckResponseValidationError) ErrorName

ErrorName returns error name.

func (TxCheckServiceCheckResponseValidationError) Field

Field function returns field value.

func (TxCheckServiceCheckResponseValidationError) Key

Key function returns key value.

func (TxCheckServiceCheckResponseValidationError) Reason

Reason function returns reason value.

type TxCheckServiceCheckResponse_ResponseStatus

type TxCheckServiceCheckResponse_ResponseStatus int32
const (
	TxCheckServiceCheckResponse_STATUS_UNSPECIFIED TxCheckServiceCheckResponse_ResponseStatus = 0
	TxCheckServiceCheckResponse_COMMITTED          TxCheckServiceCheckResponse_ResponseStatus = 1
	TxCheckServiceCheckResponse_CANCELED           TxCheckServiceCheckResponse_ResponseStatus = 2
)

func (TxCheckServiceCheckResponse_ResponseStatus) Descriptor

func (TxCheckServiceCheckResponse_ResponseStatus) Enum

func (TxCheckServiceCheckResponse_ResponseStatus) EnumDescriptor deprecated

func (TxCheckServiceCheckResponse_ResponseStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use TxCheckServiceCheckResponse_ResponseStatus.Descriptor instead.

func (TxCheckServiceCheckResponse_ResponseStatus) Number

func (TxCheckServiceCheckResponse_ResponseStatus) String

func (TxCheckServiceCheckResponse_ResponseStatus) Type

type TxCheckServiceClient

type TxCheckServiceClient interface {
	Check(ctx context.Context, in *TxCheckServiceCheckRequest, opts ...grpc.CallOption) (*TxCheckServiceCheckResponse, error)
}

TxCheckServiceClient is the client API for TxCheckService 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 TxCheckServiceServer

type TxCheckServiceServer interface {
	Check(context.Context, *TxCheckServiceCheckRequest) (*TxCheckServiceCheckResponse, error)
}

TxCheckServiceServer is the server API for TxCheckService service. All implementations should embed UnimplementedTxCheckServiceServer for forward compatibility.

type UnimplementedCallbackServiceServer

type UnimplementedCallbackServiceServer struct{}

UnimplementedCallbackServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCallbackServiceServer) SendResultNotify

type UnimplementedTxCheckServiceServer

type UnimplementedTxCheckServiceServer struct{}

UnimplementedTxCheckServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeCallbackServiceServer

type UnsafeCallbackServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCallbackServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CallbackServiceServer will result in compilation errors.

type UnsafeTxCheckServiceServer

type UnsafeTxCheckServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTxCheckServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TxCheckServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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