Documentation
¶
Index ¶
Constants ¶
View Source
const ( REQUEST_EVENT_STATE_HANDLER_EXECUTING = "executing" REQUEST_EVENT_STATE_HANDLER_EXECUTED = "executed" REQUEST_EVENT_STATE_HANDLER_ERROR = "error" )
View Source
const ( RESPONSE_EVENT_STATE_PUBLISH_CONFIRMED = "confirmed" RESPONSE_EVENT_STATE_PUBLISH_FAILED = "failed" RESPONSE_EVENT_STATE_PUBLISH_UNCONFIRMED = "unconfirmed" )
Variables ¶
This section is empty.
Functions ¶
func NewDBService ¶
func NewDBService(db *gorm.DB, eventPublisher events.EventPublisher) *dbService
Types ¶
type AppPermission ¶
type RequestEvent ¶
type ResponseEvent ¶
type Transaction ¶ added in v1.2.0
type Transaction struct {
ID uint
AppId *uint
App *App
RequestEventId *uint
RequestEvent *RequestEvent
Type string
State string
AmountMsat uint64
FeeMsat uint64
FeeReserveMsat uint64
PaymentRequest string
PaymentHash string
Description string
DescriptionHash string
Preimage *string
CreatedAt time.Time
ExpiresAt *time.Time
UpdatedAt time.Time
SettledAt *time.Time
Metadata datatypes.JSON
SelfPayment bool
Boostagram datatypes.JSON
FailureReason string
}
Click to show internal directories.
Click to hide internal directories.