Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentTransport ¶
AgentTransport provides an HTTP transport for the agent to communicate with a server.
func (*AgentTransport) WriteAgentMessage ¶
func (t *AgentTransport) WriteAgentMessage(ctx context.Context, w transport.ServerMessageWriter, msg transport.AgentMessage) error
WriteAgentMessage sends an agent message to the server using HTTP(s).
type ServerTransport ¶
type ServerTransport struct { transport.Transport Log *zap.Logger Server transport.AgentMessageWriter }
ServerTransport provides a transport for the server to handle HTTP communications from an agent.
func (*ServerTransport) ListenAndServe ¶
func (t *ServerTransport) ListenAndServe(addr string) error
ListenAndServe will begin serving the http transport on the provided address.
func (*ServerTransport) ServeHTTP ¶
func (t *ServerTransport) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP enables the transport to handle HTTP requests provided to the server.
Click to show internal directories.
Click to hide internal directories.