Documentation
¶
Index ¶
- type OrderRequest
- func (x *OrderRequest) GetItems() []string
- func (x *OrderRequest) GetOrderId() string
- func (x *OrderRequest) GetTotalAmount() float64
- func (x *OrderRequest) GetUserId() string
- func (*OrderRequest) ProtoMessage()
- func (x *OrderRequest) ProtoReflect() protoreflect.Message
- func (x *OrderRequest) Reset()
- func (x *OrderRequest) String() string
- type OrderResponse
- func (x *OrderResponse) GetConfirmationNumber() string
- func (x *OrderResponse) GetCreatedAt() int64
- func (x *OrderResponse) GetOrderId() string
- func (x *OrderResponse) GetStatus() string
- func (*OrderResponse) ProtoMessage()
- func (x *OrderResponse) ProtoReflect() protoreflect.Message
- func (x *OrderResponse) Reset()
- func (x *OrderResponse) String() string
- type PaymentRequest
- func (x *PaymentRequest) GetAmount() float64
- func (x *PaymentRequest) GetOrderId() string
- func (x *PaymentRequest) GetPaymentId() string
- func (x *PaymentRequest) GetPaymentMethod() string
- func (*PaymentRequest) ProtoMessage()
- func (x *PaymentRequest) ProtoReflect() protoreflect.Message
- func (x *PaymentRequest) Reset()
- func (x *PaymentRequest) String() string
- type PaymentResponse
- func (x *PaymentResponse) GetErrorMessage() string
- func (x *PaymentResponse) GetPaymentId() string
- func (x *PaymentResponse) GetStatus() string
- func (x *PaymentResponse) GetSuccess() bool
- func (x *PaymentResponse) GetTransactionId() string
- func (*PaymentResponse) ProtoMessage()
- func (x *PaymentResponse) ProtoReflect() protoreflect.Message
- func (x *PaymentResponse) Reset()
- func (x *PaymentResponse) String() string
- type Request
- func (x *Request) GetMetadata() map[string]string
- func (x *Request) GetMethod() string
- func (x *Request) GetPayload() []byte
- func (x *Request) GetRequestId() string
- func (x *Request) GetTimestamp() int64
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (x *Response) GetErrorMessage() string
- func (x *Response) GetMetadata() map[string]string
- func (x *Response) GetPayload() []byte
- func (x *Response) GetRequestId() string
- func (x *Response) GetSuccess() bool
- func (x *Response) GetTimestamp() int64
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type UserRequest
- type UserResponse
- func (x *UserResponse) GetEmail() string
- func (x *UserResponse) GetName() string
- func (x *UserResponse) GetStatus() string
- func (x *UserResponse) GetUserId() string
- func (*UserResponse) ProtoMessage()
- func (x *UserResponse) ProtoReflect() protoreflect.Message
- func (x *UserResponse) Reset()
- func (x *UserResponse) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderRequest ¶
type OrderRequest struct {
OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Items []string `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
TotalAmount float64 `protobuf:"fixed64,4,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
// contains filtered or unexported fields
}
OrderRequest message
func (*OrderRequest) GetItems ¶
func (x *OrderRequest) GetItems() []string
func (*OrderRequest) GetOrderId ¶
func (x *OrderRequest) GetOrderId() string
func (*OrderRequest) GetTotalAmount ¶
func (x *OrderRequest) GetTotalAmount() float64
func (*OrderRequest) GetUserId ¶
func (x *OrderRequest) GetUserId() string
func (*OrderRequest) ProtoMessage ¶
func (*OrderRequest) ProtoMessage()
func (*OrderRequest) ProtoReflect ¶
func (x *OrderRequest) ProtoReflect() protoreflect.Message
func (*OrderRequest) Reset ¶
func (x *OrderRequest) Reset()
func (*OrderRequest) String ¶
func (x *OrderRequest) String() string
type OrderResponse ¶
type OrderResponse struct {
OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
ConfirmationNumber string `protobuf:"bytes,3,opt,name=confirmation_number,json=confirmationNumber,proto3" json:"confirmation_number,omitempty"`
CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// contains filtered or unexported fields
}
OrderResponse message
func (*OrderResponse) GetConfirmationNumber ¶
func (x *OrderResponse) GetConfirmationNumber() string
func (*OrderResponse) GetCreatedAt ¶
func (x *OrderResponse) GetCreatedAt() int64
func (*OrderResponse) GetOrderId ¶
func (x *OrderResponse) GetOrderId() string
func (*OrderResponse) GetStatus ¶
func (x *OrderResponse) GetStatus() string
func (*OrderResponse) ProtoMessage ¶
func (*OrderResponse) ProtoMessage()
func (*OrderResponse) ProtoReflect ¶
func (x *OrderResponse) ProtoReflect() protoreflect.Message
func (*OrderResponse) Reset ¶
func (x *OrderResponse) Reset()
func (*OrderResponse) String ¶
func (x *OrderResponse) String() string
type PaymentRequest ¶
type PaymentRequest struct {
PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
Amount float64 `protobuf:"fixed64,3,opt,name=amount,proto3" json:"amount,omitempty"`
PaymentMethod string `protobuf:"bytes,4,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"`
// contains filtered or unexported fields
}
PaymentRequest message
func (*PaymentRequest) GetAmount ¶
func (x *PaymentRequest) GetAmount() float64
func (*PaymentRequest) GetOrderId ¶
func (x *PaymentRequest) GetOrderId() string
func (*PaymentRequest) GetPaymentId ¶
func (x *PaymentRequest) GetPaymentId() string
func (*PaymentRequest) GetPaymentMethod ¶
func (x *PaymentRequest) GetPaymentMethod() string
func (*PaymentRequest) ProtoMessage ¶
func (*PaymentRequest) ProtoMessage()
func (*PaymentRequest) ProtoReflect ¶
func (x *PaymentRequest) ProtoReflect() protoreflect.Message
func (*PaymentRequest) Reset ¶
func (x *PaymentRequest) Reset()
func (*PaymentRequest) String ¶
func (x *PaymentRequest) String() string
type PaymentResponse ¶
type PaymentResponse struct {
PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
PaymentResponse message
func (*PaymentResponse) GetErrorMessage ¶
func (x *PaymentResponse) GetErrorMessage() string
func (*PaymentResponse) GetPaymentId ¶
func (x *PaymentResponse) GetPaymentId() string
func (*PaymentResponse) GetStatus ¶
func (x *PaymentResponse) GetStatus() string
func (*PaymentResponse) GetSuccess ¶
func (x *PaymentResponse) GetSuccess() bool
func (*PaymentResponse) GetTransactionId ¶
func (x *PaymentResponse) GetTransactionId() string
func (*PaymentResponse) ProtoMessage ¶
func (*PaymentResponse) ProtoMessage()
func (*PaymentResponse) ProtoReflect ¶
func (x *PaymentResponse) ProtoReflect() protoreflect.Message
func (*PaymentResponse) Reset ¶
func (x *PaymentResponse) Reset()
func (*PaymentResponse) String ¶
func (x *PaymentResponse) String() string
type Request ¶
type Request struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
Metadata map[string]string `` /* 157-byte string literal not displayed */
Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
Request wrapper
func (*Request) GetMetadata ¶
func (*Request) GetPayload ¶
func (*Request) GetRequestId ¶
func (*Request) GetTimestamp ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
Metadata map[string]string `` /* 157-byte string literal not displayed */
Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
Response wrapper
func (*Response) GetErrorMessage ¶
func (*Response) GetMetadata ¶
func (*Response) GetPayload ¶
func (*Response) GetRequestId ¶
func (*Response) GetSuccess ¶
func (*Response) GetTimestamp ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UserRequest ¶
type UserRequest struct {
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
// contains filtered or unexported fields
}
UserRequest message
func (*UserRequest) GetAction ¶
func (x *UserRequest) GetAction() string
func (*UserRequest) GetUserId ¶
func (x *UserRequest) GetUserId() string
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) ProtoReflect ¶
func (x *UserRequest) ProtoReflect() protoreflect.Message
func (*UserRequest) Reset ¶
func (x *UserRequest) Reset()
func (*UserRequest) String ¶
func (x *UserRequest) String() string
type UserResponse ¶
type UserResponse struct {
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
UserResponse message
func (*UserResponse) GetEmail ¶
func (x *UserResponse) GetEmail() string
func (*UserResponse) GetName ¶
func (x *UserResponse) GetName() string
func (*UserResponse) GetStatus ¶
func (x *UserResponse) GetStatus() string
func (*UserResponse) GetUserId ¶
func (x *UserResponse) GetUserId() string
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
Click to show internal directories.
Click to hide internal directories.