transport

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Encoding

func Base64Encoding(encoding *base64.Encoding) transport.Middleware

Base64Encoding represents a middleware encoding the request passed to it with Base64 encoding and decoding the response from the wrapped transport from Base64. If the wrapped Transport returns an error, the error will be passed as is without any transformation applied.

func Logging

func Logging(logger *log.Logger, cryptoProvider message.CryptoProvider) transport.Middleware

Logging creates a middleware that logs every request and response sent over the transport

func UTF8Encoding

func UTF8Encoding(encoding encoding.Encoding) transport.Middleware

UTF8Encoding represents a middleware encoding the request passed to it with the provided UTF8 encoding and decoding the response from the wrapped transport from the provided encoding into UTF8. If the wrapped Transport returns an error, the error will be passed as is without any transformation applied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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