Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AbstractAdapter ¶
type AbstractAdapter interface { Start() Input(c chan []byte) Output(c chan []byte) GetDirection() Direction }
AbstractAdapter ...(I)
type HTTPAdapter ¶
type HTTPAdapter struct { *Adapter Path string ContentType string // contains filtered or unexported fields }
HTTPAdapter ...
func NewHTTPAdapter ¶
func NewHTTPAdapter(direction Direction, host string, port int, path, contentType string) *HTTPAdapter
NewHTTPAdapter ...
func (*HTTPAdapter) Input ¶
func (httpAdapter *HTTPAdapter) Input(c chan []byte)
Input = create server ...
func (*HTTPAdapter) Output ¶
func (httpAdapter *HTTPAdapter) Output(c chan []byte)
Output = HTTP POST ...
type TCPAdapter ¶
TCPAdapter ... (T2)
func NewTCPAdapter ¶
func NewTCPAdapter(direction Direction, host string, port int, delimiter byte) *TCPAdapter
NewTCPAdapter ...
func (*TCPAdapter) Output ¶
func (tcp *TCPAdapter) Output(c chan []byte)
Output = connect to server ...
type UDPAdapter ¶
UDPAdapter ... (T2)
func NewUDPAdapter ¶
func NewUDPAdapter(direction Direction, host string, port int, delimiter byte) *UDPAdapter
NewUDPAdapter ...
func (*UDPAdapter) Output ¶
func (udp *UDPAdapter) Output(c chan []byte)
Output = connect to server ...
Click to show internal directories.
Click to hide internal directories.