body_parser_config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKeyAlgorithm      = jwe.KeyAlgorithmEcdhEs
	DefaultContentEncryption = jwe.ContentEncryptionA256Gcm
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KeyIdentifier     string
	KeyAlgorithm      jwe.KeyAlgorithm
	ContentEncryption jwe.ContentEncryption
}

func New

func New(options ...Option) *Config

type Option

type Option func(*Config)

func WithContentEncryption

func WithContentEncryption(contentEncryption jwe.ContentEncryption) Option

func WithKeyAlgorithm

func WithKeyAlgorithm(keyAlgorithm jwe.KeyAlgorithm) Option

func WithKeyIdentifier

func WithKeyIdentifier(keyIdentifier string) Option

Jump to

Keyboard shortcuts

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