Documentation ¶
Index ¶
Constants ¶
View Source
const (
ExtRoot = root + ".ext"
)
Variables ¶
This section is empty.
Functions ¶
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 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.