Documentation ¶
Index ¶
- Constants
- func DispatchResults(conn net.Conn, res api.Response)
- func HandleRequest(conn net.Conn, reqch chan api.Request, resch chan api.Response)
- func ParseRequest(data []byte) api.Request
- func ReadFull(conn net.Conn) []byte
- func StartTCPServer(reqch chan api.Request, resch chan api.Response)
- type Client
- type Server
Constants ¶
View Source
const ( CONN_HOST = "localhost" CONN_PORT = "5309" CONN_TYPE = "tcp" )
Variables ¶
This section is empty.
Functions ¶
func DispatchResults ¶
Dispatch results to the proper client
func HandleRequest ¶
When we get a request, parse the msgpack'd data and send it to the API server
Types ¶
Click to show internal directories.
Click to hide internal directories.