services

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

Delete deletes a edge.

func (*EdgeManager) Get

Get gets one of the managed edges.

func (*EdgeManager) List

List lists the managed edges.

type SupernodeManager

type SupernodeManager struct {
	api.UnimplementedSupernodeManagerServer
	SupernodesManaged map[string]*workers.Supernode
}

SupernodeManager manages supernodes.

func (*SupernodeManager) Create

Create creates a supernode.

func (*SupernodeManager) Delete

Delete deletes a supernode.

func (*SupernodeManager) Get

Get gets one of the managed supernodes.

func (*SupernodeManager) List

List lists the managed supernodes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL