witness

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: ISC Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Witness

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

func NewWitness

func NewWitness(dbPath string, s crypto.Signer, log func(format string, v ...any)) (*Witness, error)

func (*Witness) AddSigsumLog

func (w *Witness) AddSigsumLog(key sigsum.PublicKey) error

func (*Witness) Close

func (w *Witness) Close() error

func (*Witness) ExecSQL

func (w *Witness) ExecSQL(query string, resultFn func(stmt *sqlite.Stmt) error, args ...interface{}) error

func (*Witness) ServeHTTP

func (w *Witness) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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