* MM-36486: Bump dependencies

https://mattermost.atlassian.net/browse/MM-36486

```release-note
NONE
```

* Added collector dependency

* Trigger CI

* Trigger CI

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2021-06-29 20:49:19 +05:30
коммит произвёл GitHub
родитель f74f3ec26e
Коммит ec8aaec5ce
265 изменённых файлов: 17829 добавлений и 6859 удалений

40
vendor/github.com/tinylib/msgp/msgp/read_bytes.go сгенерированный поставляемый
Просмотреть файл

@@ -253,6 +253,46 @@ func ReadArrayHeaderBytes(b []byte) (sz uint32, o []byte, err error) {
}
}
// ReadBytesHeader reads the 'bin' header size
// off of 'b' and returns the size and remaining bytes.
// Possible errors:
// - ErrShortBytes (too few bytes)
// - TypeError{} (not a bin object)
func ReadBytesHeader(b []byte) (sz uint32, o []byte, err error) {
if len(b) < 1 {
return 0, nil, ErrShortBytes
}
switch b[0] {
case mbin8:
if len(b) < 2 {
err = ErrShortBytes
return
}
sz = uint32(b[1])
o = b[2:]
return
case mbin16:
if len(b) < 3 {
err = ErrShortBytes
return
}
sz = uint32(big.Uint16(b[1:]))
o = b[3:]
return
case mbin32:
if len(b) < 5 {
err = ErrShortBytes
return
}
sz = big.Uint32(b[1:])
o = b[5:]
return
default:
err = badPrefix(BinType, b[0])
return
}
}
// ReadNilBytes tries to read a "nil" byte
// off of 'b' and return the remaining bytes.
// Possible errors:

20
vendor/github.com/tinylib/msgp/msgp/write_bytes.go сгенерированный поставляемый
Просмотреть файл

@@ -193,6 +193,26 @@ func AppendBytes(b []byte, bts []byte) []byte {
return o[:n+copy(o[n:], bts)]
}
// AppendBytesHeader appends an 'bin' header with
// the given size to the slice.
func AppendBytesHeader(b []byte, sz uint32) []byte {
var o []byte
var n int
switch {
case sz <= math.MaxUint8:
o, n = ensure(b, 2)
prefixu8(o[n:], mbin8, uint8(sz))
return o
case sz <= math.MaxUint16:
o, n = ensure(b, 3)
prefixu16(o[n:], mbin16, uint16(sz))
return o
}
o, n = ensure(b, 5)
prefixu32(o[n:], mbin32, sz)
return o
}
// AppendBool appends a bool to the slice
func AppendBool(b []byte, t bool) []byte {
if t {