schedulepayout

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartScheduledPayout

func StartScheduledPayout(configuration PayoutConfiguration, privateKey string, repos repositories.Repos)

StartScheduledPayout checks every 24 hours how many days have passed since last payout. If number of passed days is equal or bigger than defined interval in configuration, start automatic payout

Types

type PayoutConfiguration

type PayoutConfiguration struct {
	PayoutNumberOfDays int
	PayoutTotalReward  float64
	LbURL              *url.URL
}

Jump to

Keyboard shortcuts

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