server

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	// Start is used to start the server
	Start(ctx context.Context) error

	// Stop is used to stop the server
	Stop(ctx context.Context) error

	// Restart is used to restart the server
	Restart(ctx context.Context) error

	// IsRunning return true if the server is currently running
	IsRunning() bool
}

type WaitNotify

type WaitNotify interface {
	StartWaitNotify(ctx context.Context)
	StopWaitNotify()
}

Jump to

Keyboard shortcuts

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