func (h *IdentifyHandler) identify(sessionID int, arg keybase1.IdentifyArg) (res *engine.IDRes, err error) { var ctx *engine.Context ctx, err = h.makeContext(sessionID, arg) if err != nil { return nil, err } eng := engine.NewIDEngine(&arg, h.G()) err = engine.RunEngine(eng, ctx) res = eng.Result() return res, err }
func (h *IdentifyHandler) identify(sessionID int, iarg engine.IDEngineArg, doInteractive bool) (res *engine.IDRes, err error) { logui := h.getLogUI(sessionID) if iarg.TrackStatement { logui = logger.NewNull() } ctx := engine.Context{ LogUI: logui, IdentifyUI: h.NewRemoteIdentifyUI(sessionID, h.G()), } eng := engine.NewIDEngine(&iarg, h.G()) err = engine.RunEngine(eng, &ctx) res = eng.Result() return }