Affected by GO-2022-0915
and 1 other vulnerabilities
GO-2022-0915: Improper input validation in CNCF Cortex in github.com/cortexproject/cortex
GO-2024-3036: cortex establishes TLS connections with `InsecureSkipVerify` set to `true` in github.com/cortexproject/cortex
package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Feb 5, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
¶
type Codec interface {
Decode([]byte) (interface{}, error)
Encode(interface{}) ([]byte, error)
}
Codec allows KV clients to serialise and deserialise values.
type Proto struct {
Factory func() proto.Message
}
Proto is a Codec for proto/snappy
func (p Proto) Decode(bytes []byte) (interface{}, error)
Decode implements Codec
func (p Proto) Encode(msg interface{}) ([]byte, error)
Encode implements Codec
String is a code for strings.
func (String) Decode(bytes []byte) (interface{}, error)
Decode implements Codec.
func (String) Encode(msg interface{}) ([]byte, error)
Encode implements Codec.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.