driver

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = 6080

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func NewConnection

func NewConnection(address []string) (*Connection, error)

func (*Connection) Del

func (con *Connection) Del(k string) error

func (*Connection) DropIndex

func (con *Connection) DropIndex(name string) error

func (*Connection) Get

func (con *Connection) Get(k string) (string, time.Duration, error)

func (*Connection) GetBroadcasts

func (con *Connection) GetBroadcasts(overhead, limit int) [][]byte

func (*Connection) Indexes

func (con *Connection) Indexes() []query.Index

func (*Connection) LocalState

func (con *Connection) LocalState(join bool) []byte

func (*Connection) MergeRemoteState

func (con *Connection) MergeRemoteState(buf []byte, join bool)

func (*Connection) Name

func (con *Connection) Name() string

func (*Connection) NodeMeta

func (con *Connection) NodeMeta(limit int) []byte

func (*Connection) NotifyMsg

func (con *Connection) NotifyMsg(bytes []byte)

func (*Connection) Search

func (con *Connection) Search(index string, criteria *query.Criteria) ([]query.Row, error)

func (*Connection) Set

func (con *Connection) Set(k, v string) error

func (*Connection) SetWithTtl

func (con *Connection) SetWithTtl(k, v string, ttl time.Duration) error

func (*Connection) Shutdown

func (con *Connection) Shutdown()

func (*Connection) UpsertIndex added in v0.1.2

func (con *Connection) UpsertIndex(index query.Index) error

Jump to

Keyboard shortcuts

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