Documentation
¶
Index ¶
- type NodeAPI
- func (b *NodeAPI) Create(ctx context.Context, req *pbNode.NodeServiceCreateRequest) (*pbNode.NodeServiceCreateResponse, error)
- func (b *NodeAPI) Delete(ctx context.Context, req *pbNode.NodeServiceDeleteRequest) (*pbNode.NodeServiceDeleteResponse, error)
- func (b *NodeAPI) Get(ctx context.Context, req *pbNode.NodeServiceGetRequest) (*pbNode.NodeServiceGetResponse, error)
- func (b *NodeAPI) List(ctx context.Context, req *pbNode.NodeServiceListRequest) (*pbNode.NodeServiceListResponse, error)
- func (b *NodeAPI) Update(ctx context.Context, req *pbNode.NodeServiceUpdateRequest) (*pbNode.NodeServiceUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeAPI ¶
type NodeAPI struct{}
NodeAPI implements the protobuf interface
func (*NodeAPI) Create ¶
func (b *NodeAPI) Create(ctx context.Context, req *pbNode.NodeServiceCreateRequest) (*pbNode.NodeServiceCreateResponse, error)
Create adds a node to the store.
func (*NodeAPI) Delete ¶
func (b *NodeAPI) Delete(ctx context.Context, req *pbNode.NodeServiceDeleteRequest) (*pbNode.NodeServiceDeleteResponse, error)
Delete deletes the given node.
func (*NodeAPI) Get ¶
func (b *NodeAPI) Get(ctx context.Context, req *pbNode.NodeServiceGetRequest) (*pbNode.NodeServiceGetResponse, error)
Get returns the requested node.
func (*NodeAPI) List ¶
func (b *NodeAPI) List(ctx context.Context, req *pbNode.NodeServiceListRequest) (*pbNode.NodeServiceListResponse, error)
List lists all nodes in the store.
func (*NodeAPI) Update ¶
func (b *NodeAPI) Update(ctx context.Context, req *pbNode.NodeServiceUpdateRequest) (*pbNode.NodeServiceUpdateResponse, error)
Update updates the given node.
Click to show internal directories.
Click to hide internal directories.