package member import ( "github.com/valyala/fasthttp" "git.loafle.net/overflow/overflow_server_app/server" "git.loafle.net/overflow/overflow_server_app/backend" "fmt" ) func ConfirmPW(sctx *server.ServerContext, ctx *fasthttp.RequestCtx) { grpcPool := sctx.Value("grpc").(backend.Pool) c, err := grpcPool.Get() if nil != err { } defer c.Close() fmt.Fprintf(ctx, "avail: %d\n", grpcPool.Available()) signinId := string(ctx.FormValue("signinId")) signinPw := string(ctx.FormValue("signinPw")) params := []string{signinId, signinPw} r, err := c.Exec("MemberService", "confirmPw", params) fmt.Fprintf(ctx, "Confirm PW !!!!: %s\n", r) }