// Copyright 2019 github.com. All rights reserved. // Use of this source code is governed by github.com. package impl /* import ( "context" "dust-monitor/pb" "dust-monitor/pb/v1" "dust-monitor/impl/v1/user" "github.com/jaryhe/gopkgs/tasker/rpctasker" "google.golang.org/grpc" ) type Rcvr struct { } func Register(s *grpc.Server) { pb.RegisterSmartSiteAgentServer(s, &Rcvr{}) } func (c *Rcvr) Login(ctx context.Context, req *v1.LoginRequest) (reply *v1.LoginReply, err error) { t1 := func() error { reply, err = user.Login(ctx, req) return err } return reply, rpctasker.Exec(ctx, t1) } */