Documentation ¶ Index ¶ func OpenDB(dbPath string) (*sqlite.Conn, error) type Witness func NewWitness(dbPath, name string, key crypto.Signer, log *slog.Logger) (*Witness, error) func (w *Witness) Close() error func (w *Witness) ServeHTTP(rw http.ResponseWriter, r *http.Request) func (w *Witness) VerifierKey() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func OpenDB ¶ added in v0.2.0 func OpenDB(dbPath string) (*sqlite.Conn, error) Types ¶ type Witness ¶ type Witness struct { // contains filtered or unexported fields } func NewWitness ¶ func NewWitness(dbPath, name string, key crypto.Signer, log *slog.Logger) (*Witness, error) func (*Witness) Close ¶ func (w *Witness) Close() error func (*Witness) ServeHTTP ¶ func (w *Witness) ServeHTTP(rw http.ResponseWriter, r *http.Request) func (*Witness) VerifierKey ¶ added in v0.3.0 func (w *Witness) VerifierKey() string Source Files ¶ View all Source files witness.go Click to show internal directories. Click to hide internal directories.