sidecar

package
v0.0.0-...-1a6a75a Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(appID string, options ...embedded.Option) (string, flow.Runnable, flow.Runnable)

func Start

func Start(appID string, options ...embedded.Option) flow.Runnable

func Stop

func Stop(appID string) flow.Runnable

Types

type Client

type Client struct {
	dapr.Client
	registry.ComponentRegistry
	// contains filtered or unexported fields
}

func GetClient

func GetClient(ctx flow.Context, sidecarName string) *Client

type ClientCallback

type ClientCallback func(client *Client)

type Option

type Option func(o *options)

func WithClientCallback

func WithClientCallback(callback ClientCallback) Option

type Sidecar

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

func New

func New(appID string, options ...embedded.Option) Sidecar

func (Sidecar) AppID

func (s Sidecar) AppID() string

func (Sidecar) Start

func (s Sidecar) Start(ctx flow.Context) error

func (Sidecar) Stop

func (s Sidecar) Stop(ctx flow.Context) error

func (Sidecar) ToStep

func (s Sidecar) ToStep() (string, flow.Runnable, flow.Runnable)

Jump to

Keyboard shortcuts

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