You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: record.go
    path of file: ./repos/sharingan/replayer-agent/logic/search
    
    the code of the file until where you have to start completion: package search

import (
	"bytes"
	"context"
	"strconv"
	"strings"
	"time"

	"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"
	"github.com/didi/sharingan/replayer-agent/model/esmodel"
	"github.com/didi/sharingan/replayer-agent/utils/fastcgi"
	"github.com/didi/sharingan/replayer-agent/utils/helper"
)

type SearchRecord struct {
	Project   string              `json:"project"`
	SessionId string              `json:"sessionId"`
	Timestamp string   
    
func uniform(ctx context.Context, sess esmodel.Session) (string, string, bool) {
	var err error
	req := helper.BytesToString(sess.CallFromInbound.Request.Data)

	if bytes.HasPrefix(sess.CallFromInbound.Request.Data, fastcgi.FastCGIRequestHeader) {
		req, err = fastcgi.Decode(sess.CallFromInbound.Request.Data)
		if err != nil {
			tlog.Handler.Warnf(ctx, tlog.DLTagUndefined, "errmsg=decode fastcgi request failed||err=%s", err)
			return "", "", false
		}
	}

	if sess.ReturnInbound == nil {
		tlog.Handler.Warnf(ctx, tlog.DLTagUndefined, "errmsg=returnInboud is nil||sessionid=%s", sess.SessionId)
		return "", "", false
	}
	if sess.ReturnInbound.Response.Data == nil {
		raw := getInboundResponse(sess.Actions)
		if raw == nil {
			tlog.Handler.Warnf(ctx, tlog.DLTagUndefined, "errmsg=returnInboud is nil||sessionid=%s", sess.SessionId)
			return "", "", false
		}
		sess.ReturnInbound.Response.Data = raw
	}

	res := helper.BytesToString(sess.ReturnInbound.Response.Data)
	if bytes.HasPrefix(sess.ReturnInbound.Response.Data, fastcgi.FastCGIResponseHeader) {
		res, err = fastcgi.Decode(sess.ReturnInbound.Response.Data)
		if err != nil {
			tlog.Handler.Warnf(ctx, tlog.DLTagUndefined, "errmsg=decode fastcgi response failed||err=%s", err)
			return "", "", false
		}
	}
	return req, res, true
}