Documentation ¶ Index ¶ type Witness func NewWitness(dbPath string, s crypto.Signer, log func(format string, v ...any)) (*Witness, error) func (w *Witness) AddSigsumLog(key sigsum.PublicKey) error func (w *Witness) Close() error func (w *Witness) ExecSQL(query string, resultFn func(stmt *sqlite.Stmt) error, args ...interface{}) error func (w *Witness) ServeHTTP(rw http.ResponseWriter, r *http.Request) 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) Source Files ¶ View all Source files witness.go Click to show internal directories. Click to hide internal directories.