25 lines
376 B
Go
25 lines
376 B
Go
package cachestate
|
|
|
|
import "s1d3sw1ped/SteamCache2/vfs/vfserror"
|
|
|
|
type CacheState int
|
|
|
|
const (
|
|
CacheStateHit CacheState = iota
|
|
CacheStateMiss
|
|
CacheStateNotFound
|
|
)
|
|
|
|
func (c CacheState) String() string {
|
|
switch c {
|
|
case CacheStateHit:
|
|
return "hit"
|
|
case CacheStateMiss:
|
|
return "miss"
|
|
case CacheStateNotFound:
|
|
return "not found"
|
|
}
|
|
|
|
panic(vfserror.ErrUnreachable)
|
|
}
|