SYMBOL INDEX (434 symbols across 62 files) FILE: app/app.go type Info (line 38) | type Info struct function init (line 63) | func init() { function SetBuildInfo (line 75) | func SetBuildInfo(build, id, ver, buildBy string) { constant MB (line 88) | MB = 1024 * 1024 function bytesToMB (line 90) | func bytesToMB(value uint64) string { function GetVersion (line 95) | func GetVersion() string { function GetInfo (line 100) | func GetInfo() *Info { function UpdateCPUUsage (line 137) | func UpdateCPUUsage() error { FILE: app/app_test.go function TestSetSetBuildInfo (line 10) | func TestSetSetBuildInfo(t *testing.T) { function TestUpdateCPUUsage (line 19) | func TestUpdateCPUUsage(t *testing.T) { function TestGetInfo (line 26) | func TestGetInfo(t *testing.T) { FILE: asset/asset.go function GetFS (line 33) | func GetFS() embed.FS { function ReadFile (line 38) | func ReadFile(file string) ([]byte, error) { FILE: cache/cache.go function byteSliceToString (line 35) | func byteSliceToString(b []byte) string { function uint32ToBytes (line 40) | func uint32ToBytes(value int) []byte { function readUint32ToInt (line 47) | func readUint32ToInt(buffer *bytes.Buffer) (int, error) { function uint64ToBytes (line 57) | func uint64ToBytes(value int64) []byte { function readUint64ToInt64 (line 64) | func readUint64ToInt64(buffer *bytes.Buffer) (int64, error) { function GetDispatcher (line 76) | func GetDispatcher(name string) *dispatcher { function RemoveHTTPCache (line 81) | func RemoveHTTPCache(name string, key []byte) { function convertConfigs (line 85) | func convertConfigs(configs []config.CacheConfig) []DispatcherOption { function ResetDispatchers (line 100) | func ResetDispatchers(configs []config.CacheConfig) { FILE: cache/cache_test.go function TestConvertConfig (line 33) | func TestConvertConfig(t *testing.T) { function TestDefaultDispatcher (line 53) | func TestDefaultDispatcher(t *testing.T) { function TestUint32ToBytes (line 67) | func TestUint32ToBytes(t *testing.T) { function TestUint64ToBytes (line 75) | func TestUint64ToBytes(t *testing.T) { FILE: cache/dispatcher.go constant defaultZoneSize (line 39) | defaultZoneSize = 128 type httpLRUCache (line 43) | type httpLRUCache struct method getCache (line 76) | func (lru *httpLRUCache) getCache(key []byte) (*httpCache, bool) { method addCache (line 88) | func (lru *httpLRUCache) addCache(key []byte, hc *httpCache) { method removeCache (line 93) | func (lru *httpLRUCache) removeCache(key []byte) { type dispatcher (line 48) | type dispatcher struct method getLRU (line 137) | func (d *dispatcher) getLRU(key []byte) *httpLRUCache { method GetHTTPCache (line 145) | func (d *dispatcher) GetHTTPCache(key []byte) *httpCache { method RemoveHTTPCache (line 164) | func (d *dispatcher) RemoveHTTPCache(key []byte) { method GetHitForPass (line 181) | func (d *dispatcher) GetHitForPass() int { type dispatchers (line 55) | type dispatchers struct method Get (line 197) | func (ds *dispatchers) Get(name string) *dispatcher { method RemoveHTTPCache (line 210) | func (ds *dispatchers) RemoveHTTPCache(name string, key []byte) { method Reset (line 230) | func (ds *dispatchers) Reset(opts []DispatcherOption) { type DispatcherOption (line 59) | type DispatcherOption struct function newHTTPLRUCache (line 67) | func newHTTPLRUCache(size int) *httpLRUCache { function NewDispatcher (line 98) | func NewDispatcher(option DispatcherOption) *dispatcher { function NewDispatchers (line 186) | func NewDispatchers(opts []DispatcherOption) *dispatchers { FILE: cache/dispatcher_test.go function TestLRUGetCache (line 31) | func TestLRUGetCache(t *testing.T) { function TestDispatcher (line 51) | func TestDispatcher(t *testing.T) { function TestDispatchers (line 70) | func TestDispatchers(t *testing.T) { FILE: cache/http_cache.go type Status (line 40) | type Status method String (line 79) | func (i Status) String() string { constant StatusUnknown (line 44) | StatusUnknown Status = iota constant StatusFetching (line 46) | StatusFetching constant StatusHitForPass (line 48) | StatusHitForPass constant StatusHit (line 50) | StatusHit constant StatusPassed (line 52) | StatusPassed constant defaultHitForPassSeconds (line 56) | defaultHitForPassSeconds = 300 type httpCache (line 60) | type httpCache struct method Get (line 110) | func (hc *httpCache) Get() (status Status, response *HTTPResponse) { method Bytes (line 128) | func (hc *httpCache) Bytes() (data []byte, err error) { method FromBytes (line 154) | func (hc *httpCache) FromBytes(data []byte) (err error) { method initFromStore (line 188) | func (hc *httpCache) initFromStore() (err error) { method saveToStore (line 200) | func (hc *httpCache) saveToStore() (err error) { method get (line 212) | func (hc *httpCache) get() (status Status, done chan struct{}, data *H... method HitForPass (line 257) | func (hc *httpCache) HitForPass(ttl int) { method Cacheable (line 281) | func (hc *httpCache) Cacheable(resp *HTTPResponse, ttl int) { method Age (line 307) | func (hc *httpCache) Age() int { method GetStatus (line 314) | func (hc *httpCache) GetStatus() Status { method IsExpired (line 321) | func (hc *httpCache) IsExpired() bool { function nowUnix (line 75) | func nowUnix() int64 { function NewHTTPCache (line 95) | func NewHTTPCache() *httpCache { function NewHTTPStoreCache (line 102) | func NewHTTPStoreCache(key []byte, store store.Store) *httpCache { FILE: cache/http_cache_test.go function TestCacheStatusString (line 11) | func TestCacheStatusString(t *testing.T) { function TestHTTPCacheBytes (line 21) | func TestHTTPCacheBytes(t *testing.T) { function TestHTTPCacheGet (line 43) | func TestHTTPCacheGet(t *testing.T) { function TestHTTPCacheAge (line 122) | func TestHTTPCacheAge(t *testing.T) { function TestHTTPCacheGetStatus (line 131) | func TestHTTPCacheGetStatus(t *testing.T) { function TestHTTPCacheIsExpired (line 140) | func TestHTTPCacheIsExpired(t *testing.T) { FILE: cache/http_response.go type HTTPResponse (line 56) | type HTTPResponse struct method Bytes (line 108) | func (resp *HTTPResponse) Bytes() (data []byte, err error) { method FromBytes (line 164) | func (resp *HTTPResponse) FromBytes(data []byte) (err error) { method shouldCompressed (line 229) | func (resp *HTTPResponse) shouldCompressed() bool { method GetRawBody (line 245) | func (resp *HTTPResponse) GetRawBody() (rawBody []byte, err error) { method Compress (line 262) | func (resp *HTTPResponse) Compress() (err error) { method getBodyByAcceptEncoding (line 299) | func (resp *HTTPResponse) getBodyByAcceptEncoding(acceptEncoding strin... method Fill (line 348) | func (resp *HTTPResponse) Fill(c *elton.Context) (err error) { function cloneHeaderAndIgnore (line 73) | func cloneHeaderAndIgnore(header http.Header) http.Header { function NewHTTPResponse (line 82) | func NewHTTPResponse(statusCode int, header http.Header, encoding string... FILE: cache/http_response_test.go function TestCloneHeaderAndIgnore (line 17) | func TestCloneHeaderAndIgnore(t *testing.T) { function TestHTTPResponseMarshal (line 30) | func TestHTTPResponseMarshal(t *testing.T) { function TestNewHTTPResponse (line 63) | func TestNewHTTPResponse(t *testing.T) { function TestShouldCompressed (line 124) | func TestShouldCompressed(t *testing.T) { function TestGetRawBody (line 179) | func TestGetRawBody(t *testing.T) { function TestCompress (line 215) | func TestCompress(t *testing.T) { function TestGetBodyByAcceptEncoding (line 255) | func TestGetBodyByAcceptEncoding(t *testing.T) { function TestFill (line 349) | func TestFill(t *testing.T) { function BenchmarkMarshalHTTPResponse (line 402) | func BenchmarkMarshalHTTPResponse(b *testing.B) { function BenchmarkHTTPResponseToBytes (line 425) | func BenchmarkHTTPResponseToBytes(b *testing.B) { FILE: cache/memhash.go function NanoTime (line 11) | func NanoTime() int64 function CPUTicks (line 15) | func CPUTicks() int64 type stringStruct (line 17) | type stringStruct struct function memhash (line 24) | func memhash(p unsafe.Pointer, h, s uintptr) uintptr function MemHash (line 29) | func MemHash(data []byte) uint64 { function MemHashString (line 37) | func MemHashString(str string) uint64 { function FastRand (line 44) | func FastRand() uint32 FILE: cache/memhash_test.go function TestMemHash (line 9) | func TestMemHash(t *testing.T) { FILE: compress/brotli.go constant defaultBrQuality (line 33) | defaultBrQuality = 6 function brotliEncode (line 36) | func brotliEncode(buf []byte, level int) (*bytes.Buffer, error) { function doBrotli (line 51) | func doBrotli(buf []byte, level int) ([]byte, error) { function doBrotliDecode (line 60) | func doBrotliDecode(buf []byte) ([]byte, error) { FILE: compress/brotli_test.go function TestDoBrotli (line 9) | func TestDoBrotli(t *testing.T) { function TestDoBrotliDecode (line 41) | func TestDoBrotliDecode(t *testing.T) { FILE: compress/compress.go constant EncodingGzip (line 36) | EncodingGzip = "gzip" constant EncodingBrotli (line 37) | EncodingBrotli = "br" constant EncodingLZ4 (line 38) | EncodingLZ4 = "lz4" constant EncodingSnappy (line 39) | EncodingSnappy = "snz" constant EncodingZSTD (line 40) | EncodingZSTD = "zst" type compressSrv (line 44) | type compressSrv struct method GetLevel (line 146) | func (srv *compressSrv) GetLevel(encoding string) int { method SetLevels (line 155) | func (srv *compressSrv) SetLevels(levels map[string]int) { method Decompress (line 165) | func (srv *compressSrv) Decompress(encoding string, data []byte) ([]by... method Gzip (line 184) | func (srv *compressSrv) Gzip(data []byte) ([]byte, error) { method Gunzip (line 190) | func (srv *compressSrv) Gunzip(data []byte) ([]byte, error) { method Brotli (line 195) | func (srv *compressSrv) Brotli(data []byte) ([]byte, error) { method BrotliDecode (line 201) | func (srv *compressSrv) BrotliDecode(data []byte) ([]byte, error) { method LZ4Decode (line 206) | func (srv *compressSrv) LZ4Decode(data []byte) ([]byte, error) { method SnappyDecode (line 211) | func (srv *compressSrv) SnappyDecode(data []byte) ([]byte, error) { method ZSTDDecode (line 216) | func (srv *compressSrv) ZSTDDecode(data []byte) ([]byte, error) { type CompressOption (line 47) | type CompressOption struct type compressSrvs (line 51) | type compressSrvs struct method Get (line 97) | func (cs *compressSrvs) Get(name string) *compressSrv { method Reset (line 110) | func (cs *compressSrvs) Reset(opts []CompressOption) { constant BestCompression (line 56) | BestCompression = "bestCompression" function NewServices (line 72) | func NewServices(opts []CompressOption) *compressSrvs { function NewService (line 85) | func NewService() *compressSrv { function convertConfigs (line 120) | func convertConfigs(configs []config.CompressConfig) []CompressOption { function Reset (line 136) | func Reset(configs []config.CompressConfig) { function Get (line 141) | func Get(name string) *compressSrv { FILE: compress/compress_test.go function TestConvertConfig (line 16) | func TestConvertConfig(t *testing.T) { function TestCompressLevel (line 37) | func TestCompressLevel(t *testing.T) { function TestCompressList (line 51) | func TestCompressList(t *testing.T) { function TestDecompress (line 97) | func TestDecompress(t *testing.T) { FILE: compress/gzip.go function doGunzip (line 32) | func doGunzip(buf []byte) ([]byte, error) { function gzipFn (line 41) | func gzipFn(buf []byte, level int) (*bytes.Buffer, error) { function doGzip (line 59) | func doGzip(buf []byte, level int) ([]byte, error) { FILE: compress/gzip_test.go function TestDoGzip (line 9) | func TestDoGzip(t *testing.T) { function TestDoGunzip (line 41) | func TestDoGunzip(t *testing.T) { FILE: compress/lz4.go function doLZ4Encode (line 29) | func doLZ4Encode(data []byte, level int) ([]byte, error) { function doLZ4Decode (line 39) | func doLZ4Decode(buf []byte) ([]byte, error) { FILE: compress/lz4_test.go function TestDoLZ4Decode (line 9) | func TestDoLZ4Decode(t *testing.T) { FILE: compress/snappy.go function doSnappyEncode (line 29) | func doSnappyEncode(data []byte) []byte { function doSnappyDecode (line 35) | func doSnappyDecode(buf []byte) ([]byte, error) { FILE: compress/snappy_test.go function TestDoSnappyDecode (line 9) | func TestDoSnappyDecode(t *testing.T) { FILE: compress/zstd.go function doZSTDEncode (line 29) | func doZSTDEncode(data []byte, level int) ([]byte, error) { function doZSTDDecode (line 41) | func doZSTDDecode(buf []byte) ([]byte, error) { FILE: compress/zstd_test.go function TestDoZSTDDecode (line 9) | func TestDoZSTDDecode(t *testing.T) { FILE: config/config.go type Client (line 37) | type Client interface type OnChange (line 47) | type OnChange type PikeConfig (line 50) | type PikeConfig struct method Validate (line 165) | func (c *PikeConfig) Validate() error { method GetAdminConfig (line 221) | func (p *PikeConfig) GetAdminConfig() AdminConfig { type AdminConfig (line 63) | type AdminConfig struct type CompressConfig (line 69) | type CompressConfig struct type CacheConfig (line 75) | type CacheConfig struct type UpstreamServerConfig (line 83) | type UpstreamServerConfig struct type UpstreamConfig (line 90) | type UpstreamConfig struct type LocationConfig (line 100) | type LocationConfig struct type ServerConfig (line 113) | type ServerConfig struct function InitDefaultClient (line 137) | func InitDefaultClient(url string) (err error) { function Read (line 226) | func Read() (config *PikeConfig, err error) { function Write (line 241) | func Write(config *PikeConfig) (err error) { function Close (line 255) | func Close() (err error) { function Watch (line 264) | func Watch(onChange OnChange) { FILE: config/config_test.go function TestValidate (line 34) | func TestValidate(t *testing.T) { function TestInitDefaultClient (line 197) | func TestInitDefaultClient(t *testing.T) { function TestReadWriteConfig (line 211) | func TestReadWriteConfig(t *testing.T) { FILE: config/etcd_client.go type etcdClient (line 38) | type etcdClient struct method context (line 86) | func (ec *etcdClient) context() (context.Context, context.CancelFunc) { method Get (line 95) | func (ec *etcdClient) Get() (data []byte, err error) { method Set (line 111) | func (ec *etcdClient) Set(data []byte) (err error) { method Watch (line 119) | func (ec *etcdClient) Watch(onChange OnChange) { method Close (line 128) | func (ec *etcdClient) Close() error { constant defaultEtcdTimeout (line 45) | defaultEtcdTimeout = 5 * time.Second function NewEtcdClient (line 49) | func NewEtcdClient(uri string) (client *etcdClient, err error) { FILE: config/etcd_client_test.go function TestEtcdClient (line 31) | func TestEtcdClient(t *testing.T) { FILE: config/file_client.go type fileClient (line 37) | type fileClient struct method Get (line 65) | func (fc *fileClient) Get() (data []byte, err error) { method Set (line 70) | func (fc *fileClient) Set(data []byte) (err error) { method Watch (line 75) | func (fc *fileClient) Watch(onChange OnChange) { method Close (line 109) | func (fc *fileClient) Close() error { constant defaultPerm (line 42) | defaultPerm os.FileMode = 0600 function NewFileClient (line 45) | func NewFileClient(file string) (client *fileClient, err error) { FILE: config/file_client_test.go function TestFileClient (line 32) | func TestFileClient(t *testing.T) { FILE: config/validate.go function init (line 39) | func init() { function toString (line 110) | func toString(fl validator.FieldLevel) (string, bool) { function contains (line 118) | func contains(arr []string, str string) bool { function addValidate (line 129) | func addValidate(tag string, fn validator.Func, args ...bool) { function addAlias (line 136) | func addAlias(alias, tags string) { FILE: location/location.go type Location (line 46) | type Location struct method Match (line 135) | func (l *Location) Match(host, url string) bool { method mergeHeader (line 163) | func (l *Location) mergeHeader(dst, src http.Header) { method AddRequestHeader (line 172) | func (l *Location) AddRequestHeader(header http.Header) { method AddResponseHeader (line 177) | func (l *Location) AddResponseHeader(header http.Header) { method ShouldModifyQuery (line 182) | func (l *Location) ShouldModifyQuery() bool { method AddQuery (line 187) | func (l *Location) AddQuery(req *http.Request) { method getPriority (line 197) | func (l *Location) getPriority() int { type rewriteRegexp (line 60) | type rewriteRegexp struct type Rewriter (line 65) | type Rewriter type Locations (line 68) | type Locations struct method Set (line 224) | func (ls *Locations) Set(locations []Location) { method GetLocations (line 244) | func (ls *Locations) GetLocations() []*Location { method Get (line 252) | func (ls *Locations) Get(host, url string, names ...string) *Location { function captureTokens (line 75) | func captureTokens(pattern *regexp.Regexp, input string) *strings.Replac... function generateURLRewriter (line 91) | func generateURLRewriter(arr []string) Rewriter { function NewLocations (line 215) | func NewLocations(opts ...Location) *Locations { function enhanceGetValue (line 265) | func enhanceGetValue(key string) string { function convertConfigs (line 272) | func convertConfigs(configs []config.LocationConfig) []Location { function Reset (line 316) | func Reset(configs []config.LocationConfig) { function Get (line 321) | func Get(host, url string, names ...string) *Location { FILE: location/location_test.go function TestLocation (line 17) | func TestLocation(t *testing.T) { function TestLocations (line 123) | func TestLocations(t *testing.T) { function TestConvertConfig (line 157) | func TestConvertConfig(t *testing.T) { function TestDefaultLocations (line 217) | func TestDefaultLocations(t *testing.T) { function TestURLRewrite (line 239) | func TestURLRewrite(t *testing.T) { function TestAddHeader (line 277) | func TestAddHeader(t *testing.T) { FILE: log/log.go function init (line 34) | func init() { type LumberjackLogger (line 43) | type LumberjackLogger struct method Sync (line 47) | func (ll *LumberjackLogger) Sync() error { function newLumberJack (line 51) | func newLumberJack(u *url.URL) (zap.Sink, error) { function newLoggerX (line 81) | func newLoggerX(outputPath string) *zap.Logger { function SetOutputPath (line 108) | func SetOutputPath(outputPath string) { function Default (line 113) | func Default() *zap.Logger { FILE: main.go function init (line 38) | func init() { function doAlarm (line 64) | func doAlarm(category, message string) { function update (line 86) | func update() (err error) { function startAdminServer (line 115) | func startAdminServer(addr string) error { function runCMD (line 128) | func runCMD() error { function run (line 175) | func run() { function isHelpCmd (line 196) | func isHelpCmd() bool { function isDev (line 206) | func isDev() bool { function main (line 210) | func main() { FILE: schedule/schedule.go function init (line 32) | func init() { function cpuUsageStats (line 39) | func cpuUsageStats() { FILE: server/admin.go type AdminServerConfig (line 46) | type AdminServerConfig struct type loginParams (line 52) | type loginParams struct type userInfo (line 56) | type userInfo struct type applicationInfo (line 61) | type applicationInfo struct constant jwtCookie (line 73) | jwtCookie = "pike" function sendFile (line 77) | func sendFile(c *elton.Context, file string) (err error) { function getUserAccount (line 88) | func getUserAccount(c *elton.Context) string { function newIsLoginHandler (line 96) | func newIsLoginHandler(user string) elton.Handler { function newLoginHandler (line 106) | func newLoginHandler(ttlToken *jwt.TTLToken, account, password string) e... function newUserMeHandler (line 129) | func newUserMeHandler(user string) elton.Handler { function updateServerStatus (line 142) | func updateServerStatus(conf *config.PikeConfig) { function getConfig (line 170) | func getConfig(c *elton.Context) (err error) { function saveConfig (line 181) | func saveConfig(c *elton.Context) (err error) { function getApplicationInfo (line 216) | func getApplicationInfo(c *elton.Context) (err error) { function removeCache (line 241) | func removeCache(c *elton.Context) (err error) { function StartAdminServer (line 253) | func StartAdminServer(config AdminServerConfig) (err error) { FILE: server/cache.go constant spaceByte (line 34) | spaceByte = byte(' ') function requestIsPass (line 38) | func requestIsPass(req *http.Request) bool { function getKey (line 45) | func getKey(req *http.Request) []byte { function NewCache (line 75) | func NewCache(s *server) elton.Handler { FILE: server/cache_test.go function TestRequestIsPass (line 35) | func TestRequestIsPass(t *testing.T) { function TestGetKey (line 44) | func TestGetKey(t *testing.T) { function TestCacheMiddleware (line 51) | func TestCacheMiddleware(t *testing.T) { FILE: server/proxy.go function getCacheMaxAge (line 47) | func getCacheMaxAge(header http.Header) int { function NewProxy (line 85) | func NewProxy(s *server) elton.Handler { FILE: server/proxy_test.go function TestGetCacheMaxAge (line 45) | func TestGetCacheMaxAge(t *testing.T) { function TestProxyMiddleware (line 114) | func TestProxyMiddleware(t *testing.T) { FILE: server/responder.go function NewResponder (line 32) | func NewResponder() elton.Handler { FILE: server/responder_test.go function TestResponderMiddleware (line 34) | func TestResponderMiddleware(t *testing.T) { FILE: server/server.go type server (line 45) | type server struct method Update (line 268) | func (s *server) Update(opt ServerOption) { method GetCache (line 279) | func (s *server) GetCache() string { method GetLocations (line 286) | func (s *server) GetLocations() []string { method GetCompress (line 293) | func (s *server) GetCompress() (name string, minLength int, filter *re... method Start (line 300) | func (s *server) Start(useGoRoutine bool) (err error) { method Close (line 364) | func (s *server) Close() error { method GetListenAddr (line 379) | func (s *server) GetListenAddr() string { type servers (line 61) | type servers struct method Start (line 179) | func (ss *servers) Start() (err error) { method Reset (line 197) | func (ss *servers) Reset(opts []ServerOption) { method Close (line 239) | func (ss *servers) Close() error { method Get (line 255) | func (ss *servers) Get(name string) *server { type ServerOption (line 64) | type ServerOption struct constant statusKey (line 84) | statusKey = "_status" constant httpRespKey (line 86) | httpRespKey = "_httpResp" constant httpRespAgeKey (line 88) | httpRespAgeKey = "_httpRespAge" constant httpCacheMaxAgeKey (line 90) | httpCacheMaxAgeKey = "_httpCacheMaxAge" constant defaultCompressMinLength (line 93) | defaultCompressMinLength = 1024 constant headerAge (line 98) | headerAge = "Age" constant headerCacheStatus (line 99) | headerCacheStatus = "X-Status" function getCacheStatus (line 112) | func getCacheStatus(c *elton.Context) cache.Status { function setCacheStatus (line 115) | func setCacheStatus(c *elton.Context, cacheStatus cache.Status) { function getHTTPResp (line 119) | func getHTTPResp(c *elton.Context) *cache.HTTPResponse { function setHTTPResp (line 130) | func setHTTPResp(c *elton.Context, resp *cache.HTTPResponse) { function setHTTPRespAge (line 134) | func setHTTPRespAge(c *elton.Context, age int) { function getHTTPRespAge (line 137) | func getHTTPRespAge(c *elton.Context) int { function setHTTPCacheMaxAge (line 141) | func setHTTPCacheMaxAge(c *elton.Context, age int) { function getHTTPCacheMaxAge (line 144) | func getHTTPCacheMaxAge(c *elton.Context) int { function NewServer (line 149) | func NewServer(opt ServerOption) *server { function NewServers (line 168) | func NewServers(opts []ServerOption) *servers { function convertConfig (line 383) | func convertConfig(configs []config.ServerConfig) []ServerOption { function Reset (line 406) | func Reset(configs []config.ServerConfig) { function Get (line 411) | func Get(name string) *server { function Start (line 416) | func Start() error { function Close (line 421) | func Close() error { FILE: server/server_test.go function TestGetSetCacheStatus (line 35) | func TestGetSetCacheStatus(t *testing.T) { function TestGetSetHTTPResp (line 43) | func TestGetSetHTTPResp(t *testing.T) { function TestGetSetHTTPRespAge (line 52) | func TestGetSetHTTPRespAge(t *testing.T) { function TestGetSetHTTPCacheMaxAge (line 61) | func TestGetSetHTTPCacheMaxAge(t *testing.T) { function TestServer (line 70) | func TestServer(t *testing.T) { function TestServers (line 108) | func TestServers(t *testing.T) { function TestConvertConfig (line 145) | func TestConvertConfig(t *testing.T) { function TestDefaultServers (line 175) | func TestDefaultServers(t *testing.T) { FILE: store/badger.go type badgerStore (line 36) | type badgerStore struct method Get (line 83) | func (bs *badgerStore) Get(key []byte) (data []byte, err error) { method Set (line 104) | func (bs *badgerStore) Set(key []byte, data []byte, ttl time.Duration)... method Delete (line 113) | func (bs *badgerStore) Delete(key []byte) (err error) { method Close (line 120) | func (bs *badgerStore) Close() error { type badgerLogger (line 40) | type badgerLogger struct method Errorf (line 42) | func (bl *badgerLogger) Errorf(format string, args ...interface{}) { method Warningf (line 48) | func (bl *badgerLogger) Warningf(format string, args ...interface{}) { method Infof (line 54) | func (bl *badgerLogger) Infof(format string, args ...interface{}) { method Debugf (line 60) | func (bl *badgerLogger) Debugf(format string, args ...interface{}) { function newBadgerStore (line 68) | func newBadgerStore(path string) (Store, error) { FILE: store/badger_test.go function TestBadgerStore (line 33) | func TestBadgerStore(t *testing.T) { FILE: store/mongo.go constant defaultMongoCacheColletion (line 36) | defaultMongoCacheColletion = "caches" constant defaultMongoDatabase (line 37) | defaultMongoDatabase = "pike" type mongoStore (line 39) | type mongoStore struct method collection (line 122) | func (ms *mongoStore) collection() *mongo.Collection { method Get (line 127) | func (ms *mongoStore) Get(key []byte) (data []byte, err error) { method Set (line 145) | func (ms *mongoStore) Set(key []byte, data []byte, ttl time.Duration) ... method Delete (line 167) | func (ms *mongoStore) Delete(key []byte) (err error) { method Close (line 180) | func (ms *mongoStore) Close() error { type mongoCache (line 45) | type mongoCache struct function fillMongoStoreOptions (line 51) | func fillMongoStoreOptions(connectionURI string, ms *mongoStore) { function newMongoStore (line 69) | func newMongoStore(connectionURI string) (store Store, err error) { FILE: store/mongo_test.go function TestFillMongoStoreOptions (line 32) | func TestFillMongoStoreOptions(t *testing.T) { function TestNewMongoStore (line 51) | func TestNewMongoStore(t *testing.T) { FILE: store/redis.go type redisStore (line 38) | type redisStore struct method getKey (line 100) | func (rs *redisStore) getKey(key []byte) string { method Get (line 105) | func (rs *redisStore) Get(key []byte) (data []byte, err error) { method Set (line 121) | func (rs *redisStore) Set(key []byte, data []byte, ttl time.Duration) ... method Delete (line 130) | func (rs *redisStore) Delete(key []byte) (err error) { method Close (line 139) | func (rs *redisStore) Close() error { type redisLogger (line 46) | type redisLogger struct method Printf (line 48) | func (rl *redisLogger) Printf(ctx context.Context, format string, v ..... function init (line 54) | func init() { function newRedisStore (line 58) | func newRedisStore(connectionURI string) (store Store, err error) { FILE: store/redis_test.go function TestNewRedisStore (line 32) | func TestNewRedisStore(t *testing.T) { FILE: store/store.go type Store (line 36) | type Store interface function NewStore (line 54) | func NewStore(storeURL string) (store Store, err error) { function GetStore (line 95) | func GetStore(storeURL string) Store { function Close (line 108) | func Close() error { FILE: store/store_test.go function TestNewStrore (line 31) | func TestNewStrore(t *testing.T) { FILE: test/main.go function httpGet (line 14) | func httpGet(url string) (data []byte, err error) { function main (line 27) | func main() { FILE: upstream/upstream.go type UpstreamServerConfig (line 47) | type UpstreamServerConfig struct type UpstreamServerStatus (line 53) | type UpstreamServerStatus struct type UpstreamServerOption (line 57) | type UpstreamServerOption struct type upstreamServer (line 69) | type upstreamServer struct method Destroy (line 245) | func (u *upstreamServer) Destroy() { method GetServerStatusList (line 251) | func (u *upstreamServer) GetServerStatusList() []UpstreamServerStatus { type upstreamServers (line 75) | type upstreamServers struct method Reset (line 199) | func (us *upstreamServers) Reset(opts []UpstreamServerOption) { method Get (line 232) | func (us *upstreamServers) Get(name string) *upstreamServer { type StatusInfo (line 78) | type StatusInfo struct type OnStatus (line 84) | type OnStatus function newTransport (line 96) | func newTransport(h2c bool) http.RoundTripper { function newTargetPicker (line 126) | func newTargetPicker(uh *us.HTTP) middleware.ProxyTargetPicker { function newProxyMid (line 144) | func newProxyMid(opt UpstreamServerOption, uh *us.HTTP) elton.Handler { function NewUpstreamServer (line 152) | func NewUpstreamServer(opt UpstreamServerOption) *upstreamServer { function NewUpstreamServers (line 188) | func NewUpstreamServers(opts []UpstreamServerOption) *upstreamServers { function Get (line 271) | func Get(name string) *upstreamServer { function onStatus (line 275) | func onStatus(si StatusInfo) { function convertConfigs (line 283) | func convertConfigs(configs []config.UpstreamConfig, fn OnStatus) []Upst... function Reset (line 307) | func Reset(configs []config.UpstreamConfig) { function ResetWithOnStats (line 312) | func ResetWithOnStats(configs []config.UpstreamConfig, fn OnStatus) { FILE: upstream/upstream_test.go function TestNewTransport (line 14) | func TestNewTransport(t *testing.T) { function TestNewTargetPicker (line 30) | func TestNewTargetPicker(t *testing.T) { function TestUpstreamServer (line 50) | func TestUpstreamServer(t *testing.T) { function TestUpstreamServers (line 82) | func TestUpstreamServers(t *testing.T) { function TestConvertConfig (line 118) | func TestConvertConfig(t *testing.T) { function TestDefaultUpstreamServers (line 156) | func TestDefaultUpstreamServers(t *testing.T) { FILE: util/util.go constant errCategory (line 31) | errCategory = "pike" type DeleteMatch (line 33) | type DeleteMatch function MapDelete (line 36) | func MapDelete(m *sync.Map, match DeleteMatch) []interface{} { function NewError (line 60) | func NewError(message string, statusCode int) error { FILE: util/util_test.go function TestMapDelete (line 33) | func TestMapDelete(t *testing.T) { function TestNewError (line 52) | func TestNewError(t *testing.T) { FILE: web/assets/packages/fluttertoast/assets/toastify.js function i (line 14) | function i(t,o){return o.offset[t]?isNaN(o.offset[t])?o.offset[t]:o.offs... function s (line 14) | function s(t,o){return!(!t||"string"!=typeof o)&&!!(t.className&&t.class... FILE: web/flutter_service_worker.js constant MANIFEST (line 2) | const MANIFEST = 'flutter-app-manifest'; constant TEMP (line 3) | const TEMP = 'flutter-temp-cache'; constant CACHE_NAME (line 4) | const CACHE_NAME = 'flutter-app-cache'; constant RESOURCES (line 5) | const RESOURCES = { constant CORE (line 26) | const CORE = [ function downloadOffline (line 154) | async function downloadOffline() { function onlineFirst (line 175) | function onlineFirst(event) { FILE: web/main.dart.js function copyProperties (line 1) | function copyProperties(a,b){var s=Object.keys(a) function mixinProperties (line 3) | function mixinProperties(a,b){var s=Object.keys(a) function setFunctionNamesIfNecessary (line 12) | function setFunctionNamesIfNecessary(a){function t(){};if(typeof t.name=... function inherit (line 17) | function inherit(a,b){a.prototype.constructor=a function inheritMany (line 22) | function inheritMany(a,b){for(var s=0;s