Documentation ¶ Index ¶ type Client func NewClient(addr net.UDPAddr, encKey string, handler HandlerFunc) *Client func (c Client) SendEvent(msg model.ClipboardUpdated) error type HandlerFunc type Server func NewServer(addr net.UDPAddr, encKey string, handler HandlerFunc) *Server func (s Server) Listen() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(addr net.UDPAddr, encKey string, handler HandlerFunc) *Client func (Client) SendEvent ¶ func (c Client) SendEvent(msg model.ClipboardUpdated) error type HandlerFunc ¶ type HandlerFunc func(*net.UDPAddr, int, []byte) type Server ¶ type Server struct { Handler HandlerFunc // contains filtered or unexported fields } func NewServer ¶ func NewServer(addr net.UDPAddr, encKey string, handler HandlerFunc) *Server func (Server) Listen ¶ func (s Server) Listen() Source Files ¶ View all Source files client.go server.go types.go Click to show internal directories. Click to hide internal directories.