Documentation ¶
Index ¶
- type App
- func (app *App) ConfigureLogger(logger *log.Logger)
- func (app *App) ConfigureTextMapPropagator()
- func (app *App) ConfigureTracerProvider()
- func (app *App) Init()
- func (app *App) Logger() *log.Logger
- func (app *App) OnInit()
- func (app *App) OnInitComplete()
- func (app *App) OnStart(ctx context.Context)
- func (app *App) OnStop(ctx context.Context)
- func (app *App) TextMapPropagator() propagation.TextMapPropagator
- func (app *App) TracerProvider() *trace.SeverityTracerProvider
- type Config
- type Host
- type MockComponent
- type MockComponentRunner
- type MockRedis
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Host *Host Config *Config ServiceProvider *ServiceProvider Component *MockComponent }
func (*App) ConfigureLogger ¶
func (*App) ConfigureTextMapPropagator ¶
func (app *App) ConfigureTextMapPropagator()
func (*App) ConfigureTracerProvider ¶
func (app *App) ConfigureTracerProvider()
func (*App) OnInitComplete ¶
func (app *App) OnInitComplete()
func (*App) TextMapPropagator ¶
func (app *App) TextMapPropagator() propagation.TextMapPropagator
func (*App) TracerProvider ¶
func (app *App) TracerProvider() *trace.SeverityTracerProvider
type Config ¶
type Config struct { // server ListenAddress string `arg:"address"` EnableCompress bool `arg:"compress"` // redis RedisHost string `env:"*REDIS_HOST" yaml:"redisHost"` RedisPassword string `env:"*REDIS_PASSWORD" yaml:"redisPassword"` RedisDB int `env:"REDIS_DB" yaml:"redisDB"` RedisPoolSize int `env:"REDIS_POOL_SIZE" yaml:"redisPoolSize"` Workspace string `env:"-" yaml:"workspace"` }
type MockComponent ¶
type MockComponent struct { }
func (*MockComponent) Runner ¶
func (c *MockComponent) Runner() host.Runner
type MockComponentRunner ¶
type MockComponentRunner struct {
// contains filtered or unexported fields
}
func (*MockComponentRunner) Start ¶
func (c *MockComponentRunner) Start()
func (*MockComponentRunner) Stop ¶
func (c *MockComponentRunner) Stop()
type ServiceProvider ¶
type ServiceProvider struct {
RedisClient *MockRedis
}
func (*ServiceProvider) Init ¶
func (provider *ServiceProvider) Init(conf *Config, app *App)
Click to show internal directories.
Click to hide internal directories.