startup

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Startup

func Startup(ctx *mbcontext.Context, cfg *Config, log logger.Logger, loader caseprovider.CaseLoader) error

Types

type Config

type Config struct {
	Log            *logger.Config          `yaml:"log"`
	ApiManager     *apimanager.Config      `yaml:"api"`
	TargetProcess  *targetprocess.Config   `yaml:"target"`
	MockServer     *mockserver.Config      `yaml:"mock"`
	TaskService    *taskserver.Config      `yaml:"task"`
	Storage        *storageprovider.Config `yaml:"storage"`
	CaseProvider   *caseprovider.Config    `yaml:"case"`
	ProtoManager   *protomanager.Config    `yaml:"proto"`
	PluginRegistry *pluginregistry.Config  `yaml:"plugin"`
	WebService     *web.Config             `yaml:"web"`
	CaptureServer  *captureserver.Config   `yaml:"capture"`
	MessagePush    *messagepush.Config     `yaml:"msgPush"`
}

func NewConfig

func NewConfig() *Config

func (*Config) RegisterFlagsWithPrefix

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

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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