Versions in this module Expand all Collapse all v0 v0.0.14 Jan 4, 2023 Changes in this version + const SERVER_TYPE + var ErrGRPCConfigLoad = errors.New("error loading grpc config") + var ErrRequiredGRPCRegistrar = errors.New("gRPC registration callback is required") + type Config struct + Host string + Port int + Tags string + func NewConfig() *Config + func (c *Config) Address() string + func (c *Config) GetTags() []string + type Initializer struct + func NewInitializer(s *Simple) *Initializer + func (i *Initializer) AddDependency(dep interface{}) error + func (i *Initializer) CanRun() bool + func (i *Initializer) CanStop() bool + func (i *Initializer) Dependencies() []string + func (i *Initializer) Run(ctx context.Context) error + func (i *Initializer) Stop(ctx context.Context) error + type Option func(*Simple) + type Simple struct + func NewSimple(opts ...Option) *Simple + func (s *Simple) AddRegistryTags(tags ...string) + func (s *Simple) Address() string + func (s *Simple) GetMetadata(key string) interface{} + func (s *Simple) HasInitializer() bool + func (s *Simple) Host() string + func (s *Simple) Initializer() component.Initializer + func (s *Simple) Port() int + func (s *Simple) RegistryTags() []string + func (s *Simple) String() string