package
Version:
v1.0.0-rc14
Opens a new window with list of versions in this module.
Published: Sep 9, 2024
License: MIT
Opens a new window with license information.
Imports: 21
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.
Close closes the server and all its connections.
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.