server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObserverServer

type ObserverServer interface {
	Start() error
	Close()

	Monitors() dependents.MonitorDependentsManager
	GetAddr() string
	GetKey() string

	SetPushFirst(f func(ctx context.Context, req *msaObserver.RequestPushFirst) (*msaObserver.ResponsePushFirst, error))
	SetPushStats(f func(ctx context.Context, req *msaObserver.RequestPushStats) (*msaObserver.Response, error))
	SetPushStatus(f func(ctx context.Context, req *msaObserver.RequestPushStatus) (*msaObserver.Response, error))
	SetWho(f func(ctx context.Context, req *msaObserver.RequestWho) (*msaObserver.ResponseWho, error))
	SetRestartService(f func(ctx context.Context, req *msaObserver.RequestRestartService) (*msaObserver.Response, error))
}

func NewObserverServer

func NewObserverServer(key, addr string) ObserverServer

Jump to

Keyboard shortcuts

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