lnmuxrpc

package module
v0.0.0-...-9a514af Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvoiceStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "FAILED",
		2: "SETTLE_REQUESTED",
		3: "SETTLED",
	}
	InvoiceStatus_value = map[string]int32{
		"UNKNOWN":          0,
		"FAILED":           1,
		"SETTLE_REQUESTED": 2,
		"SETTLED":          3,
	}
)

Enum value maps for InvoiceStatus.

View Source
var File_lnmux_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "lnmux.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _Service_GetInfo_Handler,
		},
		{
			MethodName: "AddInvoice",
			Handler:    _Service_AddInvoice_Handler,
		},
		{
			MethodName: "WaitForInvoiceFinalStatus",
			Handler:    _Service_WaitForInvoiceFinalStatus_Handler,
		},
		{
			MethodName: "SettleInvoice",
			Handler:    _Service_SettleInvoice_Handler,
		},
		{
			MethodName: "CancelInvoice",
			Handler:    _Service_CancelInvoice_Handler,
		},
		{
			MethodName: "ListInvoices",
			Handler:    _Service_ListInvoices_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeInvoiceAccepted",
			Handler:       _Service_SubscribeInvoiceAccepted_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "lnmux.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddInvoiceRequest

type AddInvoiceRequest struct {
	AmtMsat         int64  `protobuf:"varint,1,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"`
	Description     string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	DescriptionHash []byte `protobuf:"bytes,3,opt,name=description_hash,json=descriptionHash,proto3" json:"description_hash,omitempty"`
	ExpirySecs      int64  `protobuf:"varint,4,opt,name=expiry_secs,json=expirySecs,proto3" json:"expiry_secs,omitempty"`
	// contains filtered or unexported fields
}

func (*AddInvoiceRequest) Descriptor deprecated

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

Deprecated: Use AddInvoiceRequest.ProtoReflect.Descriptor instead.

func (*AddInvoiceRequest) GetAmtMsat

func (x *AddInvoiceRequest) GetAmtMsat() int64

func (*AddInvoiceRequest) GetDescription

func (x *AddInvoiceRequest) GetDescription() string

func (*AddInvoiceRequest) GetDescriptionHash

func (x *AddInvoiceRequest) GetDescriptionHash() []byte

func (*AddInvoiceRequest) GetExpirySecs

func (x *AddInvoiceRequest) GetExpirySecs() int64

func (*AddInvoiceRequest) ProtoMessage

func (*AddInvoiceRequest) ProtoMessage()

func (*AddInvoiceRequest) ProtoReflect

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

func (*AddInvoiceRequest) Reset

func (x *AddInvoiceRequest) Reset()

func (*AddInvoiceRequest) String

func (x *AddInvoiceRequest) String() string

func (*AddInvoiceRequest) Validate

func (m *AddInvoiceRequest) Validate() error

Validate checks the field values on AddInvoiceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AddInvoiceRequestValidationError

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

AddInvoiceRequestValidationError is the validation error returned by AddInvoiceRequest.Validate if the designated constraints aren't met.

func (AddInvoiceRequestValidationError) Cause

Cause function returns cause value.

func (AddInvoiceRequestValidationError) Error

Error satisfies the builtin error interface

func (AddInvoiceRequestValidationError) ErrorName

ErrorName returns error name.

func (AddInvoiceRequestValidationError) Field

Field function returns field value.

func (AddInvoiceRequestValidationError) Key

Key function returns key value.

func (AddInvoiceRequestValidationError) Reason

Reason function returns reason value.

type AddInvoiceResponse

type AddInvoiceResponse struct {
	PaymentRequest string `protobuf:"bytes,1,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"`
	Preimage       []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"`
	Hash           []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*AddInvoiceResponse) Descriptor deprecated

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

Deprecated: Use AddInvoiceResponse.ProtoReflect.Descriptor instead.

func (*AddInvoiceResponse) GetHash

func (x *AddInvoiceResponse) GetHash() []byte

func (*AddInvoiceResponse) GetPaymentRequest

func (x *AddInvoiceResponse) GetPaymentRequest() string

func (*AddInvoiceResponse) GetPreimage

func (x *AddInvoiceResponse) GetPreimage() []byte

func (*AddInvoiceResponse) ProtoMessage

func (*AddInvoiceResponse) ProtoMessage()

func (*AddInvoiceResponse) ProtoReflect

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

func (*AddInvoiceResponse) Reset

func (x *AddInvoiceResponse) Reset()

func (*AddInvoiceResponse) String

func (x *AddInvoiceResponse) String() string

func (*AddInvoiceResponse) Validate

func (m *AddInvoiceResponse) Validate() error

Validate checks the field values on AddInvoiceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AddInvoiceResponseValidationError

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

AddInvoiceResponseValidationError is the validation error returned by AddInvoiceResponse.Validate if the designated constraints aren't met.

func (AddInvoiceResponseValidationError) Cause

Cause function returns cause value.

func (AddInvoiceResponseValidationError) Error

Error satisfies the builtin error interface

func (AddInvoiceResponseValidationError) ErrorName

ErrorName returns error name.

func (AddInvoiceResponseValidationError) Field

Field function returns field value.

func (AddInvoiceResponseValidationError) Key

Key function returns key value.

func (AddInvoiceResponseValidationError) Reason

Reason function returns reason value.

type CancelInvoiceRequest

type CancelInvoiceRequest struct {
	Hash  []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	SetId []byte `protobuf:"bytes,2,opt,name=set_id,json=setId,proto3" json:"set_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelInvoiceRequest) Descriptor deprecated

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

Deprecated: Use CancelInvoiceRequest.ProtoReflect.Descriptor instead.

func (*CancelInvoiceRequest) GetHash

func (x *CancelInvoiceRequest) GetHash() []byte

func (*CancelInvoiceRequest) GetSetId

func (x *CancelInvoiceRequest) GetSetId() []byte

func (*CancelInvoiceRequest) ProtoMessage

func (*CancelInvoiceRequest) ProtoMessage()

func (*CancelInvoiceRequest) ProtoReflect

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

func (*CancelInvoiceRequest) Reset

func (x *CancelInvoiceRequest) Reset()

func (*CancelInvoiceRequest) String

func (x *CancelInvoiceRequest) String() string

func (*CancelInvoiceRequest) Validate

func (m *CancelInvoiceRequest) Validate() error

Validate checks the field values on CancelInvoiceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CancelInvoiceRequestValidationError

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

CancelInvoiceRequestValidationError is the validation error returned by CancelInvoiceRequest.Validate if the designated constraints aren't met.

func (CancelInvoiceRequestValidationError) Cause

Cause function returns cause value.

func (CancelInvoiceRequestValidationError) Error

Error satisfies the builtin error interface

func (CancelInvoiceRequestValidationError) ErrorName

ErrorName returns error name.

func (CancelInvoiceRequestValidationError) Field

Field function returns field value.

func (CancelInvoiceRequestValidationError) Key

Key function returns key value.

func (CancelInvoiceRequestValidationError) Reason

Reason function returns reason value.

type CancelInvoiceResponse

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

func (*CancelInvoiceResponse) Descriptor deprecated

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

Deprecated: Use CancelInvoiceResponse.ProtoReflect.Descriptor instead.

func (*CancelInvoiceResponse) ProtoMessage

func (*CancelInvoiceResponse) ProtoMessage()

func (*CancelInvoiceResponse) ProtoReflect

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

func (*CancelInvoiceResponse) Reset

func (x *CancelInvoiceResponse) Reset()

func (*CancelInvoiceResponse) String

func (x *CancelInvoiceResponse) String() string

func (*CancelInvoiceResponse) Validate

func (m *CancelInvoiceResponse) Validate() error

Validate checks the field values on CancelInvoiceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CancelInvoiceResponseValidationError

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

CancelInvoiceResponseValidationError is the validation error returned by CancelInvoiceResponse.Validate if the designated constraints aren't met.

func (CancelInvoiceResponseValidationError) Cause

Cause function returns cause value.

func (CancelInvoiceResponseValidationError) Error

Error satisfies the builtin error interface

func (CancelInvoiceResponseValidationError) ErrorName

ErrorName returns error name.

func (CancelInvoiceResponseValidationError) Field

Field function returns field value.

func (CancelInvoiceResponseValidationError) Key

Key function returns key value.

func (CancelInvoiceResponseValidationError) Reason

Reason function returns reason value.

type GetInfoRequest

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

func (*GetInfoRequest) Descriptor deprecated

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

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect

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

func (*GetInfoRequest) Reset

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (x *GetInfoRequest) String() string

func (*GetInfoRequest) Validate

func (m *GetInfoRequest) Validate() error

Validate checks the field values on GetInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetInfoRequestValidationError

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

GetInfoRequestValidationError is the validation error returned by GetInfoRequest.Validate if the designated constraints aren't met.

func (GetInfoRequestValidationError) Cause

Cause function returns cause value.

func (GetInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetInfoRequestValidationError) ErrorName

func (e GetInfoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetInfoRequestValidationError) Field

Field function returns field value.

func (GetInfoRequestValidationError) Key

Key function returns key value.

func (GetInfoRequestValidationError) Reason

Reason function returns reason value.

type GetInfoResponse

type GetInfoResponse struct {
	PubKey     []byte      `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	Network    string      `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Nodes      []*NodeInfo `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
	AutoSettle bool        `protobuf:"varint,4,opt,name=auto_settle,json=autoSettle,proto3" json:"auto_settle,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated

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

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetAutoSettle

func (x *GetInfoResponse) GetAutoSettle() bool

func (*GetInfoResponse) GetNetwork

func (x *GetInfoResponse) GetNetwork() string

func (*GetInfoResponse) GetNodes

func (x *GetInfoResponse) GetNodes() []*NodeInfo

func (*GetInfoResponse) GetPubKey

func (x *GetInfoResponse) GetPubKey() []byte

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect

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

func (*GetInfoResponse) Reset

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (x *GetInfoResponse) String() string

func (*GetInfoResponse) Validate

func (m *GetInfoResponse) Validate() error

Validate checks the field values on GetInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetInfoResponseValidationError

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

GetInfoResponseValidationError is the validation error returned by GetInfoResponse.Validate if the designated constraints aren't met.

func (GetInfoResponseValidationError) Cause

Cause function returns cause value.

func (GetInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetInfoResponseValidationError) ErrorName

func (e GetInfoResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetInfoResponseValidationError) Field

Field function returns field value.

func (GetInfoResponseValidationError) Key

Key function returns key value.

func (GetInfoResponseValidationError) Reason

Reason function returns reason value.

type Invoice

type Invoice struct {
	Hash              []byte        `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Preimage          []byte        `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"`
	AmountMsat        uint64        `protobuf:"varint,3,opt,name=amount_msat,json=amountMsat,proto3" json:"amount_msat,omitempty"`
	Status            InvoiceStatus `protobuf:"varint,4,opt,name=status,proto3,enum=lnmux.InvoiceStatus" json:"status,omitempty"`
	SettleRequestedAt uint64        `protobuf:"varint,5,opt,name=settle_requested_at,json=settleRequestedAt,proto3" json:"settle_requested_at,omitempty"`
	FinalizedAt       uint64        `protobuf:"varint,6,opt,name=finalized_at,json=finalizedAt,proto3" json:"finalized_at,omitempty"`
	SequenceNumber    uint64        `protobuf:"varint,7,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// contains filtered or unexported fields
}

func (*Invoice) Descriptor deprecated

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

Deprecated: Use Invoice.ProtoReflect.Descriptor instead.

func (*Invoice) GetAmountMsat

func (x *Invoice) GetAmountMsat() uint64

func (*Invoice) GetFinalizedAt

func (x *Invoice) GetFinalizedAt() uint64

func (*Invoice) GetHash

func (x *Invoice) GetHash() []byte

func (*Invoice) GetPreimage

func (x *Invoice) GetPreimage() []byte

func (*Invoice) GetSequenceNumber

func (x *Invoice) GetSequenceNumber() uint64

func (*Invoice) GetSettleRequestedAt

func (x *Invoice) GetSettleRequestedAt() uint64

func (*Invoice) GetStatus

func (x *Invoice) GetStatus() InvoiceStatus

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

func (*Invoice) Validate

func (m *Invoice) Validate() error

Validate checks the field values on Invoice with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type InvoiceStatus

type InvoiceStatus int32
const (
	InvoiceStatus_UNKNOWN          InvoiceStatus = 0
	InvoiceStatus_FAILED           InvoiceStatus = 1
	InvoiceStatus_SETTLE_REQUESTED InvoiceStatus = 2
	InvoiceStatus_SETTLED          InvoiceStatus = 3
)

func (InvoiceStatus) Descriptor

func (InvoiceStatus) Enum

func (x InvoiceStatus) Enum() *InvoiceStatus

func (InvoiceStatus) EnumDescriptor deprecated

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

Deprecated: Use InvoiceStatus.Descriptor instead.

func (InvoiceStatus) Number

func (InvoiceStatus) String

func (x InvoiceStatus) String() string

func (InvoiceStatus) Type

type InvoiceValidationError

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

InvoiceValidationError is the validation error returned by Invoice.Validate if the designated constraints aren't met.

func (InvoiceValidationError) Cause

func (e InvoiceValidationError) Cause() error

Cause function returns cause value.

func (InvoiceValidationError) Error

func (e InvoiceValidationError) Error() string

Error satisfies the builtin error interface

func (InvoiceValidationError) ErrorName

func (e InvoiceValidationError) ErrorName() string

ErrorName returns error name.

func (InvoiceValidationError) Field

func (e InvoiceValidationError) Field() string

Field function returns field value.

func (InvoiceValidationError) Key

func (e InvoiceValidationError) Key() bool

Key function returns key value.

func (InvoiceValidationError) Reason

func (e InvoiceValidationError) Reason() string

Reason function returns reason value.

type ListInvoicesRequest

type ListInvoicesRequest struct {
	MaxInvoicesCount uint64 `protobuf:"varint,1,opt,name=max_invoices_count,json=maxInvoicesCount,proto3" json:"max_invoices_count,omitempty"`
	SequenceStart    uint64 `protobuf:"varint,2,opt,name=sequence_start,json=sequenceStart,proto3" json:"sequence_start,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInvoicesRequest) Descriptor deprecated

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

Deprecated: Use ListInvoicesRequest.ProtoReflect.Descriptor instead.

func (*ListInvoicesRequest) GetMaxInvoicesCount

func (x *ListInvoicesRequest) GetMaxInvoicesCount() uint64

func (*ListInvoicesRequest) GetSequenceStart

func (x *ListInvoicesRequest) GetSequenceStart() uint64

func (*ListInvoicesRequest) ProtoMessage

func (*ListInvoicesRequest) ProtoMessage()

func (*ListInvoicesRequest) ProtoReflect

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

func (*ListInvoicesRequest) Reset

func (x *ListInvoicesRequest) Reset()

func (*ListInvoicesRequest) String

func (x *ListInvoicesRequest) String() string

func (*ListInvoicesRequest) Validate

func (m *ListInvoicesRequest) Validate() error

Validate checks the field values on ListInvoicesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListInvoicesRequestValidationError

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

ListInvoicesRequestValidationError is the validation error returned by ListInvoicesRequest.Validate if the designated constraints aren't met.

func (ListInvoicesRequestValidationError) Cause

Cause function returns cause value.

func (ListInvoicesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListInvoicesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListInvoicesRequestValidationError) Field

Field function returns field value.

func (ListInvoicesRequestValidationError) Key

Key function returns key value.

func (ListInvoicesRequestValidationError) Reason

Reason function returns reason value.

type ListInvoicesResponse

type ListInvoicesResponse struct {
	Invoice             []*Invoice `protobuf:"bytes,1,rep,name=invoice,proto3" json:"invoice,omitempty"`
	FirstSequenceNumber uint64     `protobuf:"varint,2,opt,name=first_sequence_number,json=firstSequenceNumber,proto3" json:"first_sequence_number,omitempty"`
	LastSequenceNumber  uint64     `protobuf:"varint,3,opt,name=last_sequence_number,json=lastSequenceNumber,proto3" json:"last_sequence_number,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInvoicesResponse) Descriptor deprecated

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

Deprecated: Use ListInvoicesResponse.ProtoReflect.Descriptor instead.

func (*ListInvoicesResponse) GetFirstSequenceNumber

func (x *ListInvoicesResponse) GetFirstSequenceNumber() uint64

func (*ListInvoicesResponse) GetInvoice

func (x *ListInvoicesResponse) GetInvoice() []*Invoice

func (*ListInvoicesResponse) GetLastSequenceNumber

func (x *ListInvoicesResponse) GetLastSequenceNumber() uint64

func (*ListInvoicesResponse) ProtoMessage

func (*ListInvoicesResponse) ProtoMessage()

func (*ListInvoicesResponse) ProtoReflect

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

func (*ListInvoicesResponse) Reset

func (x *ListInvoicesResponse) Reset()

func (*ListInvoicesResponse) String

func (x *ListInvoicesResponse) String() string

func (*ListInvoicesResponse) Validate

func (m *ListInvoicesResponse) Validate() error

Validate checks the field values on ListInvoicesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListInvoicesResponseValidationError

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

ListInvoicesResponseValidationError is the validation error returned by ListInvoicesResponse.Validate if the designated constraints aren't met.

func (ListInvoicesResponseValidationError) Cause

Cause function returns cause value.

func (ListInvoicesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListInvoicesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListInvoicesResponseValidationError) Field

Field function returns field value.

func (ListInvoicesResponseValidationError) Key

Key function returns key value.

func (ListInvoicesResponseValidationError) Reason

Reason function returns reason value.

type NodeInfo

type NodeInfo struct {
	PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated

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

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetPubKey

func (x *NodeInfo) GetPubKey() []byte

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

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

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

func (*NodeInfo) Validate

func (m *NodeInfo) Validate() error

Validate checks the field values on NodeInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type NodeInfoValidationError

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

NodeInfoValidationError is the validation error returned by NodeInfo.Validate if the designated constraints aren't met.

func (NodeInfoValidationError) Cause

func (e NodeInfoValidationError) Cause() error

Cause function returns cause value.

func (NodeInfoValidationError) Error

func (e NodeInfoValidationError) Error() string

Error satisfies the builtin error interface

func (NodeInfoValidationError) ErrorName

func (e NodeInfoValidationError) ErrorName() string

ErrorName returns error name.

func (NodeInfoValidationError) Field

func (e NodeInfoValidationError) Field() string

Field function returns field value.

func (NodeInfoValidationError) Key

func (e NodeInfoValidationError) Key() bool

Key function returns key value.

func (NodeInfoValidationError) Reason

func (e NodeInfoValidationError) Reason() string

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
	AddInvoice(ctx context.Context, in *AddInvoiceRequest, opts ...grpc.CallOption) (*AddInvoiceResponse, error)
	SubscribeInvoiceAccepted(ctx context.Context, in *SubscribeInvoiceAcceptedRequest, opts ...grpc.CallOption) (Service_SubscribeInvoiceAcceptedClient, error)
	WaitForInvoiceFinalStatus(ctx context.Context, in *WaitForInvoiceFinalStatusRequest, opts ...grpc.CallOption) (*WaitForInvoiceFinalStatusResponse, error)
	// Requests settlement for an accepted invoice. This call is idempotent.
	SettleInvoice(ctx context.Context, in *SettleInvoiceRequest, opts ...grpc.CallOption) (*SettleInvoiceResponse, error)
	// Cancels an accepted invoice. In case settle has been requested
	// for an invoice, CancelInvoice returns a FailedPrecondition error.
	CancelInvoice(ctx context.Context, in *CancelInvoiceRequest, opts ...grpc.CallOption) (*CancelInvoiceResponse, error)
	// Lists settled or to be settled invoices. It returns invoices with a sequence number between
	// 'sequence_start' and 'sequence_start' + max_invoices_count'.
	ListInvoices(ctx context.Context, in *ListInvoicesRequest, opts ...grpc.CallOption) (*ListInvoicesResponse, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	AddInvoice(context.Context, *AddInvoiceRequest) (*AddInvoiceResponse, error)
	SubscribeInvoiceAccepted(*SubscribeInvoiceAcceptedRequest, Service_SubscribeInvoiceAcceptedServer) error
	WaitForInvoiceFinalStatus(context.Context, *WaitForInvoiceFinalStatusRequest) (*WaitForInvoiceFinalStatusResponse, error)
	// Requests settlement for an accepted invoice. This call is idempotent.
	SettleInvoice(context.Context, *SettleInvoiceRequest) (*SettleInvoiceResponse, error)
	// Cancels an accepted invoice. In case settle has been requested
	// for an invoice, CancelInvoice returns a FailedPrecondition error.
	CancelInvoice(context.Context, *CancelInvoiceRequest) (*CancelInvoiceResponse, error)
	// Lists settled or to be settled invoices. It returns invoices with a sequence number between
	// 'sequence_start' and 'sequence_start' + max_invoices_count'.
	ListInvoices(context.Context, *ListInvoicesRequest) (*ListInvoicesResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type Service_SubscribeInvoiceAcceptedClient

type Service_SubscribeInvoiceAcceptedClient interface {
	Recv() (*SubscribeInvoiceAcceptedResponse, error)
	grpc.ClientStream
}

type Service_SubscribeInvoiceAcceptedServer

type Service_SubscribeInvoiceAcceptedServer interface {
	Send(*SubscribeInvoiceAcceptedResponse) error
	grpc.ServerStream
}

type SettleInvoiceRequest

type SettleInvoiceRequest struct {
	Hash  []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	SetId []byte `protobuf:"bytes,2,opt,name=set_id,json=setId,proto3" json:"set_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SettleInvoiceRequest) Descriptor deprecated

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

Deprecated: Use SettleInvoiceRequest.ProtoReflect.Descriptor instead.

func (*SettleInvoiceRequest) GetHash

func (x *SettleInvoiceRequest) GetHash() []byte

func (*SettleInvoiceRequest) GetSetId

func (x *SettleInvoiceRequest) GetSetId() []byte

func (*SettleInvoiceRequest) ProtoMessage

func (*SettleInvoiceRequest) ProtoMessage()

func (*SettleInvoiceRequest) ProtoReflect

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

func (*SettleInvoiceRequest) Reset

func (x *SettleInvoiceRequest) Reset()

func (*SettleInvoiceRequest) String

func (x *SettleInvoiceRequest) String() string

func (*SettleInvoiceRequest) Validate

func (m *SettleInvoiceRequest) Validate() error

Validate checks the field values on SettleInvoiceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SettleInvoiceRequestValidationError

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

SettleInvoiceRequestValidationError is the validation error returned by SettleInvoiceRequest.Validate if the designated constraints aren't met.

func (SettleInvoiceRequestValidationError) Cause

Cause function returns cause value.

func (SettleInvoiceRequestValidationError) Error

Error satisfies the builtin error interface

func (SettleInvoiceRequestValidationError) ErrorName

ErrorName returns error name.

func (SettleInvoiceRequestValidationError) Field

Field function returns field value.

func (SettleInvoiceRequestValidationError) Key

Key function returns key value.

func (SettleInvoiceRequestValidationError) Reason

Reason function returns reason value.

type SettleInvoiceResponse

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

func (*SettleInvoiceResponse) Descriptor deprecated

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

Deprecated: Use SettleInvoiceResponse.ProtoReflect.Descriptor instead.

func (*SettleInvoiceResponse) ProtoMessage

func (*SettleInvoiceResponse) ProtoMessage()

func (*SettleInvoiceResponse) ProtoReflect

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

func (*SettleInvoiceResponse) Reset

func (x *SettleInvoiceResponse) Reset()

func (*SettleInvoiceResponse) String

func (x *SettleInvoiceResponse) String() string

func (*SettleInvoiceResponse) Validate

func (m *SettleInvoiceResponse) Validate() error

Validate checks the field values on SettleInvoiceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SettleInvoiceResponseValidationError

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

SettleInvoiceResponseValidationError is the validation error returned by SettleInvoiceResponse.Validate if the designated constraints aren't met.

func (SettleInvoiceResponseValidationError) Cause

Cause function returns cause value.

func (SettleInvoiceResponseValidationError) Error

Error satisfies the builtin error interface

func (SettleInvoiceResponseValidationError) ErrorName

ErrorName returns error name.

func (SettleInvoiceResponseValidationError) Field

Field function returns field value.

func (SettleInvoiceResponseValidationError) Key

Key function returns key value.

func (SettleInvoiceResponseValidationError) Reason

Reason function returns reason value.

type SubscribeInvoiceAcceptedRequest

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

func (*SubscribeInvoiceAcceptedRequest) Descriptor deprecated

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

Deprecated: Use SubscribeInvoiceAcceptedRequest.ProtoReflect.Descriptor instead.

func (*SubscribeInvoiceAcceptedRequest) ProtoMessage

func (*SubscribeInvoiceAcceptedRequest) ProtoMessage()

func (*SubscribeInvoiceAcceptedRequest) ProtoReflect

func (*SubscribeInvoiceAcceptedRequest) Reset

func (*SubscribeInvoiceAcceptedRequest) String

func (*SubscribeInvoiceAcceptedRequest) Validate

func (m *SubscribeInvoiceAcceptedRequest) Validate() error

Validate checks the field values on SubscribeInvoiceAcceptedRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SubscribeInvoiceAcceptedRequestValidationError

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

SubscribeInvoiceAcceptedRequestValidationError is the validation error returned by SubscribeInvoiceAcceptedRequest.Validate if the designated constraints aren't met.

func (SubscribeInvoiceAcceptedRequestValidationError) Cause

Cause function returns cause value.

func (SubscribeInvoiceAcceptedRequestValidationError) Error

Error satisfies the builtin error interface

func (SubscribeInvoiceAcceptedRequestValidationError) ErrorName

ErrorName returns error name.

func (SubscribeInvoiceAcceptedRequestValidationError) Field

Field function returns field value.

func (SubscribeInvoiceAcceptedRequestValidationError) Key

Key function returns key value.

func (SubscribeInvoiceAcceptedRequestValidationError) Reason

Reason function returns reason value.

type SubscribeInvoiceAcceptedResponse

type SubscribeInvoiceAcceptedResponse struct {
	Hash  []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	SetId []byte `protobuf:"bytes,2,opt,name=set_id,json=setId,proto3" json:"set_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeInvoiceAcceptedResponse) Descriptor deprecated

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

Deprecated: Use SubscribeInvoiceAcceptedResponse.ProtoReflect.Descriptor instead.

func (*SubscribeInvoiceAcceptedResponse) GetHash

func (x *SubscribeInvoiceAcceptedResponse) GetHash() []byte

func (*SubscribeInvoiceAcceptedResponse) GetSetId

func (x *SubscribeInvoiceAcceptedResponse) GetSetId() []byte

func (*SubscribeInvoiceAcceptedResponse) ProtoMessage

func (*SubscribeInvoiceAcceptedResponse) ProtoMessage()

func (*SubscribeInvoiceAcceptedResponse) ProtoReflect

func (*SubscribeInvoiceAcceptedResponse) Reset

func (*SubscribeInvoiceAcceptedResponse) String

func (*SubscribeInvoiceAcceptedResponse) Validate

Validate checks the field values on SubscribeInvoiceAcceptedResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SubscribeInvoiceAcceptedResponseValidationError

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

SubscribeInvoiceAcceptedResponseValidationError is the validation error returned by SubscribeInvoiceAcceptedResponse.Validate if the designated constraints aren't met.

func (SubscribeInvoiceAcceptedResponseValidationError) Cause

Cause function returns cause value.

func (SubscribeInvoiceAcceptedResponseValidationError) Error

Error satisfies the builtin error interface

func (SubscribeInvoiceAcceptedResponseValidationError) ErrorName

ErrorName returns error name.

func (SubscribeInvoiceAcceptedResponseValidationError) Field

Field function returns field value.

func (SubscribeInvoiceAcceptedResponseValidationError) Key

Key function returns key value.

func (SubscribeInvoiceAcceptedResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddInvoice

func (UnimplementedServiceServer) CancelInvoice

func (UnimplementedServiceServer) GetInfo

func (UnimplementedServiceServer) ListInvoices

func (UnimplementedServiceServer) SettleInvoice

type UnsafeServiceServer

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

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

type WaitForInvoiceFinalStatusRequest

type WaitForInvoiceFinalStatusRequest struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*WaitForInvoiceFinalStatusRequest) Descriptor deprecated

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

Deprecated: Use WaitForInvoiceFinalStatusRequest.ProtoReflect.Descriptor instead.

func (*WaitForInvoiceFinalStatusRequest) GetHash

func (x *WaitForInvoiceFinalStatusRequest) GetHash() []byte

func (*WaitForInvoiceFinalStatusRequest) ProtoMessage

func (*WaitForInvoiceFinalStatusRequest) ProtoMessage()

func (*WaitForInvoiceFinalStatusRequest) ProtoReflect

func (*WaitForInvoiceFinalStatusRequest) Reset

func (*WaitForInvoiceFinalStatusRequest) String

func (*WaitForInvoiceFinalStatusRequest) Validate

Validate checks the field values on WaitForInvoiceFinalStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WaitForInvoiceFinalStatusRequestValidationError

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

WaitForInvoiceFinalStatusRequestValidationError is the validation error returned by WaitForInvoiceFinalStatusRequest.Validate if the designated constraints aren't met.

func (WaitForInvoiceFinalStatusRequestValidationError) Cause

Cause function returns cause value.

func (WaitForInvoiceFinalStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (WaitForInvoiceFinalStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (WaitForInvoiceFinalStatusRequestValidationError) Field

Field function returns field value.

func (WaitForInvoiceFinalStatusRequestValidationError) Key

Key function returns key value.

func (WaitForInvoiceFinalStatusRequestValidationError) Reason

Reason function returns reason value.

type WaitForInvoiceFinalStatusResponse

type WaitForInvoiceFinalStatusResponse struct {
	InvoiceStatus InvoiceStatus `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WaitForInvoiceFinalStatusResponse) Descriptor deprecated

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

Deprecated: Use WaitForInvoiceFinalStatusResponse.ProtoReflect.Descriptor instead.

func (*WaitForInvoiceFinalStatusResponse) GetInvoiceStatus

func (x *WaitForInvoiceFinalStatusResponse) GetInvoiceStatus() InvoiceStatus

func (*WaitForInvoiceFinalStatusResponse) ProtoMessage

func (*WaitForInvoiceFinalStatusResponse) ProtoMessage()

func (*WaitForInvoiceFinalStatusResponse) ProtoReflect

func (*WaitForInvoiceFinalStatusResponse) Reset

func (*WaitForInvoiceFinalStatusResponse) String

func (*WaitForInvoiceFinalStatusResponse) Validate

Validate checks the field values on WaitForInvoiceFinalStatusResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WaitForInvoiceFinalStatusResponseValidationError

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

WaitForInvoiceFinalStatusResponseValidationError is the validation error returned by WaitForInvoiceFinalStatusResponse.Validate if the designated constraints aren't met.

func (WaitForInvoiceFinalStatusResponseValidationError) Cause

Cause function returns cause value.

func (WaitForInvoiceFinalStatusResponseValidationError) Error

Error satisfies the builtin error interface

func (WaitForInvoiceFinalStatusResponseValidationError) ErrorName

ErrorName returns error name.

func (WaitForInvoiceFinalStatusResponseValidationError) Field

Field function returns field value.

func (WaitForInvoiceFinalStatusResponseValidationError) Key

Key function returns key value.

func (WaitForInvoiceFinalStatusResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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