Documentation ¶
Index ¶
- Constants
- func FastlyServe(ctx context.Context, w fsthttp.ResponseWriter, r *fsthttp.Request)
- func FastlyWrapper(...) func(c context.Context, w fsthttp.ResponseWriter, r *fsthttp.Request)
- func MainMain(listener net.Listener, storeDirectory string, storeAddress string, ...)
- func Start(ctx context.Context, tileStoreDir string, tileStoreUrl string, maskSize int) (http.Handler, error)
- type CacheEntry
- type FastlyStorage
- type Fetch
- type FsStorage
- type Storage
- type UrlStorage
Constants ¶
View Source
const ( RHURecordSize = 21 RHUHashSize = 16 // Sunlight defines index size to be 40 bits or 5 bytes RHULeafIndexSize = 5 )
TODO: refactor the duplicate definitions of this stanza in this file and bucket.go to be in the sunlight package.
Variables ¶
This section is empty.
Functions ¶
func FastlyServe ¶
func FastlyWrapper ¶
Types ¶
type CacheEntry ¶
type CacheEntry struct {
// contains filtered or unexported fields
}
type FastlyStorage ¶
type FastlyStorage struct {
// contains filtered or unexported fields
}
func (*FastlyStorage) AvailableReqs ¶
func (f *FastlyStorage) AvailableReqs() int
type FsStorage ¶
type FsStorage struct {
// contains filtered or unexported fields
}
func (*FsStorage) AvailableReqs ¶
type UrlStorage ¶
type UrlStorage struct {
// contains filtered or unexported fields
}
func (*UrlStorage) AvailableReqs ¶
func (f *UrlStorage) AvailableReqs() int
Click to show internal directories.
Click to hide internal directories.