Documentation ¶
Index ¶
- Constants
- Variables
- type Modifiers
- type Proxy
- type ProxyOption
- func WitDefaultWriter(w io.Writer) ProxyOption
- func WithEnpointConfiguration(corsEnabled bool, transferToMQTTSettings bool) ProxyOption
- func WithHarWriterLog(writer io.Writer) ProxyOption
- func WithHierarchicalModifierEnabled(header string) ProxyOption
- func WithLogInMem(corsEnabled bool) ProxyOption
- func WithLogLevel(level int) ProxyOption
- func WithMitm(validity time.Duration, organization string, verify bool, ...) ProxyOption
- func WithMitmCertsFile(validity time.Duration, name string, organization string, verify bool, ...) ProxyOption
- func WithMitmCertsGenerated(validity time.Duration, name string, organization string, verify bool, ...) ProxyOption
- func WithModifiers(mod any) ProxyOption
- func WithStdLog() ProxyOption
Constants ¶
View Source
const ( REQ string = "request" RESP = "response" )
Variables ¶
View Source
var (
ErrNoCert = errors.New("No certificate provided, tls proxy won't working")
)
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
type ProxyOption ¶
type ProxyOption = helper.OptionError[Proxy]
func WitDefaultWriter ¶
func WitDefaultWriter(w io.Writer) ProxyOption
func WithEnpointConfiguration ¶
func WithEnpointConfiguration(corsEnabled bool, transferToMQTTSettings bool) ProxyOption
func WithHarWriterLog ¶
func WithHarWriterLog(writer io.Writer) ProxyOption
func WithHierarchicalModifierEnabled ¶
func WithHierarchicalModifierEnabled(header string) ProxyOption
func WithLogInMem ¶
func WithLogInMem(corsEnabled bool) ProxyOption
func WithLogLevel ¶
func WithLogLevel(level int) ProxyOption
func WithMitm ¶
func WithMitm(validity time.Duration, organization string, verify bool, x509c *x509.Certificate, privKey interface{}, cors bool) ProxyOption
func WithMitmCertsFile ¶
func WithMitmCertsGenerated ¶
func WithModifiers ¶
func WithModifiers(mod any) ProxyOption
func WithStdLog ¶
func WithStdLog() ProxyOption
Click to show internal directories.
Click to hide internal directories.