Jeff Carr
|
7110856b18
|
allow 'OPTIONS' aka 'CORS' on http sockets
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 13:10:25 -07:00 |
Jeff Carr
|
58b80b499a
|
attempt 3
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 12:30:07 -07:00 |
Jeff Carr
|
42ef854233
|
even smaller
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 12:17:07 -07:00 |
Jeff Carr
|
5ace7b049f
|
misc other tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 12:03:11 -07:00 |
Jeff Carr
|
280e8218ae
|
another example
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 11:37:47 -07:00 |
Jeff Carr
|
c19043cd52
|
simple daemon to listen to http requests
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 11:17:03 -07:00 |
Jeff Carr
|
c32f8585fa
|
disable journalhook because it doesn't build on Windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 21:41:19 -07:00 |
Jeff Carr
|
13af6a6273
|
start a unified json function
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 22:36:56 +00:00 |
Jeff Carr
|
19147ea950
|
respond to login attempt
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 06:43:42 +00:00 |
Jeff Carr
|
0e7cb059d4
|
an attempt at verifing the login token
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 05:46:37 +00:00 |
Jeff Carr
|
7274c5c3c3
|
merge into a single file to make it easier to work with
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 03:46:02 +00:00 |
Jeff Carr
|
e4031a68c0
|
token is in GUI
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 02:52:37 +00:00 |
Jeff Carr
|
47a5b0659c
|
recieve the token
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 02:33:19 +00:00 |
Jeff Carr
|
bb12949637
|
update to new token
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-23 03:09:51 +00:00 |
Jeff Carr
|
0ee9a0e661
|
maybe an alternative to look at?
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-15 20:28:59 +00:00 |
Jeff Carr
|
6ce08105ad
|
fix error on broken API or JSON networks being nil
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-14 02:21:28 +00:00 |
Jeff Carr
|
7bcbe607a0
|
convert the JSON into a google protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 19:19:15 +00:00 |
Jeff Carr
|
0b6d5fbac9
|
send back a protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 07:28:07 +00:00 |
Jeff Carr
|
1bfaaa331d
|
ready to attempt returning a protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 06:07:22 +00:00 |
Jeff Carr
|
0ad98fe594
|
remove all the extra stuff
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 05:57:19 +00:00 |
Jeff Carr
|
f2068edf09
|
start a daemon to talk to the cloud-control-panel
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 05:48:59 +00:00 |
Jeff Carr
|
cffb4344d0
|
s/c/conn/
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 20:14:37 -07:00 |
Jeff Carr
|
36a23911a8
|
successfully sent a google protobuf over a gorilla websocket in
a marshal'd binary form. echo protobuf works.
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 17:22:14 -07:00 |
Jeff Carr
|
46ee8a456f
|
make a seperate function to handle reading messages from the channel
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 17:07:28 -07:00 |
Jeff Carr
|
65f0d84f5b
|
a working echo client and server using gorilla
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 16:59:13 -07:00 |
Jeff Carr
|
0a5aa8e447
|
use a standard Event Dump() function
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 13:20:24 -07:00 |
Jeff Carr
|
f6018c0960
|
update the examples
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 12:59:46 -07:00 |
Jeff Carr
|
bf5ff90e5b
|
add debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 03:50:38 -07:00 |
Jeff Carr
|
b91b431ec6
|
add a working protobuf channel example
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 03:48:13 -07:00 |
Jeff Carr
|
c34dc5f401
|
code runs. Writes out marshal'ed entries to a file, but is that anything other than garbage
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-10 17:41:58 -07:00 |
Jeff Carr
|
1c974ed95e
|
successfully marshal a protobuf witProtobuf.Event and write it to a file
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-10 14:57:33 -07:00 |
Jeff Carr
|
5882fa20ac
|
A first for me with google protobuf's
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-10 12:36:36 -07:00 |
Jeff Carr
|
e476e50d48
|
avoid a potential crash
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-10 03:42:48 +00:00 |
Jeff Carr
|
d6f15e9e22
|
allow dns lookup output to be sent to systemctl
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-10 03:22:44 +00:00 |
Jeff Carr
|
71f1aa0cfc
|
moved shell to the 'wit' account
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-10 03:08:22 +00:00 |
Jeff Carr
|
d38dbbdf70
|
add localTCPAddr := dnssecsocket.ResolveIPv6hostname("librem15.lab.wit.com")
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-09 17:57:51 -07:00 |
Jeff Carr
|
9070d87fba
|
move logging to journalctl + start trying to debug missing bytes
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-10 00:24:52 +00:00 |
Jeff Carr
|
17e5b73aa4
|
convert to ListenTCP
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-09 13:20:57 +00:00 |
Jeff Carr
|
f437bfec59
|
start moving common things into the library
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-05 00:00:39 -07:00 |
Jeff Carr
|
ed570b08ac
|
Closes the socket if the IPv6 address does not match the hostname
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-04 23:20:34 -07:00 |
Jeff Carr
|
678d005061
|
Send the hostname as the first line
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-04 15:08:25 -07:00 |
Jeff Carr
|
d767632eed
|
Look up the client IP from the hostname
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-04 15:07:21 -07:00 |
Jeff Carr
|
a9a254e62d
|
Add a DNS lookup of the servername. Only listen on that IPv6 address.
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-04 14:25:23 -07:00 |
Jeff Carr
|
0c5f92b552
|
Init it onto our git server
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-04 12:15:39 -07:00 |
Jeff Carr
|
9086eddbec
|
Initial commit that works more or less
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-04 12:13:07 -07:00 |