websocket

package
v1.16.12-beta052 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Websocket

type Websocket struct {
	Id       string
	Conn     *websocket.Conn
	Selector string
	Events   []testkube.EventType
}

type WebsocketListener

type WebsocketListener struct {
	Log *zap.SugaredLogger

	Websockets []Websocket
	// contains filtered or unexported fields
}

func NewWebsocketListener

func NewWebsocketListener() *WebsocketListener

func (*WebsocketListener) Events

func (l *WebsocketListener) Events() []testkube.EventType

func (*WebsocketListener) Kind

func (l *WebsocketListener) Kind() string

func (*WebsocketListener) Metadata

func (l *WebsocketListener) Metadata() map[string]string

func (*WebsocketListener) Name added in v1.5.17

func (l *WebsocketListener) Name() string

func (*WebsocketListener) Notify

func (l *WebsocketListener) Notify(event testkube.Event) (result testkube.EventResult)

func (*WebsocketListener) Selector

func (l *WebsocketListener) Selector() string

type WebsocketLoader

type WebsocketLoader struct {
	Listener *WebsocketListener
	// contains filtered or unexported fields
}

func NewWebsocketLoader

func NewWebsocketLoader() *WebsocketLoader

func (*WebsocketLoader) Add

func (l *WebsocketLoader) Add(conn *websocket.Conn) chan bool

func (*WebsocketLoader) Kind

func (l *WebsocketLoader) Kind() string

func (*WebsocketLoader) Load

func (l *WebsocketLoader) Load() (listeners common.Listeners, err error)

Jump to

Keyboard shortcuts

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