Documentation
¶
Index ¶
- func ConcurrentSize(config Config) int
- func Data(msg Msg) []byte
- func Header(msg Msg) map[string][]string
- func MaxConcurrentSize(config Config) uint64
- func ReadTimeout(config Config) time.Duration
- func Subject[T subjectGetter](value T) string
- type Client
- type Config
- type Logger
- type Meter
- type Msg
- type MsgHandler
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcurrentSize ¶ added in v1.1.0
ConcurrentSize returns config concurrent size.
func MaxConcurrentSize ¶ added in v1.1.0
MaxConcurrentSize returns config maximum concurrent size.
func ReadTimeout ¶ added in v1.1.0
ReadTimeout returns config read timeout.
Types ¶
type Msg ¶
type Msg interface {
// Deprecated: use Subject.
GetSubject() string
IsReply() bool
ReplyTo() string
Copy(subject string) Msg
SetHeader(key, value string)
Respond([]byte) error
// Deprecated: use Header.
GetHeader() map[string][]string
// Deprecated: use Data.
GetData() []byte
RespondMsg(Msg) error
}
Click to show internal directories.
Click to hide internal directories.