model

package
v0.0.0-...-672e050 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ID          int64  `json:"id"`
	FundingTxid string `json:"funding_txid"`
	OutputIndex int64  `json:"output_index"`
	NodeID      int64  `json:"node_id"`
}

Channel is a Lightning Channel

type MultiChannelBackup

type MultiChannelBackup struct {
	ID        int64     `json:"id"`
	CreatedAt time.Time `json:"created_at"`
	Backup    string    `json:"backup"`
	NodeID    int64     `json:"node_id"`
}

MultiChannelBackup is an encrypted backup of a lightning channel state

type NewNode

type NewNode struct {
	ID       int    `json:"id"`
	URL      string `json:"url"`
	Alias    string `json:"alias"`
	Pubkey   string `json:"pubkey"`
	Macaroon string `json:"macaroon"`
	TLSCert  string `json:"tls_cert"`
	UserID   int    `json:"user_id"`
}

type NewUser

type NewUser struct {
	ID            int    `json:"id"`
	Email         string `json:"email"`
	Password      string `json:"password"`
	PhoneNumber   string `json:"phone_number"`
	SmsEnabled    bool   `json:"sms_enabled"`
	SmsLastSent   string `json:"sms_last_sent"`
	SmsNotifyTime string `json:"sms_notify_time"`
}

type Node

type Node struct {
	ID       int64  `json:"id"`
	URL      string `json:"url"`
	Alias    string `json:"alias"`
	Pubkey   string `json:"pubkey"`
	Macaroon string `json:"macaroon"`
	TLSCert  string `json:"tls_cert"`
	UserID   int64  `json:"user_id"`
}

Node is a Lightning Node

type User

type User struct {
	ID            int64     `json:"id"`
	Email         string    `json:"email"`
	Password      string    `json:"password"`
	PhoneNumber   string    `json:"phone_number"`
	SmsEnabled    bool      `json:"sms_enabled"`
	SmsLastSent   time.Time `json:"sms_last_sent"`
	SmsNotifyTime time.Time `json:"sms_notify_time"`
}

User is a nodewatcher user

Jump to

Keyboard shortcuts

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