Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewConn(ctx context.Context, plugins ...Plugin) (*nats.Conn, error)
- func NewConnWithConfigPath(ctx context.Context, path string) (*nats.Conn, error)
- func NewConnWithOptions(ctx context.Context, options *Options, plugins ...Plugin) (*nats.Conn, error)
- type Options
- type Plugin
- type Publisher
- func NewPublisher(ctx context.Context, middlewares ...PublisherMiddleware) (*Publisher, error)
- func NewPublisherWithConfigPath(ctx context.Context, path string, middlewares ...PublisherMiddleware) (*Publisher, error)
- func NewPublisherWithOptions(ctx context.Context, options *Options, middlewares ...PublisherMiddleware) (*Publisher, error)
- type PublisherMiddleware
- type Subscriber
- func NewSubscriber(ctx context.Context, msgHandlers ...msgHandler) (*Subscriber, error)
- func NewSubscriberWithConfigPath(ctx context.Context, path string, msgHandlers ...msgHandler) (*Subscriber, error)
- func NewSubscriberWithOptions(ctx context.Context, options *Options, msgHandlers ...msgHandler) (*Subscriber, error)
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func NewConnWithConfigPath ¶
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(ctx context.Context, middlewares ...PublisherMiddleware) (*Publisher, error)
func NewPublisherWithOptions ¶
type PublisherMiddleware ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(ctx context.Context, msgHandlers ...msgHandler) (*Subscriber, error)
func NewSubscriberWithConfigPath ¶
func NewSubscriberWithConfigPath(ctx context.Context, path string, msgHandlers ...msgHandler) (*Subscriber, error)
func NewSubscriberWithOptions ¶
func NewSubscriberWithOptions(ctx context.Context, options *Options, msgHandlers ...msgHandler) (*Subscriber, error)
func (*Subscriber) Conn ¶
func (p *Subscriber) Conn() *nats.Conn
Click to show internal directories.
Click to hide internal directories.