runtime

package
v0.0.0-...-e30ce0b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGracefulShutdownDuration = time.Second * 5

	DefaultMaxRequestBodySize = 4
	// DefaultAPIListenAddress is which address to listen for the Dapr HTTP and GRPC APIs. Empty string is all addresses.
	DefaultAPIListenAddress = ""
	// DefaultReadBufferSize is the default option for the maximum header size in KB for Dapr HTTP servers.
	DefaultReadBufferSize = 4

	DefaultRuntimeAppPort  = 50001
	DefaultRuntimeGrpcPort = 50017
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace               string
	AppId                   string
	AppPort                 int
	GrpcPort                int
	ResourcesPath           string
	GracefulShutdownSeconds int
	UnixDomainSocket        string
	APIListenAddress        string
	AppUnixDomainSocket     string
}

func (*Config) NewRuntime

func (c *Config) NewRuntime(ctx context.Context) (*Runtime, error)

type Runtime

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

func (*Runtime) Run

func (rt *Runtime) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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