Documentation ¶
Index ¶
- Constants
- func GracefulStart(port int, timeout time.Duration, engine GracefulEngine, logger GracefulLogger)
- type Application
- func (app *Application) Cache(key string) cache.Manager
- func (app *Application) Config() config.Manager
- func (app *Application) DB(key string) db.Manager
- func (app *Application) DefaultCache() cache.Manager
- func (app *Application) DefaultDB() db.Manager
- func (app *Application) DefaultScheduler() scheduler.Manager
- func (app *Application) Env() string
- func (app *Application) FeatureFlag() fflag.Manager
- func (app *Application) GRPC(context string) rpc.ClientManager
- func (app *Application) HasCache() bool
- func (app *Application) HasDB() bool
- func (app *Application) HasScheduler() bool
- func (app *Application) Log() logger.Manager
- func (app *Application) MaskedFields() []string
- func (app *Application) MaskedHeaders() []string
- func (app *Application) Metrics() telemetry.MetricsManager
- func (app *Application) MiddlewareTelemetry() interface{}
- func (app *Application) Name() string
- func (app *Application) Port() int
- func (app *Application) REST(context string) rest.Manager
- func (app *Application) Run(run func(a *Application))
- func (app *Application) RunAsDaemon(run func(a *Application))
- func (app *Application) RunGrpcServer(run func(app *Application, rpcServer *grpc.Server))
- func (app *Application) RunRestApiUseEcho(run func(a *Application, e *echo.Echo))
- func (app *Application) RunUseEcho(run func(a *Application, e *echo.Echo))
- func (app *Application) SOAP(context string) soap.Manager
- func (app *Application) Scheduler(key string) scheduler.Manager
- func (app *Application) Scope() string
- func (app *Application) Telemetry() telemetry.Manager
- func (app *Application) Version() string
- func (app *Application) WithCaches() IApplication
- func (app *Application) WithDatabases() IApplication
- func (app *Application) WithFeatureFlag() IApplication
- func (app *Application) WithGrpcClients() IApplication
- func (app *Application) WithRestClients() IApplication
- func (app *Application) WithSchedulers() IApplication
- func (app *Application) WithSoapClients() IApplication
- type GracefulEngine
- type GracefulLogger
- type IApplication
- type IFeatureFlag
- type IMonitoring
- type IRemotes
- type IRun
- type IScheduler
- type IStorage
- type Option
Constants ¶
View Source
const (
DefaultKey = "default"
)
Variables ¶
This section is empty.
Functions ¶
func GracefulStart ¶ added in v0.1.1
func GracefulStart(port int, timeout time.Duration, engine GracefulEngine, logger GracefulLogger)
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func (*Application) Config ¶
func (app *Application) Config() config.Manager
func (*Application) DefaultCache ¶
func (app *Application) DefaultCache() cache.Manager
func (*Application) DefaultDB ¶
func (app *Application) DefaultDB() db.Manager
func (*Application) DefaultScheduler ¶
func (app *Application) DefaultScheduler() scheduler.Manager
func (*Application) Env ¶
func (app *Application) Env() string
func (*Application) FeatureFlag ¶
func (app *Application) FeatureFlag() fflag.Manager
func (*Application) GRPC ¶
func (app *Application) GRPC(context string) rpc.ClientManager
func (*Application) HasCache ¶
func (app *Application) HasCache() bool
func (*Application) HasDB ¶
func (app *Application) HasDB() bool
func (*Application) HasScheduler ¶
func (app *Application) HasScheduler() bool
func (*Application) Log ¶
func (app *Application) Log() logger.Manager
func (*Application) MaskedFields ¶
func (app *Application) MaskedFields() []string
func (*Application) MaskedHeaders ¶
func (app *Application) MaskedHeaders() []string
func (*Application) Metrics ¶
func (app *Application) Metrics() telemetry.MetricsManager
func (*Application) MiddlewareTelemetry ¶
func (app *Application) MiddlewareTelemetry() interface{}
func (*Application) Name ¶
func (app *Application) Name() string
func (*Application) Port ¶ added in v0.1.1
func (app *Application) Port() int
func (*Application) Run ¶
func (app *Application) Run(run func(a *Application))
func (*Application) RunAsDaemon ¶
func (app *Application) RunAsDaemon(run func(a *Application))
func (*Application) RunGrpcServer ¶
func (app *Application) RunGrpcServer(run func(app *Application, rpcServer *grpc.Server))
func (*Application) RunRestApiUseEcho ¶
func (app *Application) RunRestApiUseEcho(run func(a *Application, e *echo.Echo))
func (*Application) RunUseEcho ¶ added in v0.1.1
func (app *Application) RunUseEcho(run func(a *Application, e *echo.Echo))
func (*Application) Scope ¶
func (app *Application) Scope() string
func (*Application) Telemetry ¶
func (app *Application) Telemetry() telemetry.Manager
func (*Application) Version ¶
func (app *Application) Version() string
func (*Application) WithCaches ¶
func (app *Application) WithCaches() IApplication
func (*Application) WithDatabases ¶
func (app *Application) WithDatabases() IApplication
func (*Application) WithFeatureFlag ¶
func (app *Application) WithFeatureFlag() IApplication
func (*Application) WithGrpcClients ¶
func (app *Application) WithGrpcClients() IApplication
func (*Application) WithRestClients ¶
func (app *Application) WithRestClients() IApplication
func (*Application) WithSchedulers ¶
func (app *Application) WithSchedulers() IApplication
func (*Application) WithSoapClients ¶
func (app *Application) WithSoapClients() IApplication
type GracefulEngine ¶ added in v0.1.1
type GracefulLogger ¶ added in v0.1.1
type GracefulLogger interface { Info(i ...interface{}) Fatal(i ...interface{}) }
type IApplication ¶
type IApplication interface { Name() string Version() string Env() string Config() config.Manager IMonitoring IRemotes IRun IStorage }
func NewApp ¶
func NewApp(opts ...Option) IApplication
type IFeatureFlag ¶
type IFeatureFlag interface { WithFeatureFlag() IApplication FeatureFlag() fflag.Manager }
type IMonitoring ¶
type IRemotes ¶
type IRemotes interface { WithRestClients() IApplication WithSoapClients() IApplication WithGrpcClients() IApplication REST(context string) rest.Manager SOAP(context string) soap.Manager GRPC(context string) rpc.ClientManager }
type IRun ¶
type IRun interface { Run(run func(a *Application)) RunAsDaemon(run func(a *Application)) RunUseEcho(run func(app *Application, e *echo.Echo)) RunRestApiUseEcho(run func(app *Application, e *echo.Echo)) RunGrpcServer(run func(app *Application, rpcServer *grpc.Server)) }
type IScheduler ¶
Click to show internal directories.
Click to hide internal directories.