node

package
v0.0.0-...-ae13d62 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeGetter

type NodeGetter interface {
	Get(cacheName string, key string) ([]byte, error)
	Delete(cacheName string, key string) error
	Set(cacheName string, key string, value string, ttl ...int64) error
}

type NodePicker

type NodePicker interface {
	// Find the corresponding node through the key query
	PickNode(key string) (peer NodeGetter, ok bool)
}

Jump to

Keyboard shortcuts

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