Documentation ¶
Index ¶
- Constants
- Variables
- func IsNowBetweenStartTimeAndEndTime(startTimeStr, endTimeStr string) error
- func New(config config.Config) (server.Plugin, error)
- type Config
- type JwtPayload
- type SailHome
- func (s *SailHome) ConnectionLostHandler(client mqtt.Client, err error)
- func (s *SailHome) DefaultPublishHandler(client mqtt.Client, msg mqtt.Message)
- func (s *SailHome) HookWrapper() server.HookWrapper
- func (s *SailHome) Load(service server.Server) error
- func (s *SailHome) Name() string
- func (s *SailHome) OnBasicAuthWrapper(pre server.OnBasicAuth) server.OnBasicAuth
- func (s *SailHome) OnConnectHandler(client mqtt.Client)
- func (s *SailHome) OnEnhancedAuthWrapper(pre server.OnEnhancedAuth) server.OnEnhancedAuth
- func (s *SailHome) OnMsgArrivedWrapper(pre server.OnMsgArrived) server.OnMsgArrived
- func (s *SailHome) OnReAuthWrapper(pre server.OnReAuth) server.OnReAuth
- func (s *SailHome) OnSubscribeWrapper(pre server.OnSubscribe) server.OnSubscribe
- func (s *SailHome) SendToCloud(topic string, qos uint8, retain bool, payload []byte) error
- func (s *SailHome) Unload() error
- type Upstream
Constants ¶
View Source
const Name = "sailhome"
Variables ¶
View Source
var DefaultConfig = Config{}
DefaultConfig is the default configuration.
Functions ¶
Types ¶
type Config ¶
type Config struct { DBSelect string `yaml:"db_select"` SQLite string `yaml:"sqlite"` PostgreSQL string `yaml:"postgresql"` Upstream Upstream `yaml:"upstream"` }
Config is the configuration for the sailhome plugin.
func (*Config) UnmarshalYAML ¶
type JwtPayload ¶
func (*JwtPayload) Valid ¶
func (p *JwtPayload) Valid() error
type SailHome ¶
type SailHome struct {
// contains filtered or unexported fields
}
func (*SailHome) ConnectionLostHandler ¶
func (*SailHome) DefaultPublishHandler ¶
func (*SailHome) HookWrapper ¶
func (s *SailHome) HookWrapper() server.HookWrapper
func (*SailHome) OnBasicAuthWrapper ¶
func (s *SailHome) OnBasicAuthWrapper(pre server.OnBasicAuth) server.OnBasicAuth
func (*SailHome) OnConnectHandler ¶
func (*SailHome) OnEnhancedAuthWrapper ¶
func (s *SailHome) OnEnhancedAuthWrapper(pre server.OnEnhancedAuth) server.OnEnhancedAuth
func (*SailHome) OnMsgArrivedWrapper ¶
func (s *SailHome) OnMsgArrivedWrapper(pre server.OnMsgArrived) server.OnMsgArrived
func (*SailHome) OnReAuthWrapper ¶
func (*SailHome) OnSubscribeWrapper ¶
func (s *SailHome) OnSubscribeWrapper(pre server.OnSubscribe) server.OnSubscribe
func (*SailHome) SendToCloud ¶
Click to show internal directories.
Click to hide internal directories.