shutdown

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer interface {
	Close(context.Context) error
}

type Remover

type Remover interface {
	Remove(context.Context, ...string) error
}

type Runtime

type Runtime interface {
	Close(context.Context) error
}

type ShutdownConnection

type ShutdownConnection interface {
	Execute(context.Context) error
}

type ShutdownConnectionUsecase

type ShutdownConnectionUsecase struct {
	// contains filtered or unexported fields
}

func NewShutdownConnectionUsecase

func NewShutdownConnectionUsecase(
	registry SubscriptionRegistry,
	subscription Remover,
	runtime Closer,
	transport Closer,
) *ShutdownConnectionUsecase

func (*ShutdownConnectionUsecase) Execute

func (usecase *ShutdownConnectionUsecase) Execute(ctx context.Context) error

type SubscriptionRegistry

type SubscriptionRegistry interface {
	Active() []string
}

type Transport

type Transport interface {
	Close(context.Context) error
}

Jump to

Keyboard shortcuts

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