Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PropertySet ¶
type PropertySet struct {
// contains filtered or unexported fields
}
PropertySet provides common operations on list of properties
func NewPropertySet ¶
func NewPropertySet(props ...string) *PropertySet
NewPropertySet creates PropertySet
func (*PropertySet) All ¶
func (p *PropertySet) All() []string
All returns all properties of the set
func (*PropertySet) Contains ¶
func (p *PropertySet) Contains(s string) bool
Contains checks if match is contained in the list
func (*PropertySet) Get ¶
func (p *PropertySet) Get(s string) interface{}
Get returns property by name
func (*PropertySet) Match ¶
func (p *PropertySet) Match(s string) []string
Match returns all properties starting with match
func (*PropertySet) Remove ¶
func (p *PropertySet) Remove(s string) bool
Remove removes an entry from the set
type Subscriber ¶
Subscriber Homie/MQTT data source
func NewSubscriber ¶
func NewSubscriber(name string, rootTopic string, mqttOptions *mqtt.ClientOptions) *Subscriber
NewSubscriber creates Homie/MQTT data source
Click to show internal directories.
Click to hide internal directories.