patterns

package
v0.0.0-...-8ffcee5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusDisconnected = -100
	StatusConnected    = 100
)
View Source
var (
	StatusStopped = -200
	StatusStarted = 200
)

Functions

This section is empty.

Types

type Connectable

type Connectable interface {
	Connect(ctx context.Context) error

	Readiness() error
	Liveness() error

	Disconnect(ctx context.Context) error
}

Connectable interface is a contract for all external services that our application will connect to

type Runnable

type Runnable interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	Run(ctx context.Context) error
}

Runnable interface is a contract for all services that our application will run

Jump to

Keyboard shortcuts

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