feat(invocation): produce example output similar to spec
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user