config

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: Apache-2.0, EPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudSettings

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL