Documentation ¶
Index ¶
- Variables
- func NewNotFound(log *zap.Logger) http.Handler
- type Nodes
- func (controller *Nodes) Add(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) Delete(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) Get(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) List(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) UpdateName(w http.ResponseWriter, r *http.Request)
- type NotFound
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNodes is an internal error type for nodes web api controller. ErrNodes = errs.Class("nodes web api controller error") )
Functions ¶
Types ¶
type Nodes ¶
type Nodes struct {
// contains filtered or unexported fields
}
Nodes is a web api controller.
func (*Nodes) Add ¶
func (controller *Nodes) Add(w http.ResponseWriter, r *http.Request)
Add handles node addition.
func (*Nodes) Delete ¶
func (controller *Nodes) Delete(w http.ResponseWriter, r *http.Request)
Delete handles node removal.
func (*Nodes) Get ¶
func (controller *Nodes) Get(w http.ResponseWriter, r *http.Request)
Get handles retrieving node by id.
func (*Nodes) List ¶
func (controller *Nodes) List(w http.ResponseWriter, r *http.Request)
List handles retrieving list of nodes.
func (*Nodes) UpdateName ¶
func (controller *Nodes) UpdateName(w http.ResponseWriter, r *http.Request)
UpdateName is an endpoint to update node name.
Click to show internal directories.
Click to hide internal directories.