// Copyright 2019 github.com. All rights reserved. // Use of this source code is governed by github.com. package impl /* import ( "context" "tower-monitor/pb" "tower-monitor/pb/v1" "tower-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) } */