Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶
func NewHttpClient(serverAddress string) HttpClient
NewHttpClient will return a new HttpClient object
func (*HttpClient) Call ¶
func (hc *HttpClient) Call(method string, request interface{}, reply interface{}) error
Call will execute the specified method on the RPC server
func (*HttpClient) Connect ¶
func (hc *HttpClient) Connect() error
Connect will attempt to connect this RPC client to the RPC server specified when this object was created
func (*HttpClient) Disconnect ¶
func (hc *HttpClient) Disconnect() error
Disconnect will close the HTTP connection to the RPC Server
func (*HttpClient) LoggerName ¶ added in v0.4.0
func (hc *HttpClient) LoggerName(name string)
LoggerName exposes the logger.Name field
func (*HttpClient) LoggerVerbosity ¶ added in v0.4.0
func (hc *HttpClient) LoggerVerbosity(verbosity bslogger.Verbosity)
LoggerVerbosity exposes the logger.Verbosity field
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(object interface{}, address string) HttpServer
NewHttpServer will return a new HttpServer object
func (*HttpServer) LoggerName ¶ added in v0.4.0
func (hs *HttpServer) LoggerName(name string)
LoggerName exposes the loggers.Name field
func (*HttpServer) LoggerVerbosity ¶ added in v0.4.0
func (hs *HttpServer) LoggerVerbosity(verbosity bslogger.Verbosity)
LoggerVerbosity exposes the logger.Verbosity field
func (*HttpServer) Run ¶
func (hs *HttpServer) Run() error
Run will start serving the object via RPC over HTTP
func (*HttpServer) Stop ¶
func (hs *HttpServer) Stop() error
Stop is called to shut down the server by decrementing the wait group
func (*HttpServer) Wait ¶
func (hs *HttpServer) Wait()
Wait can be called to have the code wait for the server to shut down before continuing
type HttpServerClient ¶
type HttpServerClient struct { Client HttpClient Server HttpServer }
func NewHttpServerClient ¶
func NewHttpServerClient(object interface{}, serverAddress string, clientAddress string) HttpServerClient
type TcpClient ¶
type TcpClient struct {
// contains filtered or unexported fields
}
func NewTcpClient ¶
NewTcpClient will return a new TcpClient object
func (*TcpClient) Connect ¶
Connect will attempt to connect this RPC client to the RPC server specified when this object was created
func (*TcpClient) Disconnect ¶
Disconnect will close the TCP connection to the RPC Server
func (*TcpClient) LoggerName ¶ added in v0.4.0
LoggerName exposes the logger.Name field
func (*TcpClient) LoggerVerbosity ¶ added in v0.4.0
LoggerVerbosity exposes the logger.Verbosity field
type TcpServer ¶
type TcpServer struct {
// contains filtered or unexported fields
}
func NewTcpServer ¶
NewTcpServer will return a new TcpServer object
func (*TcpServer) LoggerName ¶ added in v0.4.0
LoggerName exposes the logger.Name field
func (*TcpServer) LoggerVerbosity ¶ added in v0.4.0
LoggerVerbosity exposes the logger.Verbosity field
type TcpServerClient ¶
func NewTcpServerClient ¶
func NewTcpServerClient(object interface{}, serverAddress string, clientAddress string) TcpServerClient