Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Startup ¶
func Startup( ctx context.Context, cancelFunc context.CancelFunc, cfg *Config, log logger.Logger, registerer prometheus.Registerer) error
Startup is used to start up application
Types ¶
type Config ¶
type Config struct { MetricsAddress string Log *logger.Config GRPCMockServer *grpcmockserver.Config HTTPMockServer *httpmockserver.Config ApiManager *apimanager.Config PluginRegistry *pluginregistry.Config Plugin *PluginConfig }
Config defines the powermock config with plugins
func (*Config) RegisterFlagsWithPrefix ¶
RegisterFlagsWithPrefix is used to register flags
type PluginConfig ¶
type PluginConfig struct { Redis *pluginredis.Config RedisCluster *pluginrediscluster.Config Simple *pluginssimple.Config GRPC *pluginsgrpc.Config HTTP *pluginshttp.Config Script *pluginscript.Config }
PluginConfig defines the plugin config
func NewPluginConfig ¶
func NewPluginConfig() *PluginConfig
NewPluginConfig is used to create plugin config
func (*PluginConfig) RegisterFlagsWithPrefix ¶
func (c *PluginConfig) RegisterFlagsWithPrefix(prefix string, f *pflag.FlagSet)
RegisterFlagsWithPrefix is used to register flags
func (*PluginConfig) Validate ¶
func (c *PluginConfig) Validate() error
Validate is used to validate config and returns error on failure
Click to show internal directories.
Click to hide internal directories.