Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionValues = ActionOptions{ ExpireDonorIdentity: ActionExpireDonorIdentity, }
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action uint8
func ParseAction ¶
func (Action) IsExpireDonorIdentity ¶
func (Action) MarshalText ¶
func (*Action) UnmarshalText ¶
type ActionOptions ¶
type ActionOptions struct {
ExpireDonorIdentity Action
}
type DonorStore ¶
type DynamoClient ¶
type Event ¶
type Event struct { PK dynamo.ScheduledDayKeyType SK dynamo.ScheduledKeyType // CreatedAt is when the event was created CreatedAt time.Time // At is when the action should be done At time.Time // Action is what to do when run Action Action // TargetLpaKey is used to specify the target of the action TargetLpaKey dynamo.LpaKeyType // TargetLpaOwnerKey is used to specify the target of the action TargetLpaOwnerKey dynamo.LpaOwnerKeyType }
A Event specifies an action to take in the future.
type NotifyClient ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(logger Logger, store ScheduledStore, donorStore DonorStore, notifyClient NotifyClient, period time.Duration) *Runner
type ScheduledStore ¶
Click to show internal directories.
Click to hide internal directories.