Documentation
¶
Index ¶
- type AckFn
- type EventBatcher
- type EventStream
- type JetstreamEventStream
- type Message
- type StanClient
- type StanClientConnection
- func (c *StanClientConnection) Check() error
- func (c *StanClientConnection) Close() error
- func (c *StanClientConnection) PublishAsync(subject string, data []byte, ah stan.AckHandler) (string, error)
- func (c *StanClientConnection) QueueSubscribe(subject, qgroup string, cb stan.MsgHandler, opts ...stan.SubscriptionOption) error
- type StanEventStream
- type TimedEventBatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBatcher ¶ added in v0.2.12
type EventStream ¶
type JetstreamEventStream ¶
type JetstreamEventStream struct {
// contains filtered or unexported fields
}
func NewJetstreamEventStream ¶
func NewJetstreamEventStream( opts *configuration.JetstreamConfig, consumerOpts ...jsm.ConsumerOption) (*JetstreamEventStream, error)
func (*JetstreamEventStream) Check ¶
func (c *JetstreamEventStream) Check() error
func (*JetstreamEventStream) Close ¶
func (c *JetstreamEventStream) Close() error
func (*JetstreamEventStream) Publish ¶
func (c *JetstreamEventStream) Publish(events []*api.EventMessage) []error
type Message ¶ added in v0.2.12
type Message struct { EventMessage *api.EventMessage Ack AckFn }
type StanClient ¶
type StanClientConnection ¶
type StanClientConnection struct {
// contains filtered or unexported fields
}
func NewStanClientConnection ¶
func NewStanClientConnection( stanClusterID, clientID string, servers []string, options ...stan.Option) (*StanClientConnection, error)
func (*StanClientConnection) Check ¶
func (c *StanClientConnection) Check() error
func (*StanClientConnection) Close ¶
func (c *StanClientConnection) Close() error
func (*StanClientConnection) PublishAsync ¶
func (c *StanClientConnection) PublishAsync(subject string, data []byte, ah stan.AckHandler) (string, error)
func (*StanClientConnection) QueueSubscribe ¶
func (c *StanClientConnection) QueueSubscribe(subject, qgroup string, cb stan.MsgHandler, opts ...stan.SubscriptionOption) error
type StanEventStream ¶
type StanEventStream struct {
// contains filtered or unexported fields
}
func NewStanEventStream ¶
func NewStanEventStream(subject string, stanClient StanClient, subscriptionOptions ...stan.SubscriptionOption) *StanEventStream
func (*StanEventStream) Close ¶
func (stream *StanEventStream) Close() error
func (*StanEventStream) Publish ¶
func (stream *StanEventStream) Publish(events []*api.EventMessage) []error
type TimedEventBatcher ¶ added in v0.2.12
type TimedEventBatcher struct {
// contains filtered or unexported fields
}
func NewTimedEventBatcher ¶ added in v0.2.12
func (*TimedEventBatcher) Register ¶ added in v0.2.12
func (b *TimedEventBatcher) Register(callback eventBatchCallback)
Process is started when the callback is registered
func (*TimedEventBatcher) Report ¶ added in v0.2.12
func (b *TimedEventBatcher) Report(event *Message) error
func (*TimedEventBatcher) Stop ¶ added in v0.2.12
func (b *TimedEventBatcher) Stop() error
Click to show internal directories.
Click to hide internal directories.