Documentation ¶
Overview ¶
Server side of vender tele. Goals: - receive telemetry - receive state - send command - while hiding transport protocol (MQTT)
Index ¶
- Constants
- func NewTele() tele_api.Teler
- type Secrets
- func (s *Secrets) CachedReadFile(path string, refreshInterval time.Duration) error
- func (s *Secrets) UnsafeReadFile(path string) error
- func (s *Secrets) UnsafeReadFrom(r io.Reader) error
- func (s *Secrets) UnsafeSet(username, secret string) error
- func (s *Secrets) UnsafeWriteTo(w io.Writer) error
- func (s *Secrets) Verify(username, secret string) error
- func (s *Secrets) WriteFile(filepath string) error
Constants ¶
View Source
const SecretsStale = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Secrets ¶
username:password pairs, cached (stale) reading from file
func (*Secrets) CachedReadFile ¶
func (*Secrets) UnsafeReadFile ¶
Thread-unsafe. Use embedded Lock.
func (*Secrets) UnsafeReadFrom ¶
Thread-unsafe. Use embedded Lock.
Click to show internal directories.
Click to hide internal directories.