proxy

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache added in v0.0.5

func NewCache(capacity int) *lruCache

Types

type Cache added in v0.0.5

type Cache interface {
	Set(key Key, value interface{}) bool
	Get(key Key) (interface{}, bool)
	Clear()
}

type Config

type Config struct {
	Port      string `mapstructure:"PORT"`
	Name      string `mapstructure:"NAME"`
	CacheSize int    `mapstructure:"CACHE_SIZE"`
	LogLevel  string `mapstructure:"LOG_LEVEL"`
}

func NewConfig

func NewConfig() (config *Config, err error)

type ImageObj

type ImageObj struct {
	// contains filtered or unexported fields
}

type Key added in v0.0.5

type Key string

type List added in v0.0.5

type List interface {
	Len() int
	Front() *ListItem
	Back() *ListItem
	PushFront(v interface{}) *ListItem
	PushBack(v interface{}) *ListItem
	Remove(i *ListItem)
	MoveToFront(i *ListItem)
}

func NewList added in v0.0.5

func NewList() List

type ListItem added in v0.0.5

type ListItem struct {
	Value interface{}
	Key   Key
	Next  *ListItem
	Prev  *ListItem
}

type Server

type Server struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance(config *Config) (*Server, error)

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL