Documentation ¶
Overview ¶
Package webserver provides all the methods for our web server. There aren't very many things going on here yet, and it will likely get split into more packages as it gets built out. Right now, it basically has an event handler that allows external home automation tools to trigger event notifications. It also provides a nice API to send iMessages. You can use this to program in your home automation apps to "curl" an interface to send a msg to an iPhone, etc. We also have hooks for SecuritySpy, to capture and send videos or pictures to messenger users. This code needs a re-think now that we have an event stream.
Index ¶
Constants ¶
View Source
const ( DefaultListenPort = 8765 Timeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SSpy *securityspy.Server Subs *subscribe.Subscribe Msgs *messenger.Messenger Info *log.Logger Debug *log.Logger Error *log.Logger TempDir string AllowedTo []string Port uint // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.