Documentation
¶
Index ¶
- func OriginHash(origin string) string
- type Config
- type Witness
- func (w *Witness) Handler() http.Handler
- func (w *Witness) Logs() (all, mirrored []string)
- func (w *Witness) Metrics() []prometheus.Collector
- func (w *Witness) MirrorVerifierKey() (string, bool)
- func (w *Witness) PullLogList(ctx context.Context, url string, mirror bool) (err error)
- func (w *Witness) VerifierKeys() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OriginHash ¶ added in v0.9.0
OriginHash returns the lowercase hex-encoded SHA-256 of the log origin, which identifies the log in the witness monitoring URL space per c2sp.org/tlog-witness:
GET <monitoring prefix>/<origin hash>/checkpoint
Types ¶
type Config ¶
type Config struct {
Name string
KeyEd25519 ed25519.PrivateKey
KeyMLDSA44 *mldsa.PrivateKey
MirrorName string
KeyMirror *mldsa.PrivateKey
Backend ctlog.Backend
Lock ctlog.LockBackend
Log *slog.Logger
}
type Witness ¶
type Witness struct {
// contains filtered or unexported fields
}
func (*Witness) Metrics ¶
func (w *Witness) Metrics() []prometheus.Collector
func (*Witness) MirrorVerifierKey ¶ added in v0.9.0
func (*Witness) PullLogList ¶ added in v0.7.0
func (*Witness) VerifierKeys ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.