Documentation ¶
Overview ¶
Package rpc provides the rpc server which is responsible for handling requests from the client.
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 `yaml:"Port"` // CertFile is the path to the certificate file. CertFile string `yaml:"CertFile"` // KeyFile is the path to the key file. KeyFile string `yaml:"KeyFile"` }
Config is the configuration for creating a Server instance.
Directories ¶
Path | Synopsis |
---|---|
Package auth provides authentication and authorization for RPCs.
|
Package auth provides authentication and authorization for RPCs. |
Package connecthelper provides helper functions for connectRPC.
|
Package connecthelper provides helper functions for connectRPC. |
Package interceptors provides the interceptors for RPC.
|
Package interceptors provides the interceptors for RPC. |
Package metadata provides metadata for RPC.
|
Package metadata provides metadata for RPC. |
Package testcases contains testcases for server
|
Package testcases contains testcases for server |
Click to show internal directories.
Click to hide internal directories.