Documentation
¶
Overview ¶
Package node
Index ¶
- Constants
- type NewServiceOption
- type NodeService
- func (n *NodeService) Connect(stream nodesv1.NodeService_ConnectServer) error
- func (n *NodeService) Create(ctx context.Context, req *nodesv1.CreateRequest) (*nodesv1.CreateResponse, error)
- func (n *NodeService) Delete(ctx context.Context, req *nodesv1.DeleteRequest) (*nodesv1.DeleteResponse, error)
- func (n *NodeService) Forget(ctx context.Context, req *nodesv1.ForgetRequest) (*nodesv1.ForgetResponse, error)
- func (n *NodeService) Get(ctx context.Context, req *nodesv1.GetRequest) (*nodesv1.GetResponse, error)
- func (n *NodeService) Join(ctx context.Context, req *nodesv1.JoinRequest) (*nodesv1.JoinResponse, error)
- func (n *NodeService) List(ctx context.Context, req *nodesv1.ListRequest) (*nodesv1.ListResponse, error)
- func (n *NodeService) Patch(ctx context.Context, req *nodesv1.PatchRequest) (*nodesv1.PatchResponse, error)
- func (n *NodeService) Register(server *grpc.Server) error
- func (n *NodeService) Update(ctx context.Context, req *nodesv1.UpdateRequest) (*nodesv1.UpdateResponse, error)
- func (n *NodeService) UpdateStatus(ctx context.Context, req *nodesv1.UpdateStatusRequest) (*nodesv1.UpdateStatusResponse, error)
- func (n *NodeService) Upgrade(ctx context.Context, req *nodesv1.UpgradeRequest) (*nodesv1.UpgradeResponse, error)
Constants ¶
View Source
const Version string = "node/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewServiceOption ¶
type NewServiceOption func(s *NodeService)
func WithExchange ¶
func WithExchange(e *events.Exchange) NewServiceOption
func WithLogger ¶
func WithLogger(l logger.Logger) NewServiceOption
type NodeService ¶
type NodeService struct {
nodesv1.UnimplementedNodeServiceServer
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo repository.NodeRepository, opts ...NewServiceOption) *NodeService
func (*NodeService) Connect ¶
func (n *NodeService) Connect(stream nodesv1.NodeService_ConnectServer) error
func (*NodeService) Create ¶
func (n *NodeService) Create(ctx context.Context, req *nodesv1.CreateRequest) (*nodesv1.CreateResponse, error)
func (*NodeService) Delete ¶
func (n *NodeService) Delete(ctx context.Context, req *nodesv1.DeleteRequest) (*nodesv1.DeleteResponse, error)
func (*NodeService) Forget ¶
func (n *NodeService) Forget(ctx context.Context, req *nodesv1.ForgetRequest) (*nodesv1.ForgetResponse, error)
func (*NodeService) Get ¶
func (n *NodeService) Get(ctx context.Context, req *nodesv1.GetRequest) (*nodesv1.GetResponse, error)
func (*NodeService) Join ¶
func (n *NodeService) Join(ctx context.Context, req *nodesv1.JoinRequest) (*nodesv1.JoinResponse, error)
func (*NodeService) List ¶
func (n *NodeService) List(ctx context.Context, req *nodesv1.ListRequest) (*nodesv1.ListResponse, error)
func (*NodeService) Patch ¶
func (n *NodeService) Patch(ctx context.Context, req *nodesv1.PatchRequest) (*nodesv1.PatchResponse, error)
func (*NodeService) Update ¶
func (n *NodeService) Update(ctx context.Context, req *nodesv1.UpdateRequest) (*nodesv1.UpdateResponse, error)
func (*NodeService) UpdateStatus ¶
func (n *NodeService) UpdateStatus(ctx context.Context, req *nodesv1.UpdateStatusRequest) (*nodesv1.UpdateStatusResponse, error)
func (*NodeService) Upgrade ¶
func (n *NodeService) Upgrade(ctx context.Context, req *nodesv1.UpgradeRequest) (*nodesv1.UpgradeResponse, error)
Click to show internal directories.
Click to hide internal directories.