Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudSettings ¶
type CloudSettings struct { config.LocalConnectionSettings config.HubConnectionSettings logger.LogSettings MessageFilterSettings }
CloudSettings represents all configurable data that is used to setup the cloud connector.
func DefaultSettings ¶
func DefaultSettings() *CloudSettings
DefaultSettings returns the AWS connector default settings.
func (*CloudSettings) CompileFilters ¶
func (settings *CloudSettings) CompileFilters() error
CompileFilters prepare regex filters.
func (*CloudSettings) ReadDeviceID ¶
func (settings *CloudSettings) ReadDeviceID() error
ReadDeviceID reads device id from PEM encoded certificate.
func (*CloudSettings) Validate ¶
func (settings *CloudSettings) Validate() error
Validate validates the settings.
type MessageFilterSettings ¶
type MessageFilterSettings struct { TopicFilter string `json:"topicFilter"` TopicFilterRegexp *regexp.Regexp `json:"-"` PayloadFilters PayloadFiltersType `json:"payloadFilters"` PayloadFiltersRegexp []*regexp.Regexp `json:"-"` }
MessageFilterSettings represents all configurable filters.
type PayloadFiltersType ¶
type PayloadFiltersType []string
PayloadFiltersType represents payload filters.
func (*PayloadFiltersType) Get ¶
func (v *PayloadFiltersType) Get() interface{}
Get payload filters.
func (*PayloadFiltersType) Set ¶
func (v *PayloadFiltersType) Set(value string) error
Set additional payload filter.
func (*PayloadFiltersType) String ¶
func (v *PayloadFiltersType) String() string
Click to show internal directories.
Click to hide internal directories.