targetprocess

package
v0.0.0-...-e9f0680 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppPath string       `yaml:"appPath"`
	Env     []target.Env `json:"env"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) RegisterFlagsWithPrefix

func (c *Config) RegisterFlagsWithPrefix(prefix string, f *pflag.FlagSet)

RegisterFlagsWithPrefix is used to register flags

func (*Config) Validate

func (c *Config) Validate() error

type Provider

type Provider interface {
	Start(ctx *mbcontext.Context) error
	GetRuntimeInfo() *target.RuntimeInfo
}

Provider defines the target process interface

func New

func New(log logger.Logger, cfg *Config, mock mockserver.Provider) Provider

type TargetProcess

type TargetProcess struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*TargetProcess) GetRuntimeInfo

func (t *TargetProcess) GetRuntimeInfo() *target.RuntimeInfo

GetRuntimeInfo implements Provider

func (*TargetProcess) Start

func (t *TargetProcess) Start(ctx *mbcontext.Context) error

Start the service to be tested

Jump to

Keyboard shortcuts

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