services

package
v3.0.0-alpha.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure[T any, P interface {
	*T
	Configure(Config)
}](srv P, c Config) application.Service

Types

type Config

type Config struct {
	Id          int
	T           *testing.T
	Seq         *atomic.Int64
	Options     application.ServiceOptions
	StartupErr  bool
	ShutdownErr bool
}

type Error

type Error struct {
	Id int
}

func (*Error) Error

func (e *Error) Error() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL