| 133 | } |
| 134 | |
| 135 | type GetCacheRequest struct { |
| 136 | CacheKey string `json:"key"` |
| 137 | Offset uint64 `json:"offset"` |
| 138 | Size uint32 `json:"size"` |
| 139 | } |
| 140 | |
| 141 | func (req *GetCacheRequest) Marshal() (result []byte, err error) { |
| 142 | buff := bytespool.NewBuffer(4 + len(req.CacheKey) + 8 + 4) |
nothing calls this directly
no outgoing calls
no test coverage detected