service

package
v0.0.0-...-1c9956a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TickerTime      time.Duration
	DryRun          bool
	OWMcityID       int
	InfluxPort      int
	InfluxDB        string
	InfluxUser      string
	InfluxPassword  string
	InfluxHost      string
	InfluxRetention string
	DhtType         string
	DhtPin          int
	DHTPerf         bool
	DhtRetries      int
}

type Deps

type Deps struct {
	InfluxClient client.Client
}

type Service

type Service struct {
	Config
	Deps
	// contains filtered or unexported fields
}

func New

func New(cfg Config, deps Deps) *Service

func (*Service) Close

func (srv *Service) Close()

func (*Service) Reconcile

func (srv *Service) Reconcile()

func (*Service) Serve

func (srv *Service) Serve()

Jump to

Keyboard shortcuts

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