app

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithActorRegistration added in v1.18.0

func WithActorRegistration(fn func() *rtv1.SubscribeActorEventsRequestInitialAlpha1) func(*options)

WithActorRegistration supplies the initial SubscribeActorEventsRequest message the harness sends when opening the actor callback stream. Must be combined with WithDaprdGRPCAddrFn.

func WithDaprdGRPCAddrFn added in v1.18.0

func WithDaprdGRPCAddrFn(fn func() string) func(*options)

WithDaprdGRPCAddrFn instructs the harness to open a SubscribeActorEventsAlpha1 stream against the daprd instance whose gRPC address is returned by fn. The closure is evaluated at Run time so tests can reference a daprd.Daprd that is created after the harness.

func WithGRPCOptions

func WithGRPCOptions(opts ...procgrpc.Option) func(*options)

func WithHealthCheckFn

func WithHealthCheckFn(fn func(context.Context, *emptypb.Empty) (*rtv1.HealthCheckResponse, error)) func(*options)

func WithListInputBindings

func WithListInputBindings(fn func(context.Context, *emptypb.Empty) (*rtv1.ListInputBindingsResponse, error)) func(*options)

func WithListTopicSubscriptions

func WithListTopicSubscriptions(fn func(ctx context.Context, in *emptypb.Empty) (*rtv1.ListTopicSubscriptionsResponse, error)) func(*options)

func WithOnActorDeactivateFn added in v1.18.0

WithOnActorDeactivateFn installs a handler for SubscribeActorEventsResponseDeactivateRequestAlpha1.

func WithOnActorInvokeFn added in v1.18.0

WithOnActorInvokeFn installs a handler the harness invokes when daprd pushes an SubscribeActorEventsResponseInvokeRequestAlpha1 on the stream.

func WithOnActorReminderFn added in v1.18.0

WithOnActorReminderFn installs a handler for SubscribeActorEventsResponseReminderRequestAlpha1.

func WithOnActorTimerFn added in v1.18.0

WithOnActorTimerFn installs a handler for SubscribeActorEventsResponseTimerRequestAlpha1.

func WithOnBindingEventFn

func WithOnBindingEventFn(fn func(context.Context, *rtv1.BindingEventRequest) (*rtv1.BindingEventResponse, error)) func(*options)

func WithOnBulkTopicEventFn added in v1.13.2

func WithOnBulkTopicEventFn(fn func(context.Context, *rtv1.TopicEventBulkRequest) (*rtv1.TopicEventBulkResponse, error)) func(*options)

func WithOnInvokeFn

func WithOnInvokeFn(fn func(ctx context.Context, in *commonv1.InvokeRequest) (*commonv1.InvokeResponse, error)) func(*options)

func WithOnJobEventFn added in v1.14.0

func WithOnJobEventFn(fn func(ctx context.Context, in *rtv1.JobEventRequest) (*rtv1.JobEventResponse, error)) func(*options)

func WithOnTopicEventFn

func WithOnTopicEventFn(fn func(context.Context, *rtv1.TopicEventRequest) (*rtv1.TopicEventResponse, error)) func(*options)

func WithPingFn added in v1.14.0

func WithPingFn(fn func(context.Context, *testpb.PingRequest) (*testpb.PingResponse, error)) func(*options)

func WithRegister

func WithRegister(fn func(s *grpc.Server)) func(*options)

Types

type App

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

App is a wrapper around a grpc.Server that implements a Dapr App.

func New

func New(t *testing.T, fopts ...Option) *App

func (*App) Cleanup added in v1.14.0

func (a *App) Cleanup(t *testing.T)

func (*App) Port added in v1.14.0

func (a *App) Port(t *testing.T) int

func (*App) Run added in v1.14.0

func (a *App) Run(t *testing.T, ctx context.Context)

type Option

type Option func(*options)

Option is a function that configures the process.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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