Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enable bool Address string ProtoManager *protomanager.Config }
Config defines the config structure
func (*Config) IsEnabled ¶
IsEnabled is used to return whether the current component is enabled This attribute is required in pluggable components
func (*Config) RegisterFlagsWithPrefix ¶
RegisterFlagsWithPrefix is used to register flags
type MockServer ¶
MockServer is the implement of gRPC mock server
func (*MockServer) GetProtoManager ¶
func (s *MockServer) GetProtoManager() protomanager.Provider
GetProtoManager is used to get proto manager
func (*MockServer) Start ¶
func (s *MockServer) Start(ctx context.Context, cancelFunc context.CancelFunc) error
Start is used to start the service
type Provider ¶
type Provider interface { Start(ctx context.Context, cancelFunc context.CancelFunc) error GetProtoManager() protomanager.Provider }
Provider defines the mock server interface
func New ¶
func New(cfg *Config, apiManager apimanager.Provider, logger logger.Logger, registerer prometheus.Registerer) (Provider, error)
New is used to init service
Click to show internal directories.
Click to hide internal directories.