Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeService ¶
func InvokeSimpleService ¶ added in v0.1.1
func InvokeSimpleService(config *SimpleConfig) (func() error, error)
Types ¶
type Config ¶
type Config struct { MakeDir string MakeBuildTarget string ServiceBinaryPath string ServiceName string GRPCPort int Envs []string Verbose bool CoverageDir string // ServiceReadyProbe is a customer function which probes the service // until the service is ready. ServiceReadyProbe func(*Config) }
Config defines make-based configuration.
type SimpleConfig ¶ added in v0.1.1
type SimpleConfig struct { // Directory to change. Chdir string // Command to invoke service. ServiceCmd string // Args to pass when invoking the service. ServiceArgs []string // Environments variables Envs []string // Redirect the output from the service to standard out/err. Verbose bool // Function to probe if the service is ready. // This function must retry probing until the service is ready. ReadyProbe func() }
SimpleConfig provides a simple configuration without any steps to build service binary.
Click to show internal directories.
Click to hide internal directories.