Documentation ¶
Index ¶
- func GetPortFromEnvironmentVariable(portEnvVariable string) (int, error)
- func GetResponseForGaugeMessage(message *gauge_messages.Message, conn net.Conn) (*gauge_messages.Message, error)
- func GetResponseForMessageWithTimeout(message *gauge_messages.Message, conn net.Conn, t time.Duration) (*gauge_messages.Message, error)
- func Write(conn net.Conn, messageBytes []byte) error
- func WriteDataAndGetResponse(conn net.Conn, messageBytes []byte) ([]byte, error)
- func WriteGaugeMessage(message *gauge_messages.Message, conn net.Conn) error
- type GaugeConnectionHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResponseForGaugeMessage ¶
func GetResponseForGaugeMessage(message *gauge_messages.Message, conn net.Conn) (*gauge_messages.Message, error)
func GetResponseForMessageWithTimeout ¶
func GetResponseForMessageWithTimeout(message *gauge_messages.Message, conn net.Conn, t time.Duration) (*gauge_messages.Message, error)
func WriteDataAndGetResponse ¶
func WriteGaugeMessage ¶
func WriteGaugeMessage(message *gauge_messages.Message, conn net.Conn) error
Types ¶
type GaugeConnectionHandler ¶
type GaugeConnectionHandler struct {
// contains filtered or unexported fields
}
func NewGaugeConnectionHandler ¶
func NewGaugeConnectionHandler(port int, messageHandler messageHandler) (*GaugeConnectionHandler, error)
func (*GaugeConnectionHandler) AcceptConnection ¶
func (*GaugeConnectionHandler) ConnectionPortNumber ¶
func (connectionHandler *GaugeConnectionHandler) ConnectionPortNumber() int
func (*GaugeConnectionHandler) HandleMultipleConnections ¶
func (connectionHandler *GaugeConnectionHandler) HandleMultipleConnections()
accepts multiple connections and Handler responds to incoming messages
Click to show internal directories.
Click to hide internal directories.