server

package
v0.0.0-...-4aeb316 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package server defines the Server interface that a requester server must follow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	// ServeRequester starts the server and listens for incoming requests. The provided function fn
	// will be executed for each such requests.
	//
	// It will block until the server is closed. When the provided context terminates, the server
	// will gracefully shutdown.
	ServeRequester(ctx context.Context, fn requester.Fn) error
}

Server is the interface that defines a requester server.

Directories

Path Synopsis
Package httpserver defines the HTTPServer type that listens to requests over HTTP.
Package httpserver defines the HTTPServer type that listens to requests over HTTP.

Jump to

Keyboard shortcuts

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