Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInvoiceServiceServer(s grpc.ServiceRegistrar, srv InvoiceServiceServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type CoinType
- type CreateInvoiceRequest
- func (*CreateInvoiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInvoiceRequest) GetAmount() float64
- func (x *CreateInvoiceRequest) GetCoin() CoinType
- func (x *CreateInvoiceRequest) GetConfirmations() uint32
- func (x *CreateInvoiceRequest) GetTimeout() uint64
- func (x *CreateInvoiceRequest) GetUserId() string
- func (*CreateInvoiceRequest) ProtoMessage()
- func (x *CreateInvoiceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateInvoiceRequest) Reset()
- func (x *CreateInvoiceRequest) String() string
- type CreateInvoiceResponse
- func (*CreateInvoiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInvoiceResponse) GetAddress() string
- func (x *CreateInvoiceResponse) GetPaymentId() string
- func (*CreateInvoiceResponse) ProtoMessage()
- func (x *CreateInvoiceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateInvoiceResponse) Reset()
- func (x *CreateInvoiceResponse) String() string
- type GetCryptoKeysRequest
- func (*GetCryptoKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCryptoKeysRequest) GetUserId() string
- func (*GetCryptoKeysRequest) ProtoMessage()
- func (x *GetCryptoKeysRequest) ProtoReflect() protoreflect.Message
- func (x *GetCryptoKeysRequest) Reset()
- func (x *GetCryptoKeysRequest) String() string
- type GetCryptoKeysResponse
- func (*GetCryptoKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCryptoKeysResponse) GetXmrKeys() *XmrKeys
- func (*GetCryptoKeysResponse) ProtoMessage()
- func (x *GetCryptoKeysResponse) ProtoReflect() protoreflect.Message
- func (x *GetCryptoKeysResponse) Reset()
- func (x *GetCryptoKeysResponse) String() string
- type GetInvoicesRequest
- func (*GetInvoicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInvoicesRequest) GetPaymentIds() []string
- func (*GetInvoicesRequest) ProtoMessage()
- func (x *GetInvoicesRequest) ProtoReflect() protoreflect.Message
- func (x *GetInvoicesRequest) Reset()
- func (x *GetInvoicesRequest) String() string
- type GetInvoicesResponse
- func (*GetInvoicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInvoicesResponse) GetInvoices() []*Invoice
- func (*GetInvoicesResponse) ProtoMessage()
- func (x *GetInvoicesResponse) ProtoReflect() protoreflect.Message
- func (x *GetInvoicesResponse) Reset()
- func (x *GetInvoicesResponse) String() string
- type Invoice
- func (*Invoice) Descriptor() ([]byte, []int)deprecated
- func (x *Invoice) GetActualAmount() float64
- func (x *Invoice) GetCoin() CoinType
- func (x *Invoice) GetConfirmationsRequired() uint32
- func (x *Invoice) GetConfirmedAt() *timestamppb.Timestamp
- func (x *Invoice) GetCreatedAt() *timestamppb.Timestamp
- func (x *Invoice) GetCryptoAddress() string
- func (x *Invoice) GetExpiresAt() *timestamppb.Timestamp
- func (x *Invoice) GetId() string
- func (x *Invoice) GetRequiredAmount() float64
- func (x *Invoice) GetStatus() InvoiceStatusType
- func (x *Invoice) GetTxId() string
- func (x *Invoice) GetUserId() string
- func (*Invoice) ProtoMessage()
- func (x *Invoice) ProtoReflect() protoreflect.Message
- func (x *Invoice) Reset()
- func (x *Invoice) String() string
- type InvoiceServiceClient
- type InvoiceServiceServer
- type InvoiceService_InvoiceStatusStreamClient
- type InvoiceService_InvoiceStatusStreamServer
- type InvoiceStatusStreamRequest
- type InvoiceStatusStreamResponse
- func (*InvoiceStatusStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InvoiceStatusStreamResponse) GetInvoice() *Invoice
- func (*InvoiceStatusStreamResponse) ProtoMessage()
- func (x *InvoiceStatusStreamResponse) ProtoReflect() protoreflect.Message
- func (x *InvoiceStatusStreamResponse) Reset()
- func (x *InvoiceStatusStreamResponse) String() string
- type InvoiceStatusType
- func (InvoiceStatusType) Descriptor() protoreflect.EnumDescriptor
- func (x InvoiceStatusType) Enum() *InvoiceStatusType
- func (InvoiceStatusType) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvoiceStatusType) Number() protoreflect.EnumNumber
- func (x InvoiceStatusType) String() string
- func (InvoiceStatusType) Type() protoreflect.EnumType
- type RegisterUserRequest
- func (*RegisterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest) GetUserId() string
- func (*RegisterUserRequest) ProtoMessage()
- func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest) Reset()
- func (x *RegisterUserRequest) String() string
- type RegisterUserResponse
- func (*RegisterUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserResponse) GetUserId() string
- func (*RegisterUserResponse) ProtoMessage()
- func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterUserResponse) Reset()
- func (x *RegisterUserResponse) String() string
- type UnimplementedInvoiceServiceServer
- func (UnimplementedInvoiceServiceServer) CreateInvoice(context.Context, *CreateInvoiceRequest) (*CreateInvoiceResponse, error)
- func (UnimplementedInvoiceServiceServer) GetInvoices(context.Context, *GetInvoicesRequest) (*GetInvoicesResponse, error)
- func (UnimplementedInvoiceServiceServer) InvoiceStatusStream(*InvoiceStatusStreamRequest, InvoiceService_InvoiceStatusStreamServer) error
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) GetCryptoKeys(context.Context, *GetCryptoKeysRequest) (*GetCryptoKeysResponse, error)
- func (UnimplementedUserServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
- func (UnimplementedUserServiceServer) UpdateCryptoKeys(context.Context, *UpdateCryptoKeysRequest) (*UpdateCryptoKeysResponse, error)
- type UnsafeInvoiceServiceServer
- type UnsafeUserServiceServer
- type UpdateCryptoKeysRequest
- func (*UpdateCryptoKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCryptoKeysRequest) GetUserId() string
- func (x *UpdateCryptoKeysRequest) GetXmrReq() *XmrKeysUpdateRequest
- func (*UpdateCryptoKeysRequest) ProtoMessage()
- func (x *UpdateCryptoKeysRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCryptoKeysRequest) Reset()
- func (x *UpdateCryptoKeysRequest) String() string
- type UpdateCryptoKeysResponse
- type UserServiceClient
- type UserServiceServer
- type XmrKeys
- type XmrKeysUpdateRequest
- func (*XmrKeysUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *XmrKeysUpdateRequest) GetPrivViewKey() string
- func (x *XmrKeysUpdateRequest) GetPubSpendKey() string
- func (*XmrKeysUpdateRequest) ProtoMessage()
- func (x *XmrKeysUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *XmrKeysUpdateRequest) Reset()
- func (x *XmrKeysUpdateRequest) String() string
Constants ¶
const ( InvoiceService_CreateInvoice_FullMethodName = "/invoice.v1.InvoiceService/CreateInvoice" InvoiceService_GetInvoices_FullMethodName = "/invoice.v1.InvoiceService/GetInvoices" InvoiceService_InvoiceStatusStream_FullMethodName = "/invoice.v1.InvoiceService/InvoiceStatusStream" )
const ( UserService_RegisterUser_FullMethodName = "/user.v1.UserService/RegisterUser" UserService_UpdateCryptoKeys_FullMethodName = "/user.v1.UserService/UpdateCryptoKeys" UserService_GetCryptoKeys_FullMethodName = "/user.v1.UserService/GetCryptoKeys" )
Variables ¶
var ( CoinType_name = map[int32]string{ 0: "XMR", 1: "BTC", 2: "LTC", 3: "ETH", 4: "TON", } CoinType_value = map[string]int32{ "XMR": 0, "BTC": 1, "LTC": 2, "ETH": 3, "TON": 4, } )
Enum value maps for CoinType.
var ( InvoiceStatusType_name = map[int32]string{ 0: "PENDING", 1: "PENDING_MEMPOOL", 2: "EXPIRED", 3: "CONFIRMED", } InvoiceStatusType_value = map[string]int32{ "PENDING": 0, "PENDING_MEMPOOL": 1, "EXPIRED": 2, "CONFIRMED": 3, } )
Enum value maps for InvoiceStatusType.
var File_crypto_proto protoreflect.FileDescriptor
var File_invoice_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
var InvoiceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "invoice.v1.InvoiceService", HandlerType: (*InvoiceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateInvoice", Handler: _InvoiceService_CreateInvoice_Handler, }, { MethodName: "GetInvoices", Handler: _InvoiceService_GetInvoices_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "InvoiceStatusStream", Handler: _InvoiceService_InvoiceStatusStream_Handler, ServerStreams: true, }, }, Metadata: "invoice.proto", }
InvoiceService_ServiceDesc is the grpc.ServiceDesc for InvoiceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterUser", Handler: _UserService_RegisterUser_Handler, }, { MethodName: "UpdateCryptoKeys", Handler: _UserService_UpdateCryptoKeys_Handler, }, { MethodName: "GetCryptoKeys", Handler: _UserService_GetCryptoKeys_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInvoiceServiceServer ¶
func RegisterInvoiceServiceServer(s grpc.ServiceRegistrar, srv InvoiceServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CoinType ¶
type CoinType int32
func (CoinType) Descriptor ¶
func (CoinType) Descriptor() protoreflect.EnumDescriptor
func (CoinType) EnumDescriptor
deprecated
func (CoinType) Number ¶
func (x CoinType) Number() protoreflect.EnumNumber
func (CoinType) Type ¶
func (CoinType) Type() protoreflect.EnumType
type CreateInvoiceRequest ¶
type CreateInvoiceRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` Coin CoinType `protobuf:"varint,2,opt,name=coin,proto3,enum=crypto.v1.CoinType" json:"coin,omitempty"` Amount float64 `protobuf:"fixed64,3,opt,name=amount,proto3" json:"amount,omitempty"` Timeout uint64 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` Confirmations uint32 `protobuf:"varint,5,opt,name=confirmations,proto3" json:"confirmations,omitempty"` // contains filtered or unexported fields }
func (*CreateInvoiceRequest) Descriptor
deprecated
func (*CreateInvoiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInvoiceRequest.ProtoReflect.Descriptor instead.
func (*CreateInvoiceRequest) GetAmount ¶
func (x *CreateInvoiceRequest) GetAmount() float64
func (*CreateInvoiceRequest) GetCoin ¶
func (x *CreateInvoiceRequest) GetCoin() CoinType
func (*CreateInvoiceRequest) GetConfirmations ¶
func (x *CreateInvoiceRequest) GetConfirmations() uint32
func (*CreateInvoiceRequest) GetTimeout ¶
func (x *CreateInvoiceRequest) GetTimeout() uint64
func (*CreateInvoiceRequest) GetUserId ¶
func (x *CreateInvoiceRequest) GetUserId() string
func (*CreateInvoiceRequest) ProtoMessage ¶
func (*CreateInvoiceRequest) ProtoMessage()
func (*CreateInvoiceRequest) ProtoReflect ¶
func (x *CreateInvoiceRequest) ProtoReflect() protoreflect.Message
func (*CreateInvoiceRequest) Reset ¶
func (x *CreateInvoiceRequest) Reset()
func (*CreateInvoiceRequest) String ¶
func (x *CreateInvoiceRequest) String() string
type CreateInvoiceResponse ¶
type CreateInvoiceResponse struct { PaymentId string `protobuf:"bytes,1,opt,name=paymentId,proto3" json:"paymentId,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*CreateInvoiceResponse) Descriptor
deprecated
func (*CreateInvoiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateInvoiceResponse.ProtoReflect.Descriptor instead.
func (*CreateInvoiceResponse) GetAddress ¶
func (x *CreateInvoiceResponse) GetAddress() string
func (*CreateInvoiceResponse) GetPaymentId ¶
func (x *CreateInvoiceResponse) GetPaymentId() string
func (*CreateInvoiceResponse) ProtoMessage ¶
func (*CreateInvoiceResponse) ProtoMessage()
func (*CreateInvoiceResponse) ProtoReflect ¶
func (x *CreateInvoiceResponse) ProtoReflect() protoreflect.Message
func (*CreateInvoiceResponse) Reset ¶
func (x *CreateInvoiceResponse) Reset()
func (*CreateInvoiceResponse) String ¶
func (x *CreateInvoiceResponse) String() string
type GetCryptoKeysRequest ¶ added in v0.3.0
type GetCryptoKeysRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetCryptoKeysRequest) Descriptor
deprecated
added in
v0.3.0
func (*GetCryptoKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCryptoKeysRequest.ProtoReflect.Descriptor instead.
func (*GetCryptoKeysRequest) GetUserId ¶ added in v0.3.0
func (x *GetCryptoKeysRequest) GetUserId() string
func (*GetCryptoKeysRequest) ProtoMessage ¶ added in v0.3.0
func (*GetCryptoKeysRequest) ProtoMessage()
func (*GetCryptoKeysRequest) ProtoReflect ¶ added in v0.3.0
func (x *GetCryptoKeysRequest) ProtoReflect() protoreflect.Message
func (*GetCryptoKeysRequest) Reset ¶ added in v0.3.0
func (x *GetCryptoKeysRequest) Reset()
func (*GetCryptoKeysRequest) String ¶ added in v0.3.0
func (x *GetCryptoKeysRequest) String() string
type GetCryptoKeysResponse ¶ added in v0.3.0
type GetCryptoKeysResponse struct { XmrKeys *XmrKeys `protobuf:"bytes,1,opt,name=xmrKeys,proto3,oneof" json:"xmrKeys,omitempty"` // contains filtered or unexported fields }
func (*GetCryptoKeysResponse) Descriptor
deprecated
added in
v0.3.0
func (*GetCryptoKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCryptoKeysResponse.ProtoReflect.Descriptor instead.
func (*GetCryptoKeysResponse) GetXmrKeys ¶ added in v0.3.0
func (x *GetCryptoKeysResponse) GetXmrKeys() *XmrKeys
func (*GetCryptoKeysResponse) ProtoMessage ¶ added in v0.3.0
func (*GetCryptoKeysResponse) ProtoMessage()
func (*GetCryptoKeysResponse) ProtoReflect ¶ added in v0.3.0
func (x *GetCryptoKeysResponse) ProtoReflect() protoreflect.Message
func (*GetCryptoKeysResponse) Reset ¶ added in v0.3.0
func (x *GetCryptoKeysResponse) Reset()
func (*GetCryptoKeysResponse) String ¶ added in v0.3.0
func (x *GetCryptoKeysResponse) String() string
type GetInvoicesRequest ¶
type GetInvoicesRequest struct { PaymentIds []string `protobuf:"bytes,1,rep,name=paymentIds,proto3" json:"paymentIds,omitempty"` // contains filtered or unexported fields }
func (*GetInvoicesRequest) Descriptor
deprecated
func (*GetInvoicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInvoicesRequest.ProtoReflect.Descriptor instead.
func (*GetInvoicesRequest) GetPaymentIds ¶
func (x *GetInvoicesRequest) GetPaymentIds() []string
func (*GetInvoicesRequest) ProtoMessage ¶
func (*GetInvoicesRequest) ProtoMessage()
func (*GetInvoicesRequest) ProtoReflect ¶
func (x *GetInvoicesRequest) ProtoReflect() protoreflect.Message
func (*GetInvoicesRequest) Reset ¶
func (x *GetInvoicesRequest) Reset()
func (*GetInvoicesRequest) String ¶
func (x *GetInvoicesRequest) String() string
type GetInvoicesResponse ¶
type GetInvoicesResponse struct { Invoices []*Invoice `protobuf:"bytes,1,rep,name=invoices,proto3" json:"invoices,omitempty"` // contains filtered or unexported fields }
func (*GetInvoicesResponse) Descriptor
deprecated
func (*GetInvoicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInvoicesResponse.ProtoReflect.Descriptor instead.
func (*GetInvoicesResponse) GetInvoices ¶
func (x *GetInvoicesResponse) GetInvoices() []*Invoice
func (*GetInvoicesResponse) ProtoMessage ¶
func (*GetInvoicesResponse) ProtoMessage()
func (*GetInvoicesResponse) ProtoReflect ¶
func (x *GetInvoicesResponse) ProtoReflect() protoreflect.Message
func (*GetInvoicesResponse) Reset ¶
func (x *GetInvoicesResponse) Reset()
func (*GetInvoicesResponse) String ¶
func (x *GetInvoicesResponse) String() string
type Invoice ¶
type Invoice struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CryptoAddress string `protobuf:"bytes,2,opt,name=cryptoAddress,proto3" json:"cryptoAddress,omitempty"` Coin CoinType `protobuf:"varint,3,opt,name=coin,proto3,enum=crypto.v1.CoinType" json:"coin,omitempty"` RequiredAmount float64 `protobuf:"fixed64,4,opt,name=requiredAmount,proto3" json:"requiredAmount,omitempty"` ActualAmount float64 `protobuf:"fixed64,5,opt,name=actualAmount,proto3" json:"actualAmount,omitempty"` ConfirmationsRequired uint32 `protobuf:"varint,6,opt,name=confirmationsRequired,proto3" json:"confirmationsRequired,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` ConfirmedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=confirmedAt,proto3" json:"confirmedAt,omitempty"` Status InvoiceStatusType `protobuf:"varint,9,opt,name=status,proto3,enum=invoice.v1.InvoiceStatusType" json:"status,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` TxId string `protobuf:"bytes,11,opt,name=txId,proto3" json:"txId,omitempty"` UserId string `protobuf:"bytes,12,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*Invoice) Descriptor
deprecated
func (*Invoice) GetActualAmount ¶
func (*Invoice) GetConfirmationsRequired ¶
func (*Invoice) GetConfirmedAt ¶
func (x *Invoice) GetConfirmedAt() *timestamppb.Timestamp
func (*Invoice) GetCreatedAt ¶
func (x *Invoice) GetCreatedAt() *timestamppb.Timestamp
func (*Invoice) GetCryptoAddress ¶
func (*Invoice) GetExpiresAt ¶
func (x *Invoice) GetExpiresAt() *timestamppb.Timestamp
func (*Invoice) GetRequiredAmount ¶
func (*Invoice) GetStatus ¶
func (x *Invoice) GetStatus() InvoiceStatusType
func (*Invoice) ProtoMessage ¶
func (*Invoice) ProtoMessage()
func (*Invoice) ProtoReflect ¶
func (x *Invoice) ProtoReflect() protoreflect.Message
type InvoiceServiceClient ¶
type InvoiceServiceClient interface { CreateInvoice(ctx context.Context, in *CreateInvoiceRequest, opts ...grpc.CallOption) (*CreateInvoiceResponse, error) GetInvoices(ctx context.Context, in *GetInvoicesRequest, opts ...grpc.CallOption) (*GetInvoicesResponse, error) InvoiceStatusStream(ctx context.Context, in *InvoiceStatusStreamRequest, opts ...grpc.CallOption) (InvoiceService_InvoiceStatusStreamClient, error) }
InvoiceServiceClient is the client API for InvoiceService 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 NewInvoiceServiceClient ¶
func NewInvoiceServiceClient(cc grpc.ClientConnInterface) InvoiceServiceClient
type InvoiceServiceServer ¶
type InvoiceServiceServer interface { CreateInvoice(context.Context, *CreateInvoiceRequest) (*CreateInvoiceResponse, error) GetInvoices(context.Context, *GetInvoicesRequest) (*GetInvoicesResponse, error) InvoiceStatusStream(*InvoiceStatusStreamRequest, InvoiceService_InvoiceStatusStreamServer) error // contains filtered or unexported methods }
InvoiceServiceServer is the server API for InvoiceService service. All implementations must embed UnimplementedInvoiceServiceServer for forward compatibility
type InvoiceService_InvoiceStatusStreamClient ¶
type InvoiceService_InvoiceStatusStreamClient interface { Recv() (*InvoiceStatusStreamResponse, error) grpc.ClientStream }
type InvoiceService_InvoiceStatusStreamServer ¶
type InvoiceService_InvoiceStatusStreamServer interface { Send(*InvoiceStatusStreamResponse) error grpc.ServerStream }
type InvoiceStatusStreamRequest ¶
type InvoiceStatusStreamRequest struct {
// contains filtered or unexported fields
}
func (*InvoiceStatusStreamRequest) Descriptor
deprecated
func (*InvoiceStatusStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvoiceStatusStreamRequest.ProtoReflect.Descriptor instead.
func (*InvoiceStatusStreamRequest) ProtoMessage ¶
func (*InvoiceStatusStreamRequest) ProtoMessage()
func (*InvoiceStatusStreamRequest) ProtoReflect ¶
func (x *InvoiceStatusStreamRequest) ProtoReflect() protoreflect.Message
func (*InvoiceStatusStreamRequest) Reset ¶
func (x *InvoiceStatusStreamRequest) Reset()
func (*InvoiceStatusStreamRequest) String ¶
func (x *InvoiceStatusStreamRequest) String() string
type InvoiceStatusStreamResponse ¶
type InvoiceStatusStreamResponse struct { Invoice *Invoice `protobuf:"bytes,1,opt,name=invoice,proto3" json:"invoice,omitempty"` // contains filtered or unexported fields }
func (*InvoiceStatusStreamResponse) Descriptor
deprecated
func (*InvoiceStatusStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvoiceStatusStreamResponse.ProtoReflect.Descriptor instead.
func (*InvoiceStatusStreamResponse) GetInvoice ¶
func (x *InvoiceStatusStreamResponse) GetInvoice() *Invoice
func (*InvoiceStatusStreamResponse) ProtoMessage ¶
func (*InvoiceStatusStreamResponse) ProtoMessage()
func (*InvoiceStatusStreamResponse) ProtoReflect ¶
func (x *InvoiceStatusStreamResponse) ProtoReflect() protoreflect.Message
func (*InvoiceStatusStreamResponse) Reset ¶
func (x *InvoiceStatusStreamResponse) Reset()
func (*InvoiceStatusStreamResponse) String ¶
func (x *InvoiceStatusStreamResponse) String() string
type InvoiceStatusType ¶
type InvoiceStatusType int32
const ( InvoiceStatusType_PENDING InvoiceStatusType = 0 InvoiceStatusType_PENDING_MEMPOOL InvoiceStatusType = 1 InvoiceStatusType_EXPIRED InvoiceStatusType = 2 InvoiceStatusType_CONFIRMED InvoiceStatusType = 3 )
func (InvoiceStatusType) Descriptor ¶
func (InvoiceStatusType) Descriptor() protoreflect.EnumDescriptor
func (InvoiceStatusType) Enum ¶
func (x InvoiceStatusType) Enum() *InvoiceStatusType
func (InvoiceStatusType) EnumDescriptor
deprecated
func (InvoiceStatusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvoiceStatusType.Descriptor instead.
func (InvoiceStatusType) Number ¶
func (x InvoiceStatusType) Number() protoreflect.EnumNumber
func (InvoiceStatusType) String ¶
func (x InvoiceStatusType) String() string
func (InvoiceStatusType) Type ¶
func (InvoiceStatusType) Type() protoreflect.EnumType
type RegisterUserRequest ¶
type RegisterUserRequest struct { UserId *string `protobuf:"bytes,1,opt,name=userId,proto3,oneof" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserRequest) Descriptor
deprecated
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest) GetUserId ¶ added in v0.2.0
func (x *RegisterUserRequest) GetUserId() string
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) ProtoReflect ¶
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest) Reset ¶
func (x *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (x *RegisterUserRequest) String() string
type RegisterUserResponse ¶
type RegisterUserResponse struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserResponse) Descriptor
deprecated
func (*RegisterUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserResponse.ProtoReflect.Descriptor instead.
func (*RegisterUserResponse) GetUserId ¶
func (x *RegisterUserResponse) GetUserId() string
func (*RegisterUserResponse) ProtoMessage ¶
func (*RegisterUserResponse) ProtoMessage()
func (*RegisterUserResponse) ProtoReflect ¶
func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message
func (*RegisterUserResponse) Reset ¶
func (x *RegisterUserResponse) Reset()
func (*RegisterUserResponse) String ¶
func (x *RegisterUserResponse) String() string
type UnimplementedInvoiceServiceServer ¶
type UnimplementedInvoiceServiceServer struct { }
UnimplementedInvoiceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedInvoiceServiceServer) CreateInvoice ¶
func (UnimplementedInvoiceServiceServer) CreateInvoice(context.Context, *CreateInvoiceRequest) (*CreateInvoiceResponse, error)
func (UnimplementedInvoiceServiceServer) GetInvoices ¶
func (UnimplementedInvoiceServiceServer) GetInvoices(context.Context, *GetInvoicesRequest) (*GetInvoicesResponse, error)
func (UnimplementedInvoiceServiceServer) InvoiceStatusStream ¶
func (UnimplementedInvoiceServiceServer) InvoiceStatusStream(*InvoiceStatusStreamRequest, InvoiceService_InvoiceStatusStreamServer) error
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) GetCryptoKeys ¶ added in v0.3.0
func (UnimplementedUserServiceServer) GetCryptoKeys(context.Context, *GetCryptoKeysRequest) (*GetCryptoKeysResponse, error)
func (UnimplementedUserServiceServer) RegisterUser ¶
func (UnimplementedUserServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
func (UnimplementedUserServiceServer) UpdateCryptoKeys ¶
func (UnimplementedUserServiceServer) UpdateCryptoKeys(context.Context, *UpdateCryptoKeysRequest) (*UpdateCryptoKeysResponse, error)
type UnsafeInvoiceServiceServer ¶
type UnsafeInvoiceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInvoiceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InvoiceServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateCryptoKeysRequest ¶
type UpdateCryptoKeysRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` XmrReq *XmrKeysUpdateRequest `protobuf:"bytes,2,opt,name=xmrReq,proto3,oneof" json:"xmrReq,omitempty"` // contains filtered or unexported fields }
func (*UpdateCryptoKeysRequest) Descriptor
deprecated
func (*UpdateCryptoKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCryptoKeysRequest.ProtoReflect.Descriptor instead.
func (*UpdateCryptoKeysRequest) GetUserId ¶
func (x *UpdateCryptoKeysRequest) GetUserId() string
func (*UpdateCryptoKeysRequest) GetXmrReq ¶
func (x *UpdateCryptoKeysRequest) GetXmrReq() *XmrKeysUpdateRequest
func (*UpdateCryptoKeysRequest) ProtoMessage ¶
func (*UpdateCryptoKeysRequest) ProtoMessage()
func (*UpdateCryptoKeysRequest) ProtoReflect ¶
func (x *UpdateCryptoKeysRequest) ProtoReflect() protoreflect.Message
func (*UpdateCryptoKeysRequest) Reset ¶
func (x *UpdateCryptoKeysRequest) Reset()
func (*UpdateCryptoKeysRequest) String ¶
func (x *UpdateCryptoKeysRequest) String() string
type UpdateCryptoKeysResponse ¶
type UpdateCryptoKeysResponse struct {
// contains filtered or unexported fields
}
func (*UpdateCryptoKeysResponse) Descriptor
deprecated
func (*UpdateCryptoKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCryptoKeysResponse.ProtoReflect.Descriptor instead.
func (*UpdateCryptoKeysResponse) ProtoMessage ¶
func (*UpdateCryptoKeysResponse) ProtoMessage()
func (*UpdateCryptoKeysResponse) ProtoReflect ¶
func (x *UpdateCryptoKeysResponse) ProtoReflect() protoreflect.Message
func (*UpdateCryptoKeysResponse) Reset ¶
func (x *UpdateCryptoKeysResponse) Reset()
func (*UpdateCryptoKeysResponse) String ¶
func (x *UpdateCryptoKeysResponse) String() string
type UserServiceClient ¶
type UserServiceClient interface { RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error) UpdateCryptoKeys(ctx context.Context, in *UpdateCryptoKeysRequest, opts ...grpc.CallOption) (*UpdateCryptoKeysResponse, error) GetCryptoKeys(ctx context.Context, in *GetCryptoKeysRequest, opts ...grpc.CallOption) (*GetCryptoKeysResponse, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error) UpdateCryptoKeys(context.Context, *UpdateCryptoKeysRequest) (*UpdateCryptoKeysResponse, error) GetCryptoKeys(context.Context, *GetCryptoKeysRequest) (*GetCryptoKeysResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type XmrKeys ¶ added in v0.3.0
type XmrKeys struct { PrivViewKey string `protobuf:"bytes,1,opt,name=privViewKey,proto3" json:"privViewKey,omitempty"` PubSpendKey string `protobuf:"bytes,2,opt,name=pubSpendKey,proto3" json:"pubSpendKey,omitempty"` // contains filtered or unexported fields }
func (*XmrKeys) Descriptor
deprecated
added in
v0.3.0
func (*XmrKeys) GetPrivViewKey ¶ added in v0.3.0
func (*XmrKeys) GetPubSpendKey ¶ added in v0.3.0
func (*XmrKeys) ProtoMessage ¶ added in v0.3.0
func (*XmrKeys) ProtoMessage()
func (*XmrKeys) ProtoReflect ¶ added in v0.3.0
func (x *XmrKeys) ProtoReflect() protoreflect.Message
type XmrKeysUpdateRequest ¶
type XmrKeysUpdateRequest struct { PrivViewKey string `protobuf:"bytes,1,opt,name=privViewKey,proto3" json:"privViewKey,omitempty"` PubSpendKey string `protobuf:"bytes,2,opt,name=pubSpendKey,proto3" json:"pubSpendKey,omitempty"` // contains filtered or unexported fields }
func (*XmrKeysUpdateRequest) Descriptor
deprecated
func (*XmrKeysUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use XmrKeysUpdateRequest.ProtoReflect.Descriptor instead.
func (*XmrKeysUpdateRequest) GetPrivViewKey ¶
func (x *XmrKeysUpdateRequest) GetPrivViewKey() string
func (*XmrKeysUpdateRequest) GetPubSpendKey ¶
func (x *XmrKeysUpdateRequest) GetPubSpendKey() string
func (*XmrKeysUpdateRequest) ProtoMessage ¶
func (*XmrKeysUpdateRequest) ProtoMessage()
func (*XmrKeysUpdateRequest) ProtoReflect ¶
func (x *XmrKeysUpdateRequest) ProtoReflect() protoreflect.Message
func (*XmrKeysUpdateRequest) Reset ¶
func (x *XmrKeysUpdateRequest) Reset()
func (*XmrKeysUpdateRequest) String ¶
func (x *XmrKeysUpdateRequest) String() string