visglb

package module
v0.0.0-...-69dfd20 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 3 Imported by: 0

README

visglb

Visualized ISGLB

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Service
}

func NewServer

func NewServer(algorithm *VisualizedAlgorithm) Server

func (Server) HandleFetchReportListJSON

func (s Server) HandleFetchReportListJSON(w http.ResponseWriter, _ *http.Request)

func (Server) HandleFetchStatusListJSON

func (s Server) HandleFetchStatusListJSON(w http.ResponseWriter, _ *http.Request)

func (Server) HandleGetStatusListJSON

func (s Server) HandleGetStatusListJSON(w http.ResponseWriter, _ *http.Request)

type Service

type Service struct {
	*VisualizedAlgorithm
}

func NewService

func NewService(algorithm *VisualizedAlgorithm) Service

func (Service) FetchReportListJSON

func (s Service) FetchReportListJSON() []byte

func (Service) FetchStatusListJSON

func (s Service) FetchStatusListJSON() []byte

func (Service) GetStatusListJSON

func (s Service) GetStatusListJSON() []byte

type VisualizedAlgorithm

type VisualizedAlgorithm struct {
	pb.ProtobufAlgorithm
	// contains filtered or unexported fields
}

func Visualize

func Visualize(algorithm pb.ProtobufAlgorithm) *VisualizedAlgorithm

func (*VisualizedAlgorithm) FetchReportList

func (a *VisualizedAlgorithm) FetchReportList() []*pb.QualityReport

FetchReportList fetch the report list TODO: implement pubsub and implement fetch for multi user

func (*VisualizedAlgorithm) FetchStatusMap

func (a *VisualizedAlgorithm) FetchStatusMap() map[string]*pb.SFUStatus

FetchStatusMap fetch the status map and get the latest status TODO: implement pubsub and implement fetch for multi user

func (*VisualizedAlgorithm) GetStatusMap

func (a *VisualizedAlgorithm) GetStatusMap() map[string]*pb.SFUStatus

GetStatusMap get the current status map

func (*VisualizedAlgorithm) UpdateSFUStatus

func (a *VisualizedAlgorithm) UpdateSFUStatus(current []*pb.SFUStatus, reports []*pb.QualityReport) (expected []*pb.SFUStatus)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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