Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidRPCPort occurs when the port in the config is invalid. ErrInvalidRPCPort = errors.New("invalid port number for RPC server") // ErrInvalidCertFile occurs when the certificate file is invalid. ErrInvalidCertFile = errors.New("invalid cert file for RPC server") // ErrInvalidKeyFile occurs when the key file is invalid. ErrInvalidKeyFile = errors.New("invalid key file for RPC server") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Port is the port number for the RPC server. Port int // CertFile is the path to the certificate file. CertFile string // KeyFile is the path to the key file. KeyFile string // MaxRequestBytes is the maximum client request size in bytes the server will accept. MaxRequestBytes uint64 }
Config is the configuration for creating a Server instance.
Click to show internal directories.
Click to hide internal directories.