events

package
v0.0.0-...-7fb72bf Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EventIDUserRegistered stream.EventID = "UserRegistered"

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer interface {
	// PostRegisteredEvent posts a UserRegistered event to the stream
	PostRegisteredEvent(ctx context.Context, ev *authevents.UserRegistered) error

	// Close gives underlying resources a chance to flush and close gracefully
	Close() error
}

Writer can write to an event stream with predefined event types

func NewWriter

func NewWriter(streamWriter stream.Writer) Writer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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