pages-server/server/gitea/cache.go

13 lines
177 B
Go
Raw Normal View History

package gitea
type FileResponse struct {
Exists bool
ETag []byte
MimeType string
Body []byte
}
func (f FileResponse) IsEmpty() bool {
return len(f.Body) != 0
}