Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppsService ¶
Types ¶
type AppsService ¶
type AppsService interface {
CreateApp(name string, pubkey string, maxAmountSat uint64, budgetRenewal string, expiresAt *time.Time, scopes []string, isolated bool, metadata map[string]interface{}) (*db.App, string, error)
DeleteApp(app *db.App) error
GetAppByPubkey(pubkey string) *db.App
GetAppById(id uint) *db.App
SetAppMetadata(appId uint, metadata map[string]interface{}) error
HasLightningAddress(app *db.App) bool
}
Click to show internal directories.
Click to hide internal directories.