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. |
Click to show internal directories.
Click to hide internal directories.