Documentation ¶ Index ¶ func NewPublisher(options PublisherOptions) (smartmeter.Publisher, error) type PublisherOptions Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewPublisher ¶ func NewPublisher(options PublisherOptions) (smartmeter.Publisher, error) Types ¶ type PublisherOptions ¶ type PublisherOptions struct { Addr string `env:"PROMETHEUS_ADDR" flag:"addr" desc:"Prometheus HTTP server address, set empty to disable"` DisableGoCollector bool `env:"DISABLE_GO_COLLECTOR" flag:"disable-go-collector" desc:"Disable Go collector"` } Source Files ¶ View all Source files publisher.go Click to show internal directories. Click to hide internal directories.