client

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeErrorWithDecoder added in v0.12.0

func DecodeErrorWithDecoder(header nats.Header, payload []byte, errorDecoder ErrorDecoderFn) error

Types

type ErrorDecoderFn

type ErrorDecoderFn func(code string, description string, payload []byte) error

type Options

type Options struct {
	NatsConnection      *nats.Conn
	Encoder             encoder.Encoder
	IsValidationEnabled bool
	GetSubject          subject.GetSubjectFn
	Timeout             time.Duration
	ErrorDecoder        ErrorDecoderFn
	Telemetry           telemetry.Options
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL