protocol

package
v0.0.0-...-084a6c0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol interface {
	AddListener(event int, channel chan<- json.RawMessage)
	RemoveListener(event int, channel chan<- json.RawMessage)
	RemoveAllListeners(event int)
	Once(event int, channel chan<- json.RawMessage)
	ListenerCount(event int) int
	Connect() (bool, error)
	Send([]byte, types.QueryOptions, chan<- *types.KuzzleResponse, string) error
	Close() error
	State() int
	EmitEvent(int, interface{})
	RegisterSub(string, string, json.RawMessage, bool, chan<- types.NotificationResult, chan<- interface{})
	UnregisterSub(string)
	CancelSubs()
	RequestHistory() map[string]time.Time
	IsReady() bool

	// property getters
	Host() string
	Port() int
	SslConnection() bool
}

Protocol provides functions to manage many connection type (websocket...)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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