proxy

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProxyRelay

type AuthProxyRelay struct {
	ListenAddr string
	Upstream   *url.URL
	// contains filtered or unexported fields
}

────── 구조체 구현 ──────

func NewAuthProxyRelay

func NewAuthProxyRelay(listen, upstream string) (*AuthProxyRelay, error)

────── 생성자 ──────

func (*AuthProxyRelay) Run

func (p *AuthProxyRelay) Run(ctx context.Context) error

────── Run: 컨텍스트 기반 메인 루프 ──────

func (*AuthProxyRelay) Shutdown

func (p *AuthProxyRelay) Shutdown(ctx context.Context) error

────── Shutdown: 그레이스풀 셧다운 ──────

type ProxyRelay

type ProxyRelay interface {
	// ctx가 Done() 되면 서버를 자동으로 종료
	Run(ctx context.Context) error
	// 외부에서 즉시 종료하고 싶을 때 (예: SIGINT 핸들러)
	Shutdown(ctx context.Context) error
}

────── 인터페이스 정의 ──────

Jump to

Keyboard shortcuts

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