Documentation ¶
Index ¶
Constants ¶
View Source
const READ_BUFFER = 4 * 1024 * 1024 // 16MB
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UnixSocketClient ¶
type UnixSocketClient struct {
// contains filtered or unexported fields
}
func NewUnixSocketClient ¶
func NewUnixSocketClient(runtimeConfig *config.RuntimeConfig) UnixSocketClient
func (UnixSocketClient) Connect ¶
func (client UnixSocketClient) Connect() (UnixSocketConnection, error)
func (UnixSocketClient) SendToAgent ¶
func (client UnixSocketClient) SendToAgent(request interface{}) (interface{}, error)
type UnixSocketConnection ¶
type UnixSocketConnection struct {
// contains filtered or unexported fields
}
func (UnixSocketConnection) Close ¶
func (conn UnixSocketConnection) Close()
func (UnixSocketConnection) ReadMessage ¶
func (conn UnixSocketConnection) ReadMessage() interface{}
func (UnixSocketConnection) SendCommand ¶
func (conn UnixSocketConnection) SendCommand(request interface{}) (interface{}, error)
func (UnixSocketConnection) WriteMessage ¶
func (conn UnixSocketConnection) WriteMessage(message interface{}) error
Click to show internal directories.
Click to hide internal directories.