Documentation ¶
Index ¶
- type HTTP
- func (st *HTTP) AddClient(client generic.Client, idx int)
- func (st *HTTP) AvailableConnectionFromPool() (available bool, idx int)
- func (st *HTTP) CloseConnection()
- func (st *HTTP) ConnectToServer(ip, port string)
- func (st *HTTP) GetClient(idx int) (client generic.Client)
- func (st *HTTP) GetClientFromAddr(addr string) (client generic.Client)
- func (st *HTTP) GetClients() (client []*generic.Client)
- func (st *HTTP) ReadString() (message string)
- func (st *HTTP) Receive() ([]byte, error)
- func (st *HTTP) ResetClients()
- func (st *HTTP) Send(msgToServer []byte) error
- func (st *HTTP) StartServer(ip, port string, initialConnections int)
- func (st *HTTP) StopServer()
- func (st *HTTP) WaitForConnection(cliIdx int) (cl *generic.Client)
- func (st *HTTP) WriteString(message string)
- type HTTP2
- func (st *HTTP2) AddClient(client generic.Client, idx int)
- func (st *HTTP2) AvailableConnectionFromPool() (available bool, idx int)
- func (st *HTTP2) CloseConnection()
- func (st *HTTP2) ConnectToServer(ip, port string)
- func (st *HTTP2) GetClient(idx int) (client generic.Client)
- func (st *HTTP2) GetClientFromAddr(addr string) (client generic.Client)
- func (st *HTTP2) GetClients() (client []*generic.Client)
- func (st *HTTP2) ReadString() (message string)
- func (st *HTTP2) Receive() ([]byte, error)
- func (st *HTTP2) ResetClients()
- func (st *HTTP2) Send(msgToServer []byte) error
- func (st *HTTP2) StartServer(ip, port string, initialConnections int)
- func (st *HTTP2) StopServer()
- func (st *HTTP2) WaitForConnection(cliIdx int) (cl *generic.Client)
- func (st *HTTP2) WriteString(message string)
- type HTTP2Client
- func (cl *HTTP2Client) AdaptId() int
- func (cl *HTTP2Client) Address() string
- func (cl *HTTP2Client) CloseConnection()
- func (cl *HTTP2Client) Connection() interface{}
- func (cl *HTTP2Client) Read(b []byte) (err error)
- func (cl *HTTP2Client) ReadString() (message string)
- func (cl *HTTP2Client) Receive() (msg []byte, err error)
- func (cl *HTTP2Client) Send(msg []byte) error
- func (cl *HTTP2Client) SetAdaptId(adaptId int)
- func (cl *HTTP2Client) WriteString(message string)
- type HTTP2Request
- type HTTPClient
- func (cl *HTTPClient) AdaptId() int
- func (cl *HTTPClient) Address() string
- func (cl *HTTPClient) CloseConnection()
- func (cl *HTTPClient) Connection() interface{}
- func (cl *HTTPClient) Read(b []byte) (err error)
- func (cl *HTTPClient) ReadString() (message string)
- func (cl *HTTPClient) Receive() (msg []byte, err error)
- func (cl *HTTPClient) Send(msg []byte) error
- func (cl *HTTPClient) SetAdaptId(adaptId int)
- func (cl *HTTPClient) WriteString(message string)
- type HTTPRequest
- type HTTPS
- func (st *HTTPS) AddClient(client generic.Client, idx int)
- func (st *HTTPS) AvailableConnectionFromPool() (available bool, idx int)
- func (st *HTTPS) CloseConnection()
- func (st *HTTPS) ConnectToServer(ip, port string)
- func (st *HTTPS) GetClient(idx int) (client generic.Client)
- func (st *HTTPS) GetClientFromAddr(addr string) (client generic.Client)
- func (st *HTTPS) GetClients() (client []*generic.Client)
- func (st *HTTPS) ReadString() (message string)
- func (st *HTTPS) Receive() ([]byte, error)
- func (st *HTTPS) ResetClients()
- func (st *HTTPS) Send(msgToServer []byte) error
- func (st *HTTPS) StartServer(ip, port string, initialConnections int)
- func (st *HTTPS) StopServer()
- func (st *HTTPS) WaitForConnection(cliIdx int) (cl *generic.Client)
- func (st *HTTPS) WriteString(message string)
- type HTTPSClient
- func (cl *HTTPSClient) AdaptId() int
- func (cl *HTTPSClient) Address() string
- func (cl *HTTPSClient) CloseConnection()
- func (cl *HTTPSClient) Connection() interface{}
- func (cl *HTTPSClient) Read(b []byte) (err error)
- func (cl *HTTPSClient) ReadString() (message string)
- func (cl *HTTPSClient) Receive() (msg []byte, err error)
- func (cl *HTTPSClient) Send(msg []byte) error
- func (cl *HTTPSClient) SetAdaptId(adaptId int)
- func (cl *HTTPSClient) WriteString(message string)
- type HTTPSRequest
- type RPC
- func (st *RPC) AddClient(client generic.Client, idx int)
- func (st *RPC) AvailableConnectionFromPool() (available bool, idx int)
- func (st *RPC) Call(serviceMethod string, args any, reply any) (err error)
- func (st *RPC) CloseConnection()
- func (st *RPC) ConnectToServer(ip, port string)
- func (st *RPC) GetClient(idx int) (client generic.Client)
- func (st *RPC) GetClientFromAddr(addr string) (client generic.Client)
- func (st *RPC) GetClients() (client []*generic.Client)
- func (st *RPC) ReadString() (message string)
- func (st *RPC) Receive() ([]byte, error)
- func (st *RPC) ResetClients()
- func (st *RPC) Send(msgToServer []byte) error
- func (st *RPC) StartServer(ip, port string, initialConnections int)
- func (st *RPC) StopServer()
- func (st *RPC) WaitForConnection(cliIdx int) (cl *generic.Client)
- func (st *RPC) WriteString(message string)
- type RPCClient
- func (cl *RPCClient) AdaptId() int
- func (cl *RPCClient) Address() string
- func (cl *RPCClient) CloseConnection()
- func (cl *RPCClient) Connection() interface{}
- func (cl *RPCClient) Read(b []byte) (err error)
- func (cl *RPCClient) ReadString() (message string)
- func (cl *RPCClient) Receive() (msg []byte, err error)
- func (cl *RPCClient) Send(msg []byte) error
- func (cl *RPCClient) SetAdaptId(adaptId int)
- func (cl *RPCClient) WriteString(message string)
- type RPCRequest
- type TCP
- func (st *TCP) AddClient(client generic.Client, idx int)
- func (st *TCP) AvailableConnectionFromPool() (available bool, idx int)
- func (st *TCP) CloseConnection()
- func (st *TCP) ConnectToServer(ip, port string)
- func (st *TCP) GetClient(idx int) (client generic.Client)
- func (st *TCP) GetClientFromAddr(addr string) (client generic.Client)
- func (st *TCP) GetClients() (client []*generic.Client)
- func (st *TCP) ReadString() (message string)
- func (st *TCP) Receive() ([]byte, error)
- func (st *TCP) ResetClients()
- func (st *TCP) Send(msgToServer []byte) error
- func (st *TCP) StartServer(ip, port string, initialConnections int)
- func (st *TCP) StopServer()
- func (st *TCP) WaitForConnection(cliIdx int) (cl *generic.Client)
- func (st *TCP) WriteString(message string)
- type TCPClient
- func (cl *TCPClient) AdaptId() int
- func (cl *TCPClient) Address() string
- func (cl *TCPClient) CloseConnection()
- func (cl *TCPClient) Connection() interface{}
- func (cl *TCPClient) Read(b []byte) (err error)
- func (cl *TCPClient) ReadString() (message string)
- func (cl *TCPClient) Receive() (msg []byte, err error)
- func (cl *TCPClient) Send(msg []byte) error
- func (cl *TCPClient) SetAdaptId(adaptId int)
- func (cl *TCPClient) WriteString(message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) AvailableConnectionFromPool ¶
func (*HTTP) CloseConnection ¶
func (st *HTTP) CloseConnection()
func (*HTTP) ConnectToServer ¶
func (*HTTP) GetClientFromAddr ¶
func (*HTTP) GetClients ¶
func (*HTTP) ReadString ¶
func (*HTTP) ResetClients ¶
func (st *HTTP) ResetClients()
func (*HTTP) StartServer ¶
func (*HTTP) StopServer ¶
func (st *HTTP) StopServer()
func (*HTTP) WriteString ¶
type HTTP2 ¶
type HTTP2 struct {
// contains filtered or unexported fields
}
func (*HTTP2) AvailableConnectionFromPool ¶
func (*HTTP2) CloseConnection ¶
func (st *HTTP2) CloseConnection()
func (*HTTP2) ConnectToServer ¶
func (*HTTP2) GetClientFromAddr ¶
func (*HTTP2) GetClients ¶
func (*HTTP2) ReadString ¶
func (*HTTP2) ResetClients ¶
func (st *HTTP2) ResetClients()
func (*HTTP2) StartServer ¶
func (*HTTP2) StopServer ¶
func (st *HTTP2) StopServer()
func (*HTTP2) WaitForConnection ¶
func (*HTTP2) WriteString ¶
type HTTP2Client ¶
type HTTP2Client struct { Ip string // contains filtered or unexported fields }
func (*HTTP2Client) AdaptId ¶
func (cl *HTTP2Client) AdaptId() int
func (*HTTP2Client) Address ¶
func (cl *HTTP2Client) Address() string
func (*HTTP2Client) CloseConnection ¶
func (cl *HTTP2Client) CloseConnection()
func (*HTTP2Client) Connection ¶
func (cl *HTTP2Client) Connection() interface{}
func (*HTTP2Client) Read ¶
func (cl *HTTP2Client) Read(b []byte) (err error)
func (*HTTP2Client) ReadString ¶
func (cl *HTTP2Client) ReadString() (message string)
func (*HTTP2Client) Receive ¶
func (cl *HTTP2Client) Receive() (msg []byte, err error)
func (*HTTP2Client) Send ¶
func (cl *HTTP2Client) Send(msg []byte) error
func (*HTTP2Client) SetAdaptId ¶
func (cl *HTTP2Client) SetAdaptId(adaptId int)
func (*HTTP2Client) WriteString ¶
func (cl *HTTP2Client) WriteString(message string)
type HTTP2Request ¶
type HTTP2Request struct {
// contains filtered or unexported fields
}
func (HTTP2Request) Request ¶
func (rq HTTP2Request) Request(w http.ResponseWriter, r *http.Request)
func (HTTP2Request) ServeHTTP ¶
func (rq HTTP2Request) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HTTPClient ¶
type HTTPClient struct { Ip string // contains filtered or unexported fields }
func (*HTTPClient) AdaptId ¶
func (cl *HTTPClient) AdaptId() int
func (*HTTPClient) Address ¶
func (cl *HTTPClient) Address() string
func (*HTTPClient) CloseConnection ¶
func (cl *HTTPClient) CloseConnection()
func (*HTTPClient) Connection ¶
func (cl *HTTPClient) Connection() interface{}
func (*HTTPClient) Read ¶
func (cl *HTTPClient) Read(b []byte) (err error)
func (*HTTPClient) ReadString ¶
func (cl *HTTPClient) ReadString() (message string)
func (*HTTPClient) Receive ¶
func (cl *HTTPClient) Receive() (msg []byte, err error)
func (*HTTPClient) Send ¶
func (cl *HTTPClient) Send(msg []byte) error
func (*HTTPClient) SetAdaptId ¶
func (cl *HTTPClient) SetAdaptId(adaptId int)
func (*HTTPClient) WriteString ¶
func (cl *HTTPClient) WriteString(message string)
type HTTPRequest ¶
type HTTPRequest struct {
// contains filtered or unexported fields
}
func (HTTPRequest) Request ¶
func (rq HTTPRequest) Request(w http.ResponseWriter, r *http.Request)
func (HTTPRequest) ServeHTTP ¶
func (rq HTTPRequest) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HTTPS ¶
type HTTPS struct {
// contains filtered or unexported fields
}
func (*HTTPS) AvailableConnectionFromPool ¶
func (*HTTPS) CloseConnection ¶
func (st *HTTPS) CloseConnection()
func (*HTTPS) ConnectToServer ¶
func (*HTTPS) GetClientFromAddr ¶
func (*HTTPS) GetClients ¶
func (*HTTPS) ReadString ¶
func (*HTTPS) ResetClients ¶
func (st *HTTPS) ResetClients()
func (*HTTPS) StartServer ¶
func (*HTTPS) StopServer ¶
func (st *HTTPS) StopServer()
func (*HTTPS) WaitForConnection ¶
func (*HTTPS) WriteString ¶
type HTTPSClient ¶
type HTTPSClient struct { Ip string // contains filtered or unexported fields }
func (*HTTPSClient) AdaptId ¶
func (cl *HTTPSClient) AdaptId() int
func (*HTTPSClient) Address ¶
func (cl *HTTPSClient) Address() string
func (*HTTPSClient) CloseConnection ¶
func (cl *HTTPSClient) CloseConnection()
func (*HTTPSClient) Connection ¶
func (cl *HTTPSClient) Connection() interface{}
func (*HTTPSClient) Read ¶
func (cl *HTTPSClient) Read(b []byte) (err error)
func (*HTTPSClient) ReadString ¶
func (cl *HTTPSClient) ReadString() (message string)
func (*HTTPSClient) Receive ¶
func (cl *HTTPSClient) Receive() (msg []byte, err error)
func (*HTTPSClient) Send ¶
func (cl *HTTPSClient) Send(msg []byte) error
func (*HTTPSClient) SetAdaptId ¶
func (cl *HTTPSClient) SetAdaptId(adaptId int)
func (*HTTPSClient) WriteString ¶
func (cl *HTTPSClient) WriteString(message string)
type HTTPSRequest ¶
type HTTPSRequest struct {
// contains filtered or unexported fields
}
func (HTTPSRequest) Request ¶
func (rq HTTPSRequest) Request(w http.ResponseWriter, r *http.Request)
func (HTTPSRequest) ServeHTTP ¶
func (rq HTTPSRequest) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
func (*RPC) AvailableConnectionFromPool ¶
func (*RPC) CloseConnection ¶
func (st *RPC) CloseConnection()
func (*RPC) ConnectToServer ¶
func (*RPC) GetClientFromAddr ¶
func (*RPC) GetClients ¶
func (*RPC) ReadString ¶
func (*RPC) ResetClients ¶
func (st *RPC) ResetClients()
func (*RPC) StartServer ¶
func (*RPC) StopServer ¶
func (st *RPC) StopServer()
func (*RPC) WriteString ¶
type RPCClient ¶
type RPCClient struct { Ip string // contains filtered or unexported fields }
func (*RPCClient) CloseConnection ¶
func (cl *RPCClient) CloseConnection()
func (*RPCClient) Connection ¶
func (cl *RPCClient) Connection() interface{}
func (*RPCClient) ReadString ¶
func (*RPCClient) SetAdaptId ¶
func (*RPCClient) WriteString ¶
type RPCRequest ¶
type RPCRequest struct {
// contains filtered or unexported fields
}
type TCP ¶
type TCP struct {
// contains filtered or unexported fields
}
func (*TCP) AvailableConnectionFromPool ¶
func (*TCP) CloseConnection ¶
func (st *TCP) CloseConnection()
func (*TCP) ConnectToServer ¶
func (*TCP) GetClientFromAddr ¶
func (*TCP) GetClients ¶
func (*TCP) ReadString ¶
func (*TCP) ResetClients ¶
func (st *TCP) ResetClients()
func (*TCP) StartServer ¶
func (*TCP) StopServer ¶
func (st *TCP) StopServer()
func (*TCP) WriteString ¶
type TCPClient ¶
type TCPClient struct { Ip string // contains filtered or unexported fields }
func (*TCPClient) CloseConnection ¶
func (cl *TCPClient) CloseConnection()
func (*TCPClient) Connection ¶
func (cl *TCPClient) Connection() interface{}
func (*TCPClient) ReadString ¶
func (*TCPClient) SetAdaptId ¶
func (*TCPClient) WriteString ¶
Click to show internal directories.
Click to hide internal directories.