consistent

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheckEngineWithHashring

func NewCheckEngineWithHashring(checker invoke.Check, consistent *hash.ConsistentHash, g *gossip.Gossip, port string, l *logger.Logger, options ...grpc.DialOption) (invoke.Check, error)

NewCheckEngineWithHashring creates a new instance of EngineKeyManager by initializing an EngineKeys struct with the provided cache.Cache instance.

Types

type Hashring

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

Hashring is a wrapper around the consistent hash implementation that

func (*Hashring) Check

func (c *Hashring) Check(ctx context.Context, request *base.PermissionCheckRequest) (response *base.PermissionCheckResponse, err error)

Jump to

Keyboard shortcuts

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