api

package
v0.0.0-...-16f4573 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppService

type AppService struct {
	Addr     string   `json:"addr"`
	Services []string `json:"services"`
}

type AppStatus

type AppStatus struct {
	IsLive   bool   `json:"isLive"`
	RouterCS string `json:"routerCS"`
}

type Error

type Error struct {
	Error string `json:"error"`
}

func NewError

func NewError(msg string) *Error

type InnerAppService

type InnerAppService struct {
	NodeAddr NodeAddr `json:"nodeaddr"`
	Services []string `json:"services"`
}

type MicroApp

type MicroApp struct {
	Addr      string   `json:"addr"`
	Providers []string `json:"providers"`
	Consumers []string `json:"consumers"`
}

type NodeAddr

type NodeAddr struct {
	Node string `json:"node"`
	Addr string `json:"addr"`
}

type Router

type Router struct {
	Service  string     `json:"service"`
	Addrs    []NodeAddr `json:"addrs"`
	Checksum []byte     `json:"checksum,omitempty"`
}

type RouterTable

type RouterTable struct {
	Routers  []Router `json:"routers"`
	Checksum string   `json:"checksum"`
}

Jump to

Keyboard shortcuts

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