service

package
v0.0.0-...-e121adf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HANDLE_START   = 10000
	GC_FREQUENCY   = 3 * time.Minute // frequency to invoke garbage collection
	GC_THRESHOLD   = 5 * time.Minute // TTL threshold
	GC_RELATIVE    = true            // garbage collect based on relative timestamp
	HOLD_TIME      = 3 * time.Minute // time to hold ignored reports
	HOLD_LIST_LEN  = 60              // number of items to hold at most for each subject
	DEFAULT_DBFILE = "deephealth.db" // default database file for storing local observations
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthGServer

type HealthGServer struct {
	dt.HealthServerConfig
	// contains filtered or unexported fields
}

func NewHealthGServer

func NewHealthGServer(config *dt.HealthServerConfig) *HealthGServer

func (*HealthGServer) AnalyzeReport

func (self *HealthGServer) AnalyzeReport(report *pb.Report, check_hold bool)

func (*HealthGServer) DumpInference

func (self *HealthGServer) DumpInference(ctx context.Context, in *pb.Empty) (*pb.DumpInferenceReply, error)

func (*HealthGServer) DumpPanorama

func (self *HealthGServer) DumpPanorama(ctx context.Context, in *pb.Empty) (*pb.DumpPanoramaReply, error)

func (*HealthGServer) GC

func (self *HealthGServer) GC()

func (*HealthGServer) GetId

func (self *HealthGServer) GetId(ctx context.Context, in *pb.Empty) (*pb.Peer, error)

func (*HealthGServer) GetInference

func (self *HealthGServer) GetInference(ctx context.Context, in *pb.GetInferenceRequest) (*pb.Inference, error)

func (*HealthGServer) GetLatestReport

func (self *HealthGServer) GetLatestReport(ctx context.Context, in *pb.GetReportRequest) (*pb.Report, error)

func (*HealthGServer) GetObservedSubjects

func (self *HealthGServer) GetObservedSubjects(ctx context.Context, in *pb.Empty) (*pb.GetObservedSubjectsReply, error)

func (*HealthGServer) GetPanorama

func (self *HealthGServer) GetPanorama(ctx context.Context, in *pb.GetPanoramaRequest) (*pb.Panorama, error)

func (*HealthGServer) GetPeers

func (self *HealthGServer) GetPeers(ctx context.Context, in *pb.Empty) (*pb.GetPeerReply, error)

func (*HealthGServer) GetView

func (self *HealthGServer) GetView(ctx context.Context, in *pb.GetViewRequest) (*pb.View, error)

func (*HealthGServer) LearnReport

func (self *HealthGServer) LearnReport(ctx context.Context, in *pb.LearnReportRequest) (*pb.LearnReportReply, error)

func (*HealthGServer) Observe

func (self *HealthGServer) Observe(ctx context.Context, in *pb.ObserveRequest) (*pb.ObserveReply, error)

func (*HealthGServer) Ping

func (self *HealthGServer) Ping(ctx context.Context, in *pb.PingRequest) (*pb.PingReply, error)

func (*HealthGServer) Register

func (self *HealthGServer) Register(ctx context.Context, in *pb.RegisterRequest) (*pb.RegisterReply, error)

func (*HealthGServer) Start

func (self *HealthGServer) Start(errch chan error) error

func (*HealthGServer) Stop

func (self *HealthGServer) Stop(graceful bool) error

func (*HealthGServer) StopObserving

func (self *HealthGServer) StopObserving(ctx context.Context, in *pb.ObserveRequest) (*pb.ObserveReply, error)

func (*HealthGServer) SubmitReport

func (self *HealthGServer) SubmitReport(ctx context.Context, in *pb.SubmitReportRequest) (*pb.SubmitReportReply, error)

Jump to

Keyboard shortcuts

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