httpcache

package
v0.0.0-...-8d8ec1c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MWNamespace - Middleware 설정 식별자
	MWNamespace = "mw-httpcache"
)

Functions

func NewHTTPClient

func NewHTTPClient(bConf *config.BackendConfig) client.HTTPClientFactory

NewHTTPClient - 메모리 관리용 HTTP client 를 사용하는 HTTPClientFactory 생성, 설정이 없거나 enabled=false인 경우는 일반 http.Client 사용

Types

type Config

type Config struct {
	// httpcache 사용 여부
	Enabled bool `yaml:"enabled"`
}

Config - HTTPCache 운영을 위한 설정 구조

func ParseConfig

func ParseConfig(mwConf config.MWConfig) *Config

ParseConfig - HTTPCache 운영을 위한 Configuration parsing 처리

Jump to

Keyboard shortcuts

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