feat(invocation): produce example output similar to spec

This commit is contained in:
Steve Moyer
2024-10-24 12:59:38 -04:00
parent 31d16ac468
commit a98653b769
3 changed files with 235 additions and 0 deletions

View File

@@ -124,6 +124,15 @@ func WithInvokedAtIn(after time.Duration) Option {
}
}
// WithoutInvokedAt clears the Token's invokedAt field.
func WithoutInvokedAt() Option {
return func(t *Token) error {
t.invokedAt = nil
return nil
}
}
// WithCause sets the Token's cause field to the provided cid.Cid.
func WithCause(cause *cid.Cid) Option {
return func(t *Token) error {