Discover Packages
github.com/apolubotko/image-previewer
internal
proxy
package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Dec 11, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 25
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func NewCache(capacity int ) *lruCache
type Cache interface {
Set(key Key , value interface{}) bool
Get(key Key ) (interface{}, bool )
Clear()
}
type Config struct {
Port string `mapstructure:"PORT"`
Name string `mapstructure:"NAME"`
CacheSize int `mapstructure:"CACHE_SIZE"`
LogLevel string `mapstructure:"LOG_LEVEL"`
}
type Server struct {
Config *Config
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.