service

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(registry *plugin.Registry) error

Types

type Options

type Options struct {
	ApiPort      int
	ApiInterface string

	PidPath string
	Port    int

	Interface string
	CertPath  string

	EtcdNodes       listOptions
	EtcdKey         string
	EtcdConsistency string

	Log         string
	LogSeverity severity

	ServerReadTimeout    time.Duration
	ServerWriteTimeout   time.Duration
	ServerMaxHeaderBytes int

	EndpointDialTimeout time.Duration
	EndpointReadTimeout time.Duration

	SealKey string

	StatsdAddr   string
	StatsdPrefix string
}

func ParseCommandLine

func ParseCommandLine() (options Options, err error)

type Service

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

func NewService

func NewService(options Options, registry *plugin.Registry) *Service

func (*Service) GetAPIFile

func (s *Service) GetAPIFile() (*server.FileDescriptor, error)

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