schedule

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DailyRolling    Type = "daily-rolling"
	WeeklyAnchored       = "weekly-anchored"
	MonthlyAnchored      = "monthly-anchored"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Schedule

type Schedule struct {
	Type          Type   `json:"type"`
	Period        int    `json:"period"`                  // DailyRolling: number of days of payment latency
	WeeklyAnchor  string `json:"weeklyAnchor,omitempty"`  // WeeklyAnchored: day of the week when the payout should occur
	MonthlyAnchor int    `json:"monthlyAnchor,omitempty"` // MonthlyAnchored: day of the month when the payout should occur
}

func (Schedule) Cutoff

func (s Schedule) Cutoff(t time.Time) time.Time

type Type

type Type string

Jump to

Keyboard shortcuts

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