manager

package
v0.0.0-...-b544bfe Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	CancelFunc context.CancelFunc
	// contains filtered or unexported fields
}

func New

func New(config config.SwanConfig, db *bolt.DB) (*Manager, error)

func (*Manager) Start

func (manager *Manager) Start(ctx context.Context) error

func (*Manager) Stop

func (manager *Manager) Stop(cancel context.CancelFunc)

type ManagerState

type ManagerState struct {
	FrameworkId string
	RaftId      int
	LeaderId    uint64
	Cluster     string
}

type Router

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

func NewRouter

func NewRouter(manager *Manager) *Router

func (*Router) State

func (r *Router) State(w http.ResponseWriter, req *http.Request) error

Directories

Path Synopsis
api
types
Package types is a generated protocol buffer package.
Package types is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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