server

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunNbr added in v1.10.9

func RunNbr(max uint8, chk FunCheck, run FunRun) bool

func RunTick added in v1.10.9

func RunTick(ctx context.Context, tick, max time.Duration, chk FunCheck, run FunRun) bool

Types

type Action added in v1.10.9

type Action func(ctx context.Context) error

type FunCheck added in v1.10.9

type FunCheck func() bool

type FunRun added in v1.10.9

type FunRun func()

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()
}

Directories

Path Synopsis
runner

Jump to

Keyboard shortcuts

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