service

package
v0.0.0-...-7b8bf0e Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2015 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(registry *plugin.Registry) error

Types

type EtcdOptions

type EtcdOptions struct {
	EtcdNodes       listOptions
	EtcdKey         string
	EtcdCaFile      string
	EtcdCertFile    string
	EtcdKeyFile     string
	EtcdConsistency string
}

type Options

type Options struct {
	ApiPort      int
	ApiInterface string

	PidPath string
	Port    int

	Interface string
	CertPath  string

	EngineType string
	EtcdOptions
	TomlOptions

	Log         string
	LogSeverity string

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

func (Service) GetEngine

func (s Service) GetEngine() engine.Engine

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop()

func (Service) WaitUntilStarted

func (s Service) WaitUntilStarted()

type TomlOptions

type TomlOptions struct {
	TomlPath               string
	TomlWatchConfigChanges bool
	TomlConfigPaths        listOptions
}

Jump to

Keyboard shortcuts

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