Documentation
¶
Index ¶
- Constants
- Variables
- type AwakeableOption
- type Context
- func (c *Context) After(d time.Duration) restate.After
- func (c *Context) Awakeable(opts ...options.AwakeableOption) restate.Awakeable
- func (c *Context) Clear(key string)
- func (c *Context) ClearAll()
- func (c *Context) Get(key string, output any, opts ...options.GetOption) error
- func (c *Context) Key() string
- func (c *Context) Keys() []string
- func (c *Context) Log() *slog.Logger
- func (c *Context) Object(service, key, method string, opts ...options.CallOption) restate.CallClient
- func (c *Context) Rand() *rand.Rand
- func (c *Context) RejectAwakeable(id string, reason error)
- func (c *Context) Request() *restate.Request
- func (c *Context) ResolveAwakeable(id string, value any, opts ...options.ResolveAwakeableOption) error
- func (c *Context) Run(fn func(ctx restate.RunContext) (any, error), output any, ...) error
- func (c *Context) Select(futs ...restate.Selectable) restate.Selector
- func (c *Context) Service(service, method string, opts ...options.CallOption) restate.CallClient
- func (c *Context) Set(key string, value any, opts ...options.SetOption) error
- func (c *Context) Sleep(d time.Duration) error
- type Machine
Constants ¶
View Source
const (
Version = 1
)
Variables ¶
View Source
var (
ErrInvalidVersion = fmt.Errorf("invalid version number")
)
Functions ¶
This section is empty.
Types ¶
type AwakeableOption ¶
type AwakeableOption interface {
// contains filtered or unexported methods
}
type Context ¶
func (*Context) Awakeable ¶
func (c *Context) Awakeable(opts ...options.AwakeableOption) restate.Awakeable
func (*Context) Object ¶
func (c *Context) Object(service, key, method string, opts ...options.CallOption) restate.CallClient
func (*Context) RejectAwakeable ¶
func (*Context) ResolveAwakeable ¶
func (*Context) Service ¶
func (c *Context) Service(service, method string, opts ...options.CallOption) restate.CallClient
Click to show internal directories.
Click to hide internal directories.