fake

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	FakeID              string `json:"id"`
	FakeType            string `json:"type"`
	FakeCorrelationID   string `json:"correlation_id"`
	FakeDataContentType string `json:"data_content_type"`
	FakeData            string `json:"data"`
}

func (Event) Accept

func (f Event) Accept(ctx context.Context, visitor EventHandler) errors.ProcessingError

func (Event) CorrelationID

func (f Event) CorrelationID() string

func (Event) DataContentType

func (f Event) DataContentType() string

func (Event) ID

func (f Event) ID() string

func (Event) Serialize

func (f Event) Serialize() ([]byte, error)

func (Event) Type

func (f Event) Type() string

type EventHandler added in v0.0.8

type EventHandler interface {
	HandleFakeEvent(ctx context.Context, e Event) errors.ProcessingError
}

Jump to

Keyboard shortcuts

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