handler

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescriptorWalletNotifierHandler

type DescriptorWalletNotifierHandler interface {
	Start()
	Stop()
	HandleSubscriptionRequestWs(w http.ResponseWriter, req *http.Request)
	HandleSubscriptionRequestHttp(w http.ResponseWriter, req *http.Request)
}

func NewDescriptorWalletNotifierHandler

func NewDescriptorWalletNotifierHandler(
	notificationSvc application.NotificationService,
) DescriptorWalletNotifierHandler

type HttpSubscriber

type HttpSubscriber struct {
	ID          SubscriberID
	EndpointUrl string
}

func (*HttpSubscriber) SubscriberID

func (h *HttpSubscriber) SubscriberID() SubscriberID

func (*HttpSubscriber) Type

func (h *HttpSubscriber) Type() SubscriberType

type Subscriber

type Subscriber interface {
	Type() SubscriberType
	SubscriberID() SubscriberID
}

type SubscriberID

type SubscriberID uuid.UUID

type SubscriberType

type SubscriberType string

type WsSubscriber

type WsSubscriber struct {
	ID           SubscriberID
	WsConnection *websocket.Conn
}

func (*WsSubscriber) SubscriberID

func (w *WsSubscriber) SubscriberID() SubscriberID

func (*WsSubscriber) Type

func (w *WsSubscriber) Type() SubscriberType

Jump to

Keyboard shortcuts

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