v2

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 14 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")
)

Functions

This section is empty.

Types

type Redis

type Redis struct {
	// If set, optionally perform “EXISTS <key>“ instead of “PING“. A return value
	// from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other
	// than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance
	// by setting the specified key to any value and waiting for traffic to drain.
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Redis) Descriptor

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

func (*Redis) GetKey

func (m *Redis) GetKey() string

func (*Redis) Marshal

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

func (*Redis) MarshalTo

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

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) Reset

func (m *Redis) Reset()

func (*Redis) Size

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

func (*Redis) String

func (m *Redis) String() string

func (*Redis) Unmarshal

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

func (*Redis) Validate

func (m *Redis) Validate() error

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

func (*Redis) XXX_DiscardUnknown

func (m *Redis) XXX_DiscardUnknown()

func (*Redis) XXX_Marshal

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

func (*Redis) XXX_Merge

func (dst *Redis) XXX_Merge(src proto.Message)

func (*Redis) XXX_Size

func (m *Redis) XXX_Size() int

func (*Redis) XXX_Unmarshal

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

type RedisValidationError

type RedisValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

RedisValidationError is the validation error returned by Redis.Validate if the designated constraints aren't met.

func (RedisValidationError) Error

func (e RedisValidationError) Error() string

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

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