Documentation ¶
Index ¶
- type LocalStream
- func (ls *LocalStream) CreateStream(ctx context.Context, name string, subjects []string) error
- func (ls *LocalStream) Process() error
- func (ls *LocalStream) Publish(ctx context.Context, topic string, data []byte) error
- func (ls *LocalStream) Subscribe(ctx context.Context, _ string, topic string, handler func([]byte) error) error
- type NATSStream
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStream ¶
type LocalStream struct { Streams map[string]func([]byte) error CreatedStreams []string Messages map[string][][]byte FailToPublish bool // contains filtered or unexported fields }
func NewLocalStream ¶
func NewLocalStream() (*LocalStream, error)
func (*LocalStream) CreateStream ¶
func (*LocalStream) Process ¶
func (ls *LocalStream) Process() error
type NATSStream ¶
type NATSStream struct {
// contains filtered or unexported fields
}
func (*NATSStream) CreateStream ¶
Click to show internal directories.
Click to hide internal directories.