Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
ConnectionOptions
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(options ConnectionOptions) (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) IsConnected ¶
func (c *Connection) IsConnected() bool
func (*Connection) Subscribe ¶
func (c *Connection) Subscribe(ctx context.Context, options SubscriptionOptions) error
type ConnectionOptions ¶
type ConnectionOptions struct {
Endpoint string
Name string
Logger *zap.SugaredLogger
CredentialsFilePath string
Registerer prometheus.Registerer
}
type EventDisposition ¶
type EventDisposition string
const ( EventDispositionAccepted EventDisposition = "accepted" EventDispositionErrored EventDisposition = "errored" EventDispositionIgnored EventDisposition = "ignored" )
type MessageHandler ¶
type MessageHandler func(msg *Msg) (EventDisposition, error)
type SubscriptionOptions ¶
Click to show internal directories.
Click to hide internal directories.