service

package
Version: v0.0.0-...-589c0b5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2015 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoLightSensors = errors.New("your machine doesn't have an ambient light sensor")

Functions

func Verbose

func Verbose() func(*Service)

func WithInterval

func WithInterval(d time.Duration) func(*Service)

Types

type Option

type Option func(*Service)

type Reading

type Reading struct {
	Left  int64
	Right int64
	Mean  int64
}

func ReadSensors

func ReadSensors() (Reading, error)

func (Reading) String

func (r Reading) String() string

type Service

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

func NewService

func NewService(dbpth string, options ...Option) *Service

func (*Service) Close

func (s *Service) Close()

func (*Service) Start

func (s *Service) Start() error

Jump to

Keyboard shortcuts

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