gitee.com/h79/goutils@v1.22.10/request/head.go (about)

     1  package request
     2  
     3  import "time"
     4  
     5  // Head
     6  /** 为了让 api.Head 及rpc.Request(proto)都能 */
     7  type Head interface {
     8  	GetSource() string
     9  	GetSeqId() string
    10  	GetVersion() string
    11  }
    12  
    13  type HeadV2 interface {
    14  	Head
    15  	GetTimeOut() time.Duration
    16  	SetTimeOut(duration time.Duration)
    17  	GetRecvAt() int64 // GetRecvAt 服务收到时间
    18  	GetReqAt() int64  // GetReqAt 请求者时间
    19  	SetSource(source string)
    20  }