Documentation
¶
Index ¶
- func Configure[T any, P interface{ ... }](srv P, c Config) application.Service
- type Config
- type Error
- type Shutdowner
- type StartupShutdowner
- func (s *StartupShutdowner) Configure(c Config)
- func (s *StartupShutdowner) Id() int
- func (s *StartupShutdowner) ServiceShutdown() error
- func (s *StartupShutdowner) ServiceStartup(ctx context.Context, options application.ServiceOptions) error
- func (s *StartupShutdowner) ShutdownSeq() int64
- func (s *StartupShutdowner) StartupSeq() int64
- type Startupper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Id int
T *testing.T
Seq *atomic.Int64
Options application.ServiceOptions
StartupErr bool
ShutdownErr bool
}
type Shutdowner ¶
type Shutdowner struct {
Config
// contains filtered or unexported fields
}
func (*Shutdowner) Configure ¶
func (s *Shutdowner) Configure(c Config)
func (*Shutdowner) Id ¶
func (s *Shutdowner) Id() int
func (*Shutdowner) ServiceShutdown ¶
func (s *Shutdowner) ServiceShutdown() error
func (*Shutdowner) ShutdownSeq ¶
func (s *Shutdowner) ShutdownSeq() int64
type StartupShutdowner ¶
type StartupShutdowner struct {
Config
// contains filtered or unexported fields
}
func (*StartupShutdowner) Configure ¶
func (s *StartupShutdowner) Configure(c Config)
func (*StartupShutdowner) Id ¶
func (s *StartupShutdowner) Id() int
func (*StartupShutdowner) ServiceShutdown ¶
func (s *StartupShutdowner) ServiceShutdown() error
func (*StartupShutdowner) ServiceStartup ¶
func (s *StartupShutdowner) ServiceStartup(ctx context.Context, options application.ServiceOptions) error
func (*StartupShutdowner) ShutdownSeq ¶
func (s *StartupShutdowner) ShutdownSeq() int64
func (*StartupShutdowner) StartupSeq ¶
func (s *StartupShutdowner) StartupSeq() int64
type Startupper ¶
type Startupper struct {
Config
// contains filtered or unexported fields
}
func (*Startupper) Configure ¶
func (s *Startupper) Configure(c Config)
func (*Startupper) Id ¶
func (s *Startupper) Id() int
func (*Startupper) ServiceStartup ¶
func (s *Startupper) ServiceStartup(ctx context.Context, options application.ServiceOptions) error
func (*Startupper) StartupSeq ¶
func (s *Startupper) StartupSeq() int64
Click to show internal directories.
Click to hide internal directories.