service

package
v0.0.0-...-2b06e77 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: Apache-2.0, Apache-2.0 Imports: 24 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
	EtcdCaFile              string
	EtcdCertFile            string
	EtcdKeyFile             string
	EtcdConsistency         string
	EtcdSyncIntervalSeconds int64

	Log         string
	LogSeverity SeverityFlag

	ServerReadTimeout    time.Duration
	ServerWriteTimeout   time.Duration
	ServerMaxHeaderBytes int

	EndpointDialTimeout time.Duration
	EndpointReadTimeout time.Duration

	SealKey string

	StatsdAddr   string
	StatsdPrefix string

	DefaultListener bool
}

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() (*proxy.FileDescriptor, error)

func (*Service) Start

func (s *Service) Start() error

type SeverityFlag

type SeverityFlag struct {
	S log.Severity
}

func (*SeverityFlag) Get

func (s *SeverityFlag) Get() interface{}

func (*SeverityFlag) Set

func (s *SeverityFlag) Set(value string) error

Set is part of the flag.Value interface.

func (*SeverityFlag) String

func (s *SeverityFlag) String() string

Jump to

Keyboard shortcuts

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