Documentation ¶ Index ¶ Constants type Backend func NewDefaultBackend(ID, addr string) (*Backend, error) func (b *Backend) IsAlive() bool func (b *Backend) Serve(rw http.ResponseWriter, req *http.Request) func (b *Backend) SetAlive(alive bool) Constants ¶ View Source const ( ALIVE_UP = true ALIVE_DOWN = false ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Backend ¶ type Backend struct { ID string Addr *url.URL Alive bool // contains filtered or unexported fields } func NewDefaultBackend ¶ func NewDefaultBackend(ID, addr string) (*Backend, error) func (*Backend) IsAlive ¶ func (b *Backend) IsAlive() bool func (*Backend) Serve ¶ func (b *Backend) Serve(rw http.ResponseWriter, req *http.Request) func (*Backend) SetAlive ¶ func (b *Backend) SetAlive(alive bool) Source Files ¶ View all Source files backend.go Directories ¶ Show internal Expand all Path Synopsis health register docker k8s registry Click to show internal directories. Click to hide internal directories.