Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface { Register(provider ServiceProvider) Run() error Close() error }
Application interface
type BootableProvider ¶
type BootableProvider interface { Priority() int Start(app service.Container) error Stop(app service.Container) error }
BootableProvider interface
type By ¶
type By func(left, right BootableProvider) bool
By sorter
func (By) Sort ¶
func (by By) Sort(providers []BootableProvider)
Sort is a method on the function type, By, that sorts the argument slice according to the function.
type EventListenerProvider ¶
type EventListenerProvider interface {
Subscribe(app service.Container, dispatcher eventemitter.EventEmitter)
}
EventListenerProvider interface
type MockBootableProvider ¶
MockBootableProvider is an autogenerated mock type for the BootableProvider type
func (*MockBootableProvider) Priority ¶
func (_m *MockBootableProvider) Priority() int
Priority provides a mock function with given fields:
type MockEventListenerProvider ¶
MockEventListenerProvider is an autogenerated mock type for the EventListenerProvider type
func (*MockEventListenerProvider) Subscribe ¶
func (_m *MockEventListenerProvider) Subscribe(app service.Container, dispatcher eventemitter.EventEmitter)
Subscribe provides a mock function with given fields: app, dispatcher
type MockServiceProvider ¶
MockServiceProvider is an autogenerated mock type for the ServiceProvider type
func (*MockServiceProvider) Register ¶
func (_m *MockServiceProvider) Register(app service.Container)
Register provides a mock function with given fields: app
type ServiceProvider ¶
type ServiceProvider interface {
Register(app service.Container)
}
ServiceProvider interface