Documentation
¶
Index ¶
- type Container
- func (c *Container) CheckHealth(ctx context.Context) []*healthy.Error
- func (c *Container) Close() error
- func (c *Container) CloseWithContext(ctx context.Context) error
- func (c *Container) OnClose(closer func() error)
- func (c *Container) OnHealthCheck(checker func() *healthy.Error)
- func (c *Container) RunHealthCheck(ticker, timeout time.Duration, handler func(errs []*healthy.Error))
- type MultiError
- type Provider
- func (f *Provider[T]) Get(c *Container) (t *T, err error)
- func (f *Provider[T]) GetNew(c *Container) (*T, error)
- func (f *Provider[T]) MustGet(c *Container) *T
- func (f *Provider[T]) MustGetNew(c *Container) *T
- func (f *Provider[T]) MustRefresh(c *Container) *T
- func (f *Provider[T]) Refresh(c *Container) (ins *T, err error)
- func (f *Provider[T]) Set(c *Container, ins *T)
- type Providers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer() *Container
func (*Container) CheckHealth ¶
func (*Container) CloseWithContext ¶
func (*Container) OnHealthCheck ¶
type MultiError ¶
type MultiError []error
func (MultiError) Error ¶
func (m MultiError) Error() string
type Provider ¶
type Provider[T any] struct { // contains filtered or unexported fields }
func (*Provider[T]) MustGetNew ¶
func (*Provider[T]) MustRefresh ¶
Click to show internal directories.
Click to hide internal directories.