notificationhandler

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWebsocketActions

type IWebsocketActions interface {
	ReadMessage() (int, []byte, error)
	Close() error
	WritePingMessage() error
	DefaultDialer(requestHeader http.Header) (*http.Response, error)
}

IWebsocketActions -

type NotificationHandler

type NotificationHandler struct {
	// contains filtered or unexported fields
}

func NewNotificationHandler

func NewNotificationHandler(pool *ants.PoolWithFunc, config config.IConfig) *NotificationHandler

func (*NotificationHandler) WebsocketConnection

func (notification *NotificationHandler) WebsocketConnection(ctx context.Context) error

type WebsocketActions

type WebsocketActions struct {
	// contains filtered or unexported fields
}

WebsocketActions -

func NewWebsocketActions

func NewWebsocketActions(host string) *WebsocketActions

NewWebsocketActions -

func (*WebsocketActions) Close

func (wa *WebsocketActions) Close() error

Close -

func (*WebsocketActions) DefaultDialer

func (wa *WebsocketActions) DefaultDialer(requestHeader http.Header) (*http.Response, error)

DefaultDialer -

func (*WebsocketActions) ReadMessage

func (wa *WebsocketActions) ReadMessage() (int, []byte, error)

ReadMessage -

func (*WebsocketActions) WritePingMessage

func (wa *WebsocketActions) WritePingMessage() error

WritePingMessage -

Jump to

Keyboard shortcuts

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