Upgrading server package dependencies (#12559)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c19bddb51b
Коммит
2f77622b89
9
vendor/github.com/segmentio/analytics-go/message.go
сгенерированный
поставляемый
9
vendor/github.com/segmentio/analytics-go/message.go
сгенерированный
поставляемый
@@ -33,9 +33,12 @@ type Callback interface {
|
||||
// and therefore can be passed to the analytics.Client.Send method.
|
||||
type Message interface {
|
||||
|
||||
// Validates the internal structure of the message, the method must return
|
||||
// Validate validates the internal structure of the message, the method must return
|
||||
// nil if the message is valid, or an error describing what went wrong.
|
||||
validate() error
|
||||
Validate() error
|
||||
|
||||
// internal is an unexposed interface function to ensure only types defined within this package can satisfy the Message interface. Invoking this method will panic.
|
||||
internal()
|
||||
}
|
||||
|
||||
// Takes a message id as first argument and returns it, unless it's the zero-
|
||||
@@ -124,5 +127,5 @@ func (q *messageQueue) flush() (msgs []message) {
|
||||
|
||||
const (
|
||||
maxBatchBytes = 500000
|
||||
maxMessageBytes = 15000
|
||||
maxMessageBytes = 32000
|
||||
)
|
||||
|
||||
Ссылка в новой задаче
Block a user