presence

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	AddCocoNodePresence(c *gin.Context)
	AddMixNodePresence(c *gin.Context)
	Topology(c *gin.Context)
	RegisterRoutes(router *gin.Engine)
}

Controller is the presence controller interface

func New

func New() Controller

New constructor

type Db

type Db interface {
	AddCoco(models.Presence)
	AddMix(models.MixNodePresence)
	AddMixProvider(models.MixProviderPresence)
	Topology() models.Topology
}

Db holds presence information

type Service

type Service interface {
	NotifyMixNodePresence(up models.MixHostInfo)
	NotifyCocoNodePresence(up models.HostInfo)
	Topology() models.Topology
}

Service defines the REST service interface for presence.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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