Upgrading server package dependencies (#12559)

Этот коммит содержится в:
Jesús Espino
2019-10-02 20:13:38 +02:00
коммит произвёл GitHub
родитель c19bddb51b
Коммит 2f77622b89
497 изменённых файлов: 23671 добавлений и 30873 удалений

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
)