Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- type Publisher
- func (p *Publisher) Publish(subj string, msg []byte, headers ...string) error
- func (p *Publisher) PublishWithContext(ctx context.Context, subj string, msg []byte, headers ...string) error
- func (p *Publisher) Requester(subj string, data []byte, timeout time.Duration, headers ...string) ([]byte, error)
- func (p *Publisher) RequesterWithContext(ctx context.Context, subj string, msg []byte, headers ...string) ([]byte, error)
Constants ¶
View Source
const DefaultPublishTimeout = 10 * time.Second
Variables ¶
View Source
var ( ErrWrongCountOfArguments = errors.New("error wrong count of arguments") // ErrHandlerFail is the sentinel error for handlerError wrapped errors ErrHandlerFail = errors.New("handler error") )
All kind of errors for nats
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.