Documentation ¶
Overview ¶
package service implements the services and their business logic that provide the main part of the program
package service implements the services and their business logic that provide the main part of the program
package service implements the services and their business logic that provide the main part of the program
package service implements the services and their business logic that provide the main part of the program
package service implements the services and their business logic that provide the main part of the program
Index ¶
- func GetDataFromStreamUrl(Url string) ([]byte, error)
- func GetXmlFromPollUrl(pollUrl string) (*domain.DevStat, error)
- func InitGpioPollHttp()
- func InitGpioSwitchHttp()
- func InitStreamHttp()
- func LoginToGpio(cfg *config.AppConfig) (success bool)
- type DefaultEmberPollService
- type DefaultGpioPollService
- type DefaultGpioSwitchService
- type DefaultStreamScrapeService
- type DefaultStreamVolDetectService
- type EmberPollService
- type GpioPollService
- type GpioSwitchService
- type StreamScrapeService
- type StreamVolDetectService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataFromStreamUrl ¶
func InitGpioPollHttp ¶
func InitGpioPollHttp()
func InitGpioSwitchHttp ¶
func InitGpioSwitchHttp()
func InitStreamHttp ¶
func InitStreamHttp()
func LoginToGpio ¶
Types ¶
type DefaultEmberPollService ¶
func NewEmberPollService ¶
func NewEmberPollService(cfg *config.AppConfig) DefaultEmberPollService
func (DefaultEmberPollService) CloseEmberConn ¶
func (s DefaultEmberPollService) CloseEmberConn()
func (DefaultEmberPollService) InitEmberConn ¶
func (s DefaultEmberPollService) InitEmberConn()
func (DefaultEmberPollService) Poll ¶
func (s DefaultEmberPollService) Poll()
func (DefaultEmberPollService) PollRun ¶
func (s DefaultEmberPollService) PollRun()
func (DefaultEmberPollService) Reconnect ¶
func (s DefaultEmberPollService) Reconnect()
type DefaultGpioPollService ¶
func NewGpioPollService ¶
func NewGpioPollService(cfg *config.AppConfig) DefaultGpioPollService
func (DefaultGpioPollService) Poll ¶
func (s DefaultGpioPollService) Poll()
func (DefaultGpioPollService) PollRun ¶
func (s DefaultGpioPollService) PollRun() error
type DefaultGpioSwitchService ¶
func NewGpioSwitchService ¶
func NewGpioSwitchService(cfg *config.AppConfig) DefaultGpioSwitchService
type DefaultStreamScrapeService ¶
func NewStreamScrapeService ¶
func NewStreamScrapeService(cfg *config.AppConfig) DefaultStreamScrapeService
func (DefaultStreamScrapeService) Scrape ¶
func (s DefaultStreamScrapeService) Scrape()
func (DefaultStreamScrapeService) ScrapeRun ¶
func (s DefaultStreamScrapeService) ScrapeRun()
type DefaultStreamVolDetectService ¶
func NewStreamVolDetectService ¶
func NewStreamVolDetectService(cfg *config.AppConfig) DefaultStreamVolDetectService
func (DefaultStreamVolDetectService) Listen ¶
func (s DefaultStreamVolDetectService) Listen()
func (DefaultStreamVolDetectService) ListenRun ¶
func (s DefaultStreamVolDetectService) ListenRun(streamUrl string)
type EmberPollService ¶
type EmberPollService interface {
Poll()
}
type GpioPollService ¶
type GpioPollService interface {
Poll()
}
type GpioSwitchService ¶
type StreamScrapeService ¶
type StreamScrapeService interface {
Scrape()
}
type StreamVolDetectService ¶
type StreamVolDetectService interface {
Listen()
}
Click to show internal directories.
Click to hide internal directories.