validator_proxy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseCallback

type ResponseCallback func(request *http.Request, response []byte) (bool, error)

type ValidatorProxy

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

func NewProxy

func NewProxy(
	ctx context.Context,
	id int,
	host string,
	port int,
	destination string,
	responseCallbacks map[string]ResponseCallback,
	alwaysErrorResponse bool,
) (*ValidatorProxy, error)

func (*ValidatorProxy) Address

func (p *ValidatorProxy) Address() string

func (*ValidatorProxy) Cancel

func (p *ValidatorProxy) Cancel() error

func (*ValidatorProxy) ID

func (p *ValidatorProxy) ID() int

func (*ValidatorProxy) Port

func (p *ValidatorProxy) Port() int

func (*ValidatorProxy) Start

func (p *ValidatorProxy) Start(ctx context.Context) error

Start a proxy server.

Jump to

Keyboard shortcuts

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