standalone

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 29 Imported by: 7

Documentation

Index

Constants

View Source
const (
	DaprPlacementContainerName = "dapr_placement"
)

Variables

This section is empty.

Functions

func Init

func Init(runtimeVersion string) error

Init installs Dapr on a local machine using the supplied runtimeVersion

func Stop

func Stop(appID string) error

Terminate the application process

func Uninstall

func Uninstall() error

Types

type ListOutput

type ListOutput struct {
	AppID    string `csv:"APP ID"`
	HTTPPort int    `csv:"HTTP PORT"`
	GRPCPort int    `csv:"GRPC PORT"`
	AppPort  int    `csv:"APP PORT"`
	Command  string `csv:"COMMAND"`
	Age      string `csv:"AGE"`
	Created  string `csv:"CREATED"`
	PID      int
}

ListOutput to represent the application id, application port and creation time

func List

func List() ([]ListOutput, error)

List to output all the the applications

type RunConfig

type RunConfig struct {
	AppID           string
	AppPort         int
	HTTPPort        int
	GRPCPort        int
	ConfigFile      string
	Protocol        string
	Arguments       []string
	EnableProfiling bool
	ProfilePort     int
	LogLevel        string
	MaxConcurrency  int
}

RunConfig to represent application configuration parameters

type RunOutput

type RunOutput struct {
	DaprCMD      *exec.Cmd
	DaprHTTPPort int
	DaprGRPCPort int
	AppID        string
	AppCMD       *exec.Cmd
}

RunOutput to represent the run output

func Run

func Run(config *RunConfig) (*RunOutput, error)

Jump to

Keyboard shortcuts

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