pubsub

package
v0.0.0-...-248868a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler interface {
	Handle(ctx context.Context, message interface{}) error
}

type GokaCodec

type GokaCodec interface {
	Encode(value interface{}) ([]byte, error)
	Decode(data []byte) (interface{}, error)
}

type GokaContext

type GokaContext interface {
	goka.Context
}

type GokaEventHandler

type GokaEventHandler interface {
	Handle(ctx goka.Context, message interface{})
}

type MessageHeaders

type MessageHeaders map[string]string

func (MessageHeaders) Add

func (h MessageHeaders) Add(key, value string)

type Publisher

type Publisher interface {
	Send(ctx context.Context, key string, message interface{}) error
	Close() error
}

type Subscriber

type Subscriber interface {
	Subscribe()
	Close() error
}

type ViewTable

type ViewTable interface {
	Open()
	Get(key string) (data interface{}, err error)
	Close()
}

Jump to

Keyboard shortcuts

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