server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 17 Imported by: 24

Documentation

Index

Constants

Variables

View Source
var X_RESTATE_SERVER = `restate-sdk-go/unknown`

Functions

This section is empty.

Types

type Restate

type Restate struct {
	// contains filtered or unexported fields
}

func NewRestate

func NewRestate() *Restate

NewRestate creates a new instance of Restate server

func (*Restate) Bind

func (r *Restate) Bind(router restate.Router) *Restate

func (*Restate) Start

func (r *Restate) Start(ctx context.Context, address string) error

func (*Restate) WithIdentityV1

func (r *Restate) WithIdentityV1(keys ...string) *Restate

func (*Restate) WithLogger

func (r *Restate) WithLogger(h slog.Handler, dropReplayLogs bool) *Restate

WithLogger overrides the slog handler used by the SDK (which defaults to the slog Default()) You may specify with dropReplayLogs whether to drop logs that originated from handler code while the invocation was replaying. If they are not dropped, you may still determine the replay status in a slog.Handler using rcontext.LogContextFrom(ctx)

Jump to

Keyboard shortcuts

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