Documentation
¶
Index ¶
- func ConnectServices(services ...string) any
- func GetService(serviceName string) any
- 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 Run(fn func())
- func RunFinally(fn func(), finallyFn func())
- func ServiceArray(srvs ...any) []any
- func StartContextualizedApplication(packageServices ...[]any)
- type AppContext
- type ConnectableService
- type Disposable
- type EnvValue
- func (instance *EnvValue) AsBool() bool
- func (instance *EnvValue) AsBoolDefault(def bool) bool
- func (instance *EnvValue) AsInt() int
- func (instance *EnvValue) AsInt64() int64
- func (instance *EnvValue) AsInt64Array() []int64
- func (instance *EnvValue) AsInt64ArrayDefault() []int64
- func (instance *EnvValue) AsInt64Default(def int64) int64
- 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
- func (instance *EnvValue) Name() string
- func (instance *EnvValue) String() string
- type Initializable
- type LifecycleAware
- type Named
- type Service
- type ServiceConnector
- type ServiceProvider
- type TimerTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectServices ¶
func GetService ¶ added in v0.8.1
func IsDebugLogEnabled ¶
func IsDebugLogEnabled() bool
IsDebugLogEnabled Deprecated: use logger.Configure
func RunFinally ¶ added in v0.8.1
func RunFinally(fn func(), finallyFn func())
func ServiceArray ¶
func StartContextualizedApplication ¶
func StartContextualizedApplication(packageServices ...[]any)
Types ¶
type AppContext ¶
type ConnectableService ¶
type Disposable ¶ added in v0.8.0
type Disposable interface {
Dispose()
}
type EnvValue ¶
type EnvValue struct {
// contains filtered or unexported fields
}
func GetEnvCustom ¶ added in v0.9.0
func GetEnvCustomOrDefault ¶ added in v0.9.0
func (*EnvValue) AsBoolDefault ¶
func (*EnvValue) AsInt64Array ¶ added in v0.9.0
func (*EnvValue) AsInt64ArrayDefault ¶ added in v0.9.0
func (*EnvValue) AsInt64Default ¶ added in v0.9.0
func (*EnvValue) AsIntArray ¶
func (*EnvValue) AsIntArrayDefault ¶
func (*EnvValue) AsIntDefault ¶
func (*EnvValue) AsStringArray ¶
func (*EnvValue) AsStringArrayDefault ¶
func (*EnvValue) AsStringDefault ¶
type Initializable ¶ added in v0.8.0
type Initializable interface {
Init(serviceProvider ServiceProvider)
}
type LifecycleAware ¶
type LifecycleAware interface {
AfterStart()
BeforeStop()
}
type Service ¶
type Service interface {
Initializable
Named
Disposable
}
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)
type ServiceProvider ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.