Documentation ¶
Index ¶
- type Invoice
- func (i *Invoice) GetAmount() int64
- func (i *Invoice) GetHash() string
- func (i *Invoice) GetPaymentRequest() string
- func (i *Invoice) IsIssued() bool
- func (i Invoice) Log() map[string]interface{}
- func (i *Invoice) SetAmount(amount int64)
- func (i *Invoice) SetHash(h string)
- func (i *Invoice) SetIssued(issued bool)
- func (i *Invoice) SetPaid(paid bool)
- func (i *Invoice) SetPaymentRequest(pr string)
- func (i *Invoice) SetTimeCreated(t time.Time)
- func (i *Invoice) SetTimePaid(t time.Time)
- func (i Invoice) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invoice ¶
type Invoice struct { Amount int64 `json:"amount"` Pr string `json:"payment_request"` Hash string `json:"payment_hash" gorm:"primaryKey"` Issued bool `json:"issued"` Preimage string `json:"preimage"` Paid bool `json:"paid"` Create time.Time `json:"time_created"` TimePaid time.Time `json:"time_paid"` }
func (*Invoice) GetPaymentRequest ¶
func (*Invoice) SetPaymentRequest ¶
func (*Invoice) SetTimeCreated ¶
func (*Invoice) SetTimePaid ¶
Click to show internal directories.
Click to hide internal directories.