front

package
v0.0.0-...-0f33410 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const GroupcacheBasePath = "/_groupcache/"

Variables

This section is empty.

Functions

func Get

func Get(groupName, key string) ([]byte, error)

func MakeCanServeGroupcache

func MakeCanServeGroupcache(fun func(addr string, h fasthttp.RequestHandler)) func(addr string, h fasthttp.RequestHandler)

func RegisterGetter

func RegisterGetter(groupName string, cacheSize int64, groupGetter groupcache.GetterFunc)

func RegisterPeers

func RegisterPeers(me string, others []string)

func UpdatePeers

func UpdatePeers(ps []string)

UpdatePeers 使得外层应用在运行中可以实时增减节点

Types

This section is empty.

Jump to

Keyboard shortcuts

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