notify

package
v0.0.0-...-4f2055d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP = "http"
	GRPC = "grpc"
)

Variables

This section is empty.

Functions

func InitGrpc

func InitGrpc() *notificationGrpc

func InitHttp

func InitHttp() *notificationHTTP

Types

type Notification

type Notification interface {
	OnClientConnect(data interface{}) bool
	OnClientDisconnected(data interface{}) bool
	OnSubscribe(data interface{}) bool
	OnUnSubscribe(data interface{}) bool
	OnAgentConnect(data interface{}) bool
	OnAgentDisconnected(data interface{}) bool
}

func NewNotify

func NewNotify(name string) Notification

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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