logmonitoring

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

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

func WithLogEntriesStoreEnabled(enabled bool) Option

WithLogEntriesStoreEnabled enables log entries store (default is false).

func WithMaxGetEntriesRange

func WithMaxGetEntriesRange(max int) Option

WithMaxGetEntriesRange sets optional limit for number of entries retrieved.

func WithMaxRecoveryFetchSize

func WithMaxRecoveryFetchSize(max int) Option

WithMaxRecoveryFetchSize sets an optional limit for number of entries retrieved during recover.

func WithMaxTreeSize

func WithMaxTreeSize(maxTreeSize uint64) Option

WithMaxTreeSize sets optional maximum tree size for assembling tree in order to check new STH.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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