redis

package
v0.0.0-...-b1ac0f9 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadResp

func ReadResp(r Reader) (any, error)

Types

type Command

type Command interface {
}

type Reader

type Reader interface {
	Next(n int) (p []byte, err error)
	Peek(n int) (buf []byte, err error)
	Skip(n int) (err error)
}

type RespArray

type RespArray struct {
	Elements []any
	// contains filtered or unexported fields
}

func (*RespArray) RespType

func (r *RespArray) RespType() RespType

type RespError

type RespError struct {
	Message string
	// contains filtered or unexported fields
}

func (*RespError) RespType

func (r *RespError) RespType() RespType

type RespInteger

type RespInteger struct {
	Value int
	// contains filtered or unexported fields
}

func (*RespInteger) RespType

func (r *RespInteger) RespType() RespType

type RespString

type RespString struct {
	Data []byte
	// contains filtered or unexported fields
}

func (*RespString) RespType

func (r *RespString) RespType() RespType

type RespType

type RespType byte
const (
	RespTypeInteger      RespType = ':'
	RespTypeSimpleString RespType = '+'
	RespTypeBulkString   RespType = '$'
	RespTypeArray        RespType = '*'
	RespTypeError        RespType = '-'
)

type Service

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

func NewService

func NewService(context context.Context, logger hclog.Logger, addr string) *Service

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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