daprd

package
v1.12.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daprd

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

func New

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

func (*Daprd) AppID

func (d *Daprd) AppID() string

func (*Daprd) AppPort

func (d *Daprd) AppPort() int

func (*Daprd) Cleanup

func (d *Daprd) Cleanup(t *testing.T)

func (*Daprd) GRPCPort

func (d *Daprd) GRPCPort() int

func (*Daprd) HTTPPort

func (d *Daprd) HTTPPort() int

func (*Daprd) InternalGRPCPort

func (d *Daprd) InternalGRPCPort() int

func (*Daprd) MetricsPort

func (d *Daprd) MetricsPort() int

func (*Daprd) ProfilePort

func (d *Daprd) ProfilePort() int

func (*Daprd) PublicPort

func (d *Daprd) PublicPort() int

func (*Daprd) Run

func (d *Daprd) Run(t *testing.T, ctx context.Context)

func (*Daprd) WaitUntilAppHealth

func (d *Daprd) WaitUntilAppHealth(t *testing.T, ctx context.Context)

func (*Daprd) WaitUntilRunning

func (d *Daprd) WaitUntilRunning(t *testing.T, ctx context.Context)

type Option

type Option func(*options)

Option is a function that configures the dapr process.

func WithAppHealthCheck

func WithAppHealthCheck(enabled bool) Option

func WithAppHealthCheckPath

func WithAppHealthCheckPath(path string) Option

func WithAppHealthProbeInterval

func WithAppHealthProbeInterval(interval int) Option

func WithAppHealthProbeThreshold

func WithAppHealthProbeThreshold(threshold int) Option

func WithAppID

func WithAppID(appID string) Option

func WithAppPort

func WithAppPort(port int) Option

func WithAppProtocol

func WithAppProtocol(protocol string) Option

func WithConfigs

func WithConfigs(configs ...string) Option

func WithControlPlaneAddress

func WithControlPlaneAddress(address string) Option

func WithDisableK8sSecretStore

func WithDisableK8sSecretStore(disable bool) Option

func WithEnableMTLS

func WithEnableMTLS(enable bool) Option

func WithExecOptions

func WithExecOptions(execOptions ...exec.Option) Option

func WithGRPCPort

func WithGRPCPort(port int) Option

func WithHTTPPort

func WithHTTPPort(port int) Option

func WithInternalGRPCPort

func WithInternalGRPCPort(port int) Option

func WithLogLevel

func WithLogLevel(logLevel string) Option

func WithMetricsPort

func WithMetricsPort(port int) Option

func WithMode

func WithMode(mode string) Option

func WithPlacementAddresses

func WithPlacementAddresses(addresses ...string) Option

func WithProfilePort

func WithProfilePort(port int) Option

func WithPublicPort

func WithPublicPort(port int) Option

func WithResourceFiles

func WithResourceFiles(files ...string) Option

func WithSentryAddress

func WithSentryAddress(address string) Option

Jump to

Keyboard shortcuts

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