service

package
v0.0.0-...-09ac470 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(config ServiceConfig, deps ServiceDependencies) (*Service, error)

NewService initializes a new Service.

func (*Service) Run

func (s *Service) Run() error

Run performs the actual service.

type ServiceConfig

type ServiceConfig struct {
	MasterTTL time.Duration

	RedisPort           int
	RedisConf           string
	RedisAppendOnly     bool
	RedisAppendOnlyPath string
}

type ServiceDependencies

type ServiceDependencies struct {
	Logger      *logging.Logger
	Backend     backend.Backend
	Environment environment.Environment
	Proxy       proxy.Proxy
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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