Documentation ¶
Index ¶
- Variables
- type CacheStatus
- type Config
- type ContentRange
- type Data
- type DynamicContentError
- type GetResult
- type HostConfig
- type RequestError
- type SizeExceededError
- type Store
- func (s *Store) Get(ctx context.Context, rawURL string, host string, contentRange *ContentRange) (result GetResult, err error)
- func (s *Store) Purge(ctx context.Context, rawURL string, host string) (err error)
- func (s *Store) PurgeAll(ctx context.Context) (err error)
- func (s *Store) PurgeHost(ctx context.Context, host string) (err error)
- func (s *Store) Release() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotExists = errors.New("not exists")
)
View Source
var (
ErrStoreReleased = errors.New("store released")
)
Functions ¶
This section is empty.
Types ¶
type CacheStatus ¶
type CacheStatus int
const ( CacheStatusUnspecified CacheStatus = iota CacheStatusHit CacheStatusMiss CacheStatusExpired CacheStatusUpdating CacheStatusStale CacheStatusDynamic )
func (CacheStatus) String ¶
func (s CacheStatus) String() string
type ContentRange ¶
type Data ¶
type DynamicContentError ¶
type DynamicContentError struct {
// contains filtered or unexported fields
}
func (*DynamicContentError) Error ¶
func (e *DynamicContentError) Error() string
type HostConfig ¶
type RequestError ¶
type RequestError struct {
// contains filtered or unexported fields
}
func (*RequestError) Error ¶
func (e *RequestError) Error() string
func (*RequestError) Unwrap ¶
func (e *RequestError) Unwrap() error
type SizeExceededError ¶
type SizeExceededError struct {
Size int64
}
func (*SizeExceededError) Error ¶
func (e *SizeExceededError) Error() string
Click to show internal directories.
Click to hide internal directories.