vcpubsub

package
v1.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

Publisher implements a publisher that publishes witnessed verifiable credentials to a message queue.

func NewPublisher

func NewPublisher(pubSub pubSub) *Publisher

NewPublisher returns a new verifiable credential publisher.

func (*Publisher) Publish

func (h *Publisher) Publish(ctx context.Context, anchorLinkset *linkset.Linkset) error

Publish publishes a verifiable credential to a message queue for processing.

type Subscriber

type Subscriber struct {
	*lifecycle.Lifecycle
	// contains filtered or unexported fields
}

Subscriber implements a subscriber that processes witnessed verifiable credentials from a message queue.

func NewSubscriber

func NewSubscriber(pubSub pubSub, processor anchorProcessor, subscriberPoolSize int) (*Subscriber, error)

NewSubscriber returns a new verifiable credential subscriber.

Jump to

Keyboard shortcuts

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