Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "consistent_hash_ring"
Variables ¶
View Source
var UnaryInterceptor = func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { if pbreq, ok := req.(proto.Message); ok { h, ok := Hash(pbreq) if ok { ctx = withHashVal(ctx, h) } } return invoker(ctx, method, req, reply, cc, opts...) }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.