17 lines
624 B
Go
17 lines
624 B
Go
// Package messageconstraints contains limits shared by message admission
|
|
// paths without making either the task model or queue implementation depend
|
|
// on the other.
|
|
package messageconstraints
|
|
|
|
const (
|
|
// MaxAttachmentBytes is the maximum total payload size accepted for one
|
|
// message.
|
|
MaxAttachmentBytes int64 = 100 * 1024 * 1024
|
|
// MaxAttachmentCount is the maximum number of attachments accepted for one
|
|
// message.
|
|
MaxAttachmentCount = 10
|
|
// MaxContextFilesPerMessage is the maximum number of context-file
|
|
// descriptors retained when compatible queued messages are folded.
|
|
MaxContextFilesPerMessage = 200
|
|
)
|