redis

package
v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRedis = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRedis   = fmt.Errorf("proto: integer overflow")
)
View Source
var CompressionJSONMarshaler = new(jsonpb.Marshaler)

CompressionJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Compression. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var CompressionJSONUnmarshaler = new(jsonpb.Unmarshaler)

CompressionJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Compression. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var Compression_Algorithm_name = map[int32]string{
	0: "SNAPPY",
}
View Source
var Compression_Algorithm_value = map[string]int32{
	"SNAPPY": 0,
}
View Source
var ReadStrategy_name = map[int32]string{
	0: "MASTER",
	1: "REPLICA",
	2: "BOTH",
}
View Source
var ReadStrategy_value = map[string]int32{
	"MASTER":  0,
	"REPLICA": 1,
	"BOTH":    2,
}

Functions

This section is empty.

Types

type Compression

type Compression struct {
	// Switch of compress, default is off.
	// NOTE: Uncompress will always work.
	Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
	// Compression algorithm used in compression filter.
	Algorithm Compression_Algorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=redis.Compression_Algorithm" json:"algorithm,omitempty"`
	// Value will be ignored when byte length of value is less than the
	// threshold, must be greater than 0.
	Threshold            uint32   `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Configuration of compression.

func (*Compression) Descriptor

func (*Compression) Descriptor() ([]byte, []int)

func (*Compression) Equal

func (this *Compression) Equal(that interface{}) bool

func (*Compression) GetAlgorithm

func (m *Compression) GetAlgorithm() Compression_Algorithm

func (*Compression) GetEnable

func (m *Compression) GetEnable() bool

func (*Compression) GetThreshold

func (m *Compression) GetThreshold() uint32

func (*Compression) GoString

func (this *Compression) GoString() string

func (*Compression) Marshal

func (m *Compression) Marshal() (dAtA []byte, err error)

func (*Compression) MarshalJSON

func (m *Compression) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Compression) MarshalTo

func (m *Compression) MarshalTo(dAtA []byte) (int, error)

func (*Compression) MarshalToSizedBuffer

func (m *Compression) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Compression) ProtoMessage

func (*Compression) ProtoMessage()

func (*Compression) Reset

func (m *Compression) Reset()

func (*Compression) Size

func (m *Compression) Size() (n int)

func (*Compression) String

func (m *Compression) String() string

func (*Compression) Unmarshal

func (m *Compression) Unmarshal(dAtA []byte) error

func (*Compression) UnmarshalJSON

func (m *Compression) UnmarshalJSON(b []byte) error

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*Compression) Validate

func (m *Compression) Validate() error

Validate checks the field values on Compression with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Compression) VerboseEqual

func (this *Compression) VerboseEqual(that interface{}) error

func (*Compression) XXX_DiscardUnknown

func (m *Compression) XXX_DiscardUnknown()

func (*Compression) XXX_Marshal

func (m *Compression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Compression) XXX_Merge

func (m *Compression) XXX_Merge(src proto.Message)

func (*Compression) XXX_Size

func (m *Compression) XXX_Size() int

func (*Compression) XXX_Unmarshal

func (m *Compression) XXX_Unmarshal(b []byte) error

type CompressionValidationError

type CompressionValidationError struct {
	// contains filtered or unexported fields
}

CompressionValidationError is the validation error returned by Compression.Validate if the designated constraints aren't met.

func (CompressionValidationError) Cause

Cause function returns cause value.

func (CompressionValidationError) Error

Error satisfies the builtin error interface

func (CompressionValidationError) ErrorName

func (e CompressionValidationError) ErrorName() string

ErrorName returns error name.

func (CompressionValidationError) Field

Field function returns field value.

func (CompressionValidationError) Key

Key function returns key value.

func (CompressionValidationError) Reason

Reason function returns reason value.

type Compression_Algorithm

type Compression_Algorithm int32
const (
	Compression_SNAPPY Compression_Algorithm = 0
)

func (Compression_Algorithm) EnumDescriptor

func (Compression_Algorithm) EnumDescriptor() ([]byte, []int)

func (Compression_Algorithm) String

func (x Compression_Algorithm) String() string

type ReadStrategy

type ReadStrategy int32

Strategy of a read only command.

const (
	// Read from master nodes.
	ReadStrategy_MASTER ReadStrategy = 0
	// Read from replica nodes.
	ReadStrategy_REPLICA ReadStrategy = 1
	// Read from all nodes.
	ReadStrategy_BOTH ReadStrategy = 2
)

func (ReadStrategy) EnumDescriptor

func (ReadStrategy) EnumDescriptor() ([]byte, []int)

func (ReadStrategy) String

func (x ReadStrategy) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL