Documentation
¶
Index ¶
- func IsDebugLogEnabled() bool
- func LogDebug(tag string, data ...any)
- func LogError(tag string, data ...any)
- func LogFatal(tag string, data ...any)
- func LogInfo(tag string, data ...any)
- func StartContextualizedApplication(packageServices ...[]Service)
- type AppContext
- type ConnectableService
- type EnvValue
- func (instance *EnvValue) AsBool() bool
- func (instance *EnvValue) AsBoolDefault(def bool) bool
- func (instance *EnvValue) AsInt() int
- func (instance *EnvValue) AsIntArray() []int
- func (instance *EnvValue) AsIntArrayDefault() []int
- func (instance *EnvValue) AsIntDefault(def int) int
- func (instance *EnvValue) AsMap() map[string]*EnvValue
- func (instance *EnvValue) AsString() string
- func (instance *EnvValue) AsStringArray() []string
- func (instance *EnvValue) AsStringArrayDefault(def []string) []string
- func (instance *EnvValue) AsStringDefault(def string) string
- func (instance *EnvValue) IsPresent() bool
- type LifecycleAware
- type Service
- type ServiceConnector
- type TimerTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDebugLogEnabled ¶
func IsDebugLogEnabled() bool
IsDebugLogEnabled Deprecated: use logger.Configure
func StartContextualizedApplication ¶
func StartContextualizedApplication(packageServices ...[]Service)
Types ¶
type AppContext ¶
type AppContext interface {
Register(serviceInstance Service) AppContext
Start()
Stop()
GetService(serviceName string) Service
}
func ApplicationContext ¶
func ApplicationContext() AppContext
type ConnectableService ¶
type EnvValue ¶
type EnvValue struct {
// contains filtered or unexported fields
}
func (*EnvValue) AsBoolDefault ¶
func (*EnvValue) AsIntArray ¶
func (*EnvValue) AsIntArrayDefault ¶
func (*EnvValue) AsIntDefault ¶
func (*EnvValue) AsStringArray ¶
func (*EnvValue) AsStringArrayDefault ¶
func (*EnvValue) AsStringDefault ¶
type LifecycleAware ¶
type LifecycleAware interface {
Service
AfterStart()
BeforeStop()
}
type Service ¶
type Service interface {
Init(serviceProvider func(serviceName string) Service)
Name() string
Dispose()
}
func ConnectServices ¶
func ServiceArray ¶
type ServiceConnector ¶
func NewServiceConnector ¶
func NewServiceConnector[In any, Out any](service ConnectableService[In, Out]) ServiceConnector[In, Out]
func (*ServiceConnector[In, Out]) AfterStart ¶
func (connector *ServiceConnector[In, Out]) AfterStart()
func (*ServiceConnector[In, Out]) BeforeStop ¶
func (connector *ServiceConnector[In, Out]) BeforeStop()
func (*ServiceConnector[In, Out]) Send ¶
func (connector *ServiceConnector[In, Out]) Send(msg Out)
Click to show internal directories.
Click to hide internal directories.