scache

package
v0.0.0-...-740dce8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Read(string, *big.Int, *x509.Certificate) (*ocsp.Response, []byte)
	Write(string, []byte)
}

Cache represents a stable cache

type DiskCache

type DiskCache struct {
	// contains filtered or unexported fields
}

DiskCache is a on disk stable cache

func NewDisk

func NewDisk(logger *log.Logger, clk clock.Clock, path string) *DiskCache

NewDisk creates a DiskCache

func (*DiskCache) Read

func (dc *DiskCache) Read(name string, serial *big.Int, issuer *x509.Certificate) (*ocsp.Response, []byte)

Read reads a OCSP response from disk

func (*DiskCache) Write

func (dc *DiskCache) Write(name string, content []byte)

Write writes a OCSP response to disk

Jump to

Keyboard shortcuts

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