//
pkg.gl
Category
github.com/petomalina/xrpc/v2
pkg
server
package
2.3.0
Repository:
https://github.com/petomalina/xrpc.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
7
Dependents
3
Files
111 SLOC
#
Functions
New
New creates a new server instance on the given port with the given timeout If no port is given, RandomPort is used instead.
Start
Start bootstraps a default http server and starts handling requests.
WithHost
WithHost sets the host that the server binds to.
#
Constants
DefaultTimeout
DefaultTimeout represent a default value for the timeout option of the Server.
RandomPort
RandomPort is a constant used to let the system decide on the port for the server.
#
Structs
Server
Server wraps an implementation of a HTTP server with graceful shutdown.
#
Type aliases
Option
Option is an extendable builder for server options.