Documentation
¶
Index ¶
- func Create(ctx context.Context, b Backends, pollID, optionID, sats, expiry int64, ...) (int64, error)
- func GetResults(ctx context.Context, b Backends, pollID int64) (map[int64]int64, error)
- func ReleaseVotesForPoll(ctx context.Context, b Backends, pollID int64, ...) (int64, error)
- func StartLoops(b Backends)
- type Backends
- type Vote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, b Backends, pollID, optionID, sats, expiry int64, note string) (int64, error)
Create initiates the process of voting for an option. It queries LND for an invoice, saved it in the votes DB and returns it to the user.
func GetResults ¶
GetResults returns a map of options IDs to vote counts. Note that only paid votes are included.
func ReleaseVotesForPoll ¶
func StartLoops ¶
func StartLoops(b Backends)
Types ¶
Click to show internal directories.
Click to hide internal directories.