ocsp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertStatusGood           = "good"
	CertStatusUnknown        = "unknown"
	CertStatusNotFound       = "notfound"
	CertStatusServerError    = "servererror"
	CertStatusCertParseError = "certparseerror"
	CertStatusOCSPSignError  = "ocspsignerror"
)

Variables

This section is empty.

Functions

func AddMetricsPoint

func AddMetricsPoint(uniqueID string, hitCache bool, certStatus string)

func CountAll

func CountAll()

Types

type SharedSources

type SharedSources struct {
	DB         *gorm.DB
	Cache      *memorycacher.Cache
	Logger     *zap.SugaredLogger
	OcspSigner ocsp.Signer
}

SharedSources

func NewSharedSources

func NewSharedSources(signer ocsp.Signer) (*SharedSources, error)

NewSharedSources ...

func (*SharedSources) Response

func (ss *SharedSources) Response(req *stdocsp.Request) ([]byte, http.Header, error)

Response

Jump to

Keyboard shortcuts

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