MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / _Raft_IsPeer_Handler

Function _Raft_IsPeer_Handler

bitmap/pb.pb.go:5658–5674  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

5656}
5657
5658func _Raft_IsPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
5659 in := new(RaftContext)
5660 if err := dec(in); err != nil {
5661 return nil, err
5662 }
5663 if interceptor == nil {
5664 return srv.(RaftServer).IsPeer(ctx, in)
5665 }
5666 info := &grpc.UnaryServerInfo{
5667 Server: srv,
5668 FullMethod: "/pb.Raft/IsPeer",
5669 }
5670 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
5671 return srv.(RaftServer).IsPeer(ctx, req.(*RaftContext))
5672 }
5673 return interceptor(ctx, in, info, handler)
5674}
5675
5676var _Raft_serviceDesc = grpc.ServiceDesc{
5677 ServiceName: "pb.Raft",

Callers

nothing calls this directly

Calls 1

IsPeerMethod · 0.65

Tested by

no test coverage detected