handlers

package
v0.0.0-...-f25915b Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeHandler

func InitializeHandler() (handler *module, err error)

Types

type HandlerFunc

type HandlerFunc interface {
	// Monitor
	MonitorGetAll() (applicationInfos []datatransfers.ApplicationInfo, err error)

	// Application
	ApplicationGetAll() (applicationInfos []datatransfers.ApplicationInfo, err error)
	ApplicationGetOne(applicationID string) (applicationInfo datatransfers.ApplicationInfo, err error)
	ApplicationCreate(applicationInfo datatransfers.ApplicationInfo) (applicationID string, err error)
	ApplicationUpdate(applicationInfo datatransfers.ApplicationInfo) (err error)
	ApplicationDelete(applicationID string) (err error)

	// Service
	ServiceGetAll(applicationID string) (serviceInfos []datatransfers.ServiceInfo, err error)
	ServiceGetOne(serviceID, applicationID string) (applicationInfo datatransfers.ServiceInfo, err error)
	ServiceCreate(serviceInfo datatransfers.ServiceInfo) (serviceID string, err error)
	ServiceUpdate(serviceInfo datatransfers.ServiceInfo) (err error)
	ServiceDelete(serviceID, applicationID string) (err error)

	// Tracker
	InitializeTrackerServer(port int) (err error)

	// Scheduler
	InitializeScheduler() (err error)
	TriggerTracking()
}

type TrackerClient

type TrackerClient interface {
	Ping() (err error)
	SetStatus(pingTime, latency int64)
	Status() (pingTime, latency int64)
	SendTrackingRequest(request *pb.TrackingRequest) (err error)
}

type TrackerServer

type TrackerServer interface {
	pb.TrackerServer
	PingTracker(trackerID string) (err error)
	SendTrackingRequest(request *pb.TrackingRequest) (err error)
}

Jump to

Keyboard shortcuts

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