proxy

package
v0.0.0-...-b8a1a68 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcProxy

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

func (GrpcProxy) AllowIp

func (g GrpcProxy) AllowIp(ip string) bool

func (GrpcProxy) AllowMethod

func (g GrpcProxy) AllowMethod(method string) bool

type HttpProxy

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

func (HttpProxy) AllowIp

func (h HttpProxy) AllowIp(ip string) bool

type Proxy

type Proxy struct {
	HttpPort  int
	HealthURI string
	GrpcPort  int
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(cfg *config.Config) *Proxy

func (*Proxy) HandleTcpConn

func (p *Proxy) HandleTcpConn(conn *net.TCPConn)

Jump to

Keyboard shortcuts

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