Documentation ¶
Overview ¶
Package ws implements a websocket client and server for communication between the host and agents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrQueueFull = errors.New("Send queue full")
)
Functions ¶
func NewService ¶
func NewService(handlers Handlers, logMsgChan chan LogPayload) *socketService
NewService allocates and connects all websocket routes and session states
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a generic websocket client for agent connections
type Handlers ¶
type Handlers map[Type]PayloadHandler
type LogPayload ¶
LogPayload is the container for log/message payloads
type Payload ¶
type Payload struct { Type Type `json:"payload_type"` Data json.RawMessage `json:"data"` }
type PayloadHandler ¶
type SocketAuthReq ¶
type WebSocketAuthResp ¶
Click to show internal directories.
Click to hide internal directories.