package
Version:
v0.7.5
Opens a new window with list of versions in this module.
Published: Jun 3, 2023
License: MIT
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package server represents the webserver that powers S&D.
Option represent an configuration option for the server.
func WithAdditionalRPC(fnName string, fn interface{}) Option
WithAdditionalRPC adds an RPC function to the Server.
WithDebug sets the debug state of the Server.
WithPrinter registers a printer in the Server.
Server represents an instance of the S&D server.
New creates a new instance of the S&D server.
Start starts the server with the given bind address.
Examples:
- ":7232" will accept all connections on port 7232
- "127.0.0.1:7232" will only accept local connections on port 7232
Source Files
¶
Click to show internal directories.
Click to hide internal directories.