scanner

package
v0.0.0-...-ced8162 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyFileScanner

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

func (*KeyFileScanner) Close

func (kfs *KeyFileScanner) Close()

func (*KeyFileScanner) EndNode

func (kfs *KeyFileScanner) EndNode() bool

func (*KeyFileScanner) ScanKey

func (kfs *KeyFileScanner) ScanKey() ([]string, error)

type NormalScanner

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

func (*NormalScanner) Close

func (ns *NormalScanner) Close()

func (*NormalScanner) EndNode

func (ns *NormalScanner) EndNode() bool

func (*NormalScanner) ScanKey

func (ns *NormalScanner) ScanKey() ([]string, error)

type Scanner

type Scanner interface {
	// return scanned keys
	ScanKey() ([]string, error) // return the scanned keys

	// end current node
	EndNode() bool

	Close()
}

scanner used to scan keys

func NewScanner

func NewScanner(client redis.Conn, tencentNodeId string, aliyunNodeId int) Scanner

type SpecialCloudScanner

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

func (*SpecialCloudScanner) Close

func (scs *SpecialCloudScanner) Close()

func (*SpecialCloudScanner) EndNode

func (scs *SpecialCloudScanner) EndNode() bool

func (*SpecialCloudScanner) ScanKey

func (scs *SpecialCloudScanner) ScanKey() ([]string, error)

Jump to

Keyboard shortcuts

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