strowger

package
v0.0.0-...-8e83ccd Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2014 License: BSD-3-Clause Imports: 3 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConfig = errors.New("strowger: the supplied route has no configuration")
View Source
var ErrWrongType = errors.New("strowger: the requested route type does not match the actual type")

Functions

This section is empty.

Types

type Event

type Event struct {
	Event string
	ID    string
	Error error
}

type HTTPRoute

type HTTPRoute struct {
	*Route  `json:"-"`
	Domain  string `json:"domain,omitempty"`
	Service string `json:"service,omitempty"`
	TLSCert string `json:"tls_cert,omitempty"`
	TLSKey  string `json:"tls_key,omitempty"`
	Sticky  bool   `json:"sticky,omitempty"`
}

func (*HTTPRoute) ToRoute

func (r *HTTPRoute) ToRoute() *Route

type Route

type Route struct {
	ID        string `json:"id,omitempty"`
	ParentRef string `json:"parent_ref,omitempty"`
	Type      string `json:"type,omitempty"`

	Config *json.RawMessage `json:"config,omitempty"`

	CreatedAt *time.Time `json:"created_at,omitempty"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

func (*Route) HTTPRoute

func (r *Route) HTTPRoute() *HTTPRoute

func (*Route) TCPRoute

func (r *Route) TCPRoute() *TCPRoute

type TCPRoute

type TCPRoute struct {
	*Route  `json:"-"`
	Port    int    `json:"port"`
	Service string `json:"service"`
}

func (*TCPRoute) ToRoute

func (r *TCPRoute) ToRoute() *Route

Jump to

Keyboard shortcuts

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