Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(targetOrigin, proxyPath string, transport http.RoundTripper) (*httputil.ReverseProxy, error)
Types ¶
type AdapterConfig ¶
type AdapterConfig struct {
MsgBodySizeLimit int
}
AdapterConfig stores the configuration for the adapter transport
type AdapterTokenClaims ¶
type AdapterTransport ¶
type AdapterTransport struct { http.RoundTripper // contains filtered or unexported fields }
func NewAdapterTransport ¶
func NewAdapterTransport(sink AuditlogService, svc PreAuditlogService, trip RoundTrip, config AdapterConfig) *AdapterTransport
type AuditlogMessage ¶
type AuditlogMessage struct { CorrelationIDHeaders correlation.Headers Request string Response string Claims }
type AuditlogService ¶
type AuditlogService interface {
Log(ctx context.Context, msg AuditlogMessage) error
}
type Claims ¶
type PreAuditlogService ¶
type PreAuditlogService interface { AuditlogService PreLog(ctx context.Context, msg AuditlogMessage) error }
type Transport ¶
type Transport struct { http.RoundTripper // contains filtered or unexported fields }
func NewTransport ¶
func NewTransport(sink AuditlogService, svc PreAuditlogService, trip RoundTrip) *Transport
Click to show internal directories.
Click to hide internal directories.