MCPcopy Index your code
hub / github.com/dearcode/candy / _Store_Auth_Handler

Function _Store_Auth_Handler

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

Source from the content-addressed store, hash-verified

792}
793
794func _Store_Auth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
795 in := new(StoreAuthRequest)
796 if err := dec(in); err != nil {
797 return nil, err
798 }
799 if interceptor == nil {
800 return srv.(StoreServer).Auth(ctx, in)
801 }
802 info := &grpc.UnaryServerInfo{
803 Server: srv,
804 FullMethod: "/candy.meta.Store/Auth",
805 }
806 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
807 return srv.(StoreServer).Auth(ctx, req.(*StoreAuthRequest))
808 }
809 return interceptor(ctx, in, info, handler)
810}
811
812func _Store_Friend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
813 in := new(StoreFriendRequest)

Callers

nothing calls this directly

Calls 1

AuthMethod · 0.65

Tested by

no test coverage detected