v1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvoiceService_CreateInvoice_FullMethodName       = "/invoice.v1.InvoiceService/CreateInvoice"
	InvoiceService_GetInvoices_FullMethodName         = "/invoice.v1.InvoiceService/GetInvoices"
	InvoiceService_InvoiceStatusStream_FullMethodName = "/invoice.v1.InvoiceService/InvoiceStatusStream"
)
View Source
const (
	UserService_RegisterUser_FullMethodName     = "/user.v1.UserService/RegisterUser"
	UserService_UpdateCryptoKeys_FullMethodName = "/user.v1.UserService/UpdateCryptoKeys"
	UserService_GetCryptoKeys_FullMethodName    = "/user.v1.UserService/GetCryptoKeys"
)

Variables

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

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

View Source
var File_crypto_proto protoreflect.FileDescriptor
View Source
var File_invoice_proto protoreflect.FileDescriptor
View Source
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)

View Source
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
const (
	CoinType_XMR CoinType = 0
	CoinType_BTC CoinType = 1
	CoinType_LTC CoinType = 2
	CoinType_ETH CoinType = 3
	CoinType_TON CoinType = 4
)

func (CoinType) Descriptor

func (CoinType) Descriptor() protoreflect.EnumDescriptor

func (CoinType) Enum

func (x CoinType) Enum() *CoinType

func (CoinType) EnumDescriptor deprecated

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

Deprecated: Use CoinType.Descriptor instead.

func (CoinType) Number

func (x CoinType) Number() protoreflect.EnumNumber

func (CoinType) String

func (x CoinType) String() string

func (CoinType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Invoice.ProtoReflect.Descriptor instead.

func (*Invoice) GetActualAmount

func (x *Invoice) GetActualAmount() float64

func (*Invoice) GetCoin

func (x *Invoice) GetCoin() CoinType

func (*Invoice) GetConfirmationsRequired

func (x *Invoice) GetConfirmationsRequired() uint32

func (*Invoice) GetConfirmedAt

func (x *Invoice) GetConfirmedAt() *timestamppb.Timestamp

func (*Invoice) GetCreatedAt

func (x *Invoice) GetCreatedAt() *timestamppb.Timestamp

func (*Invoice) GetCryptoAddress

func (x *Invoice) GetCryptoAddress() string

func (*Invoice) GetExpiresAt

func (x *Invoice) GetExpiresAt() *timestamppb.Timestamp

func (*Invoice) GetId

func (x *Invoice) GetId() string

func (*Invoice) GetRequiredAmount

func (x *Invoice) GetRequiredAmount() float64

func (*Invoice) GetStatus

func (x *Invoice) GetStatus() InvoiceStatusType

func (*Invoice) GetTxId

func (x *Invoice) GetTxId() string

func (*Invoice) GetUserId

func (x *Invoice) GetUserId() string

func (*Invoice) ProtoMessage

func (*Invoice) ProtoMessage()

func (*Invoice) ProtoReflect

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

func (*Invoice) Reset

func (x *Invoice) Reset()

func (*Invoice) String

func (x *Invoice) String() string

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.

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 (*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 (*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) Enum

func (InvoiceStatusType) EnumDescriptor deprecated

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

Deprecated: Use InvoiceStatusType.Descriptor instead.

func (InvoiceStatusType) Number

func (InvoiceStatusType) String

func (x InvoiceStatusType) String() string

func (InvoiceStatusType) Type

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

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) GetCryptoKeys added in v0.3.0

func (UnimplementedUserServiceServer) RegisterUser

func (UnimplementedUserServiceServer) UpdateCryptoKeys

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 (*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.

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) Descriptor() ([]byte, []int)

Deprecated: Use XmrKeys.ProtoReflect.Descriptor instead.

func (*XmrKeys) GetPrivViewKey added in v0.3.0

func (x *XmrKeys) GetPrivViewKey() string

func (*XmrKeys) GetPubSpendKey added in v0.3.0

func (x *XmrKeys) GetPubSpendKey() string

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

func (*XmrKeys) Reset added in v0.3.0

func (x *XmrKeys) Reset()

func (*XmrKeys) String added in v0.3.0

func (x *XmrKeys) String() string

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

Jump to

Keyboard shortcuts

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