pubsub

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(
	secureStore securestore.SecureStorage,
) (ports.SecurePubSub, error)

Types

type Subscription

type Subscription struct {
	ID       string `json:"id"`
	Event    string `json:"event"`
	Endpoint string `json:"endpoint"`
	Secret   string `json:"secret"`
}

func NewSubscription

func NewSubscription(event, endpoint, secret string) (*Subscription, error)

func NewSubscriptionFromBytes

func NewSubscriptionFromBytes(buf []byte) (*Subscription, error)

func (*Subscription) Id

func (h *Subscription) Id() string

func (*Subscription) IsSecured

func (h *Subscription) IsSecured() bool

func (*Subscription) NotifyAt

func (h *Subscription) NotifyAt() string

func (*Subscription) Serialize

func (h *Subscription) Serialize() []byte

func (*Subscription) Topic

func (h *Subscription) Topic() string

Jump to

Keyboard shortcuts

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