logclient

package
v0.0.0-...-cfeca06 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logs = make(LogMap)

Functions

func AddHttpClient

func AddHttpClient(client http.Client)

func PanicOnError

func PanicOnError(err error)

Types

type ById

type ById []Entry

func (ById) Len

func (a ById) Len() int

func (ById) Less

func (a ById) Less(i, j int) bool

func (ById) Swap

func (a ById) Swap(i, j int)

type CtApiError

type CtApiError struct {
	Reason         string
	HttpStatusCode int
}

func (*CtApiError) Error

func (e *CtApiError) Error() string

type Entry

type Entry struct {
	Id          int64
	Log         *Log
	Certificate *x509.Certificate
	Chain       []*x509.Certificate
	CertData    []byte
}

func ParseRawLogEntry

func ParseRawLogEntry(id int64, log *Log, rawEntry *ctgo.RawLogEntry) Entry

type Log

type Log struct {
	Name             string `json:"name,omitempty"`
	Url              string `json:"url,omitempty"`
	PageSize         int    `json:"page_size,omitempty"`
	Concurrency      int    `json:"concurrency,omitempty"`
	TreeSize         int64  `json:"tree_size,omitempty"`
	Timestamp        int64  `json:"timestamp,omitempty"`
	LastEntry        int64  `json:"last_entry,omitempty"`
	InFlightRequests int    `json:"-"`
}

func (*Log) GetEntries

func (log *Log) GetEntries(start int64, end int64) (*ctgo.GetEntriesResponse, error)

func (*Log) GetSTH

func (log *Log) GetSTH() (*ctgo.GetSTHResponse, error)

func (*Log) StreamEntries

func (log *Log) StreamEntries(stop chan bool) chan Entry

type LogMap

type LogMap map[string]*Log

type Page

type Page struct {
	// contains filtered or unexported fields
}

func NewPage

func NewPage(start int64, pageSize int) (page Page)

Jump to

Keyboard shortcuts

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