Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements periodical monitoring of VCT consistency as per https://datatracker.ietf.org/doc/html/rfc6962#section-5.3.
func New ¶
func New(store logMonitorStore, httpClient httpClient, requestTokens map[string]string, opts ...Option) (*Client, error)
New returns new client for monitoring VCT log consistency.
func (*Client) MonitorLogs ¶
func (c *Client) MonitorLogs()
MonitorLogs will monitor logs for consistency.
type Option ¶
type Option func(opts *Client)
Option is an option for resolve handler.
func WithLogEntriesStore ¶
func WithLogEntriesStore(s logEntryStore) Option
WithLogEntriesStore sets optional implementation of log entries store (default is noop store).
func WithLogEntriesStoreEnabled ¶
WithLogEntriesStoreEnabled enables log entries store (default is false).
func WithMaxGetEntriesRange ¶
WithMaxGetEntriesRange sets optional limit for number of entries retrieved.
func WithMaxRecoveryFetchSize ¶
WithMaxRecoveryFetchSize sets an optional limit for number of entries retrieved during recover.
func WithMaxTreeSize ¶
WithMaxTreeSize sets optional maximum tree size for assembling tree in order to check new STH.