server

package
v0.0.0-...-cff5d44 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener interface {
	// Listen is used to listen for requests
	// The Listen method returns an error
	// The error is nil if the server is listening successfully
	Listen() error

	// Shutdown is used to shutdown the server
	// The Shutdown method returns an error
	// The error is nil if the server is shutdown successfully
	Shutdown(context.Context) error
}

Server is the interface that must be implemented by a server It is used to listen for requests The Listen method is used to listen for requests The Listen method returns an error The error is nil if the server is listening successfully

Jump to

Keyboard shortcuts

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