Documentation ¶
Index ¶
- Variables
- type Config
- type Handler
- type JetstreamClient
- func (c *JetstreamClient) Close()
- func (c *JetstreamClient) Connect() (err error)
- func (c *JetstreamClient) Drain() error
- func (c *JetstreamClient) Publish(ctx context.Context, subject string, data []byte) (*PubAck, error)
- func (c *JetstreamClient) Subscribe(subject string, handler Handler, opts ...nats.SubOpt) (*nats.Subscription, error)
- func (c *JetstreamClient) Unsubscribe() error
- type Logger
- type Message
- type NatsClient
- func (c *NatsClient) Close()
- func (c *NatsClient) Connect() (err error)
- func (c *NatsClient) Drain() error
- func (c *NatsClient) Publish(ctx context.Context, subject string, data []byte) error
- func (c *NatsClient) Subscribe(subject string, handler Handler) (*nats.Subscription, error)
- func (c *NatsClient) Unsubscribe() error
- type NatsOption
- type Option
- type PubAck
- type StreamConfig
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type JetstreamClient ¶ added in v0.6.1
type JetstreamClient struct {
// contains filtered or unexported fields
}
func NewJetstream ¶ added in v0.6.1
func NewJetstream(config *Config, opts ...Option) (*JetstreamClient, error)
func (*JetstreamClient) Close ¶ added in v0.6.1
func (c *JetstreamClient) Close()
func (*JetstreamClient) Connect ¶ added in v0.6.1
func (c *JetstreamClient) Connect() (err error)
func (*JetstreamClient) Drain ¶ added in v0.6.1
func (c *JetstreamClient) Drain() error
func (*JetstreamClient) Subscribe ¶ added in v0.6.1
func (c *JetstreamClient) Subscribe(subject string, handler Handler, opts ...nats.SubOpt) (*nats.Subscription, error)
func (*JetstreamClient) Unsubscribe ¶ added in v0.6.1
func (c *JetstreamClient) Unsubscribe() error
type NatsClient ¶ added in v0.6.1
type NatsClient struct {
// contains filtered or unexported fields
}
func (*NatsClient) Close ¶ added in v0.6.1
func (c *NatsClient) Close()
func (*NatsClient) Connect ¶ added in v0.6.1
func (c *NatsClient) Connect() (err error)
func (*NatsClient) Drain ¶ added in v0.6.1
func (c *NatsClient) Drain() error
func (*NatsClient) Subscribe ¶ added in v0.6.1
func (c *NatsClient) Subscribe(subject string, handler Handler) (*nats.Subscription, error)
func (*NatsClient) Unsubscribe ¶ added in v0.6.1
func (c *NatsClient) Unsubscribe() error
type NatsOption ¶ added in v0.3.1
type Option ¶ added in v0.3.0
type Option func(*options)
func WithNatsOptions ¶ added in v0.3.0
func WithNatsOptions(opts ...NatsOption) Option
func WithStreamConfig ¶ added in v0.3.0
func WithStreamConfig(cfg *StreamConfig) Option
func WithTracer ¶ added in v0.3.0
func WithWarnHandler ¶ added in v0.6.1
type StreamConfig ¶ added in v0.3.1
type StreamConfig = nats.StreamConfig
Click to show internal directories.
Click to hide internal directories.