Documentation
¶
Overview ¶
Protocols between client and server
Client (HTTP Request) ->
Query: identifier (uniq string) Query: timestamp (seconds since January 1, 1970 UTC.) Query: hashmac
Server response ->
Body: {timestamp} {hashmac}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Server ¶
type Server struct {
OnConnect func(identifier string, req *http.Request)
OnReconnect func(identifier string, req *http.Request)
OnDisconnect func(identifier string)
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.