respond

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package respond contains encoding/decoding helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Registry

func Registry() *respond.Registry

Registry returns a reference to out Renderers registry

func RenderDERCert added in v0.1.0

func RenderDERCert(w io.Writer, v any) error

RenderDERCert renders the raw DER in a *x509.Certificate or the first entry on a []*x509.Certificate

func RenderJSON added in v0.1.0

func RenderJSON(w io.Writer, v any) error

RenderJSON renders JSON using github.com/go-jose/go-jose/v4/json for Marshalling

func RenderPEMCert added in v0.1.0

func RenderPEMCert(w io.Writer, v any) error

RenderPEMCert renders *x509.Certificate and []*x509.Certificate PEM encoded

Types

This section is empty.

Jump to

Keyboard shortcuts

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