Documentation ¶
Index ¶
- type EdgeManager
- func (e *EdgeManager) Create(_ context.Context, args *api.Edge) (*api.EdgeManagedId, error)
- func (e *EdgeManager) Delete(_ context.Context, args *api.EdgeManagedId) (*api.EdgeManagedId, error)
- func (e *EdgeManager) Get(_ context.Context, args *api.EdgeManagedId) (*api.EdgeManaged, error)
- func (e *EdgeManager) List(_ context.Context, args *api.EdgeManagerListArgs) (*api.EdgeManagerListReply, error)
- type SupernodeManager
- func (s *SupernodeManager) Create(_ context.Context, args *api.Supernode) (*api.SupernodeManagedId, error)
- func (s *SupernodeManager) Delete(_ context.Context, args *api.SupernodeManagedId) (*api.SupernodeManagedId, error)
- func (s *SupernodeManager) Get(_ context.Context, args *api.SupernodeManagedId) (*api.SupernodeManaged, error)
- func (s *SupernodeManager) List(_ context.Context, args *api.SupernodeManagerListArgs) (*api.SupernodeManagerListReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeManager ¶
type EdgeManager struct { api.UnimplementedEdgeManagerServer EdgesManaged map[string]*workers.Edge }
EdgeManager manages edges.
func (*EdgeManager) Create ¶
func (e *EdgeManager) Create(_ context.Context, args *api.Edge) (*api.EdgeManagedId, error)
Create creates a edge.
func (*EdgeManager) Delete ¶
func (e *EdgeManager) Delete(_ context.Context, args *api.EdgeManagedId) (*api.EdgeManagedId, error)
Delete deletes a edge.
func (*EdgeManager) Get ¶
func (e *EdgeManager) Get(_ context.Context, args *api.EdgeManagedId) (*api.EdgeManaged, error)
Get gets one of the managed edges.
func (*EdgeManager) List ¶
func (e *EdgeManager) List(_ context.Context, args *api.EdgeManagerListArgs) (*api.EdgeManagerListReply, error)
List lists the managed edges.
type SupernodeManager ¶
type SupernodeManager struct { api.UnimplementedSupernodeManagerServer SupernodesManaged map[string]*workers.Supernode }
SupernodeManager manages supernodes.
func (*SupernodeManager) Create ¶
func (s *SupernodeManager) Create(_ context.Context, args *api.Supernode) (*api.SupernodeManagedId, error)
Create creates a supernode.
func (*SupernodeManager) Delete ¶
func (s *SupernodeManager) Delete(_ context.Context, args *api.SupernodeManagedId) (*api.SupernodeManagedId, error)
Delete deletes a supernode.
func (*SupernodeManager) Get ¶
func (s *SupernodeManager) Get(_ context.Context, args *api.SupernodeManagedId) (*api.SupernodeManaged, error)
Get gets one of the managed supernodes.
func (*SupernodeManager) List ¶
func (s *SupernodeManager) List(_ context.Context, args *api.SupernodeManagerListArgs) (*api.SupernodeManagerListReply, error)
List lists the managed supernodes.
Click to show internal directories.
Click to hide internal directories.