Documentation ¶
Index ¶
- func CompleteRaffle(ctxCtx context.Context, raffleID, txHash string) error
- func ConfirmRaffleWinner(ctxCtx context.Context, raffleID string) error
- func DecodeSecretKey(raffleSecretKey string) (*ecdsa.PrivateKey, error)
- func GenerateRaffleEntriesPlaintext(raffleID string, periodStart, periodEnd time.Time, ...) error
- func ProcessRaffle(ctxCtx context.Context, raffleID string, periodStart, periodEnd time.Time, ...) ([]*types.RaffleDrawing, []*types.PlayedMediaRaffleEntry, error)
- func RaffleEntriesURL(websiteURL string, year, week int) string
- func RaffleInfoURL(websiteURL string, year, week int) string
- func RedrawRaffle(ctxCtx context.Context, raffleID, reason string, secretKey *ecdsa.PrivateKey) error
- func WeeklyRaffleParameters(year, week int) (string, time.Time, time.Time, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteRaffle ¶
CompleteRaffle modifies the given raffle, which must be in winner confirmed status, in order to change it to a complete state
func ConfirmRaffleWinner ¶
ConfirmRaffleWinner modifies the given raffle, which must be in pending status, to mark its winner as confirmed
func DecodeSecretKey ¶
func DecodeSecretKey(raffleSecretKey string) (*ecdsa.PrivateKey, error)
func ProcessRaffle ¶
func ProcessRaffle(ctxCtx context.Context, raffleID string, periodStart, periodEnd time.Time, secretKey *ecdsa.PrivateKey) ([]*types.RaffleDrawing, []*types.PlayedMediaRaffleEntry, error)
ProcessRaffle returns information about a raffle, triggering raffle lifecycle operations in the process as needed
func RaffleEntriesURL ¶
RaffleEntriesURL returns the URL of the entries for the given raffle
func RaffleInfoURL ¶
RaffleInfoURL returns the URL of the information for the given raffle
func RedrawRaffle ¶
func RedrawRaffle(ctxCtx context.Context, raffleID, reason string, secretKey *ecdsa.PrivateKey) error
RedrawRaffle modifies the given raffle in order to redraw it, due to the provided reason
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.