package
0.0.0-20250220221206-5e0dae4b333d
Repository: https://github.com/petchells/nrtm4client.git
Documentation: pkg.go.dev
# Functions
NewServer creates a new server on `port`.
# Variables
ErrNoPrivilege user does not have the privilege to view resource.
ErrResponseUnauthorized returned when user has no session or is not authorized to execute method.
# Structs
Handler which implements the JSONRPC 2.0 specification at https://www.jsonrpc.org/specification.
JSONRPCError An error.
JSONRPCRequest A request.
JSONRPCResponse A response.
Server needs to know what port to run on.
WebSession is the user's session.
# Interfaces
API provides functions that are bound to the incoming request by the RPC handler
If the implementation returns false, the RPC function will not be called and the http handler return 403 FORBIDDEN.