vulcand

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMiddlewarePriority = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace string
	Etcd      *etcd.Config
	TTL       time.Duration
}

type Middleware

type Middleware struct {
	Type     string         `json:"Type"`
	ID       string         `json:"Id"`
	Priority int            `json:"Priority"`
	Spec     MiddlewareSpec `json:"Middleware"`
}

func (Middleware) String

func (m Middleware) String() string

type MiddlewareSpec

type MiddlewareSpec interface{}

type Registry

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

func NewRegistry

func NewRegistry(cfg Config, appName, ip string, port int) (*Registry, error)

func (*Registry) AddFrontend

func (r *Registry) AddFrontend(host, path string, methods []string, middlewares []Middleware)

func (*Registry) Start

func (r *Registry) Start() error

func (*Registry) Stop

func (r *Registry) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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