core

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMaxEntries int64 = 256

Functions

This section is empty.

Types

type CTStream

type CTStream[T CtClient] struct {
	Client T
	Sleep  time.Duration
	Ctx    context.Context
	Wg     sync.WaitGroup
	// contains filtered or unexported fields
}

func NewCTStream

func NewCTStream[T CtClient](
	client T,
	sleep time.Duration,
	Ctx context.Context,
) (*CTStream[T], error)

func (*CTStream[T]) Await

func (stream *CTStream[T]) Await()

func (*CTStream[T]) Init

func (stream *CTStream[T]) Init() error

func (*CTStream[T]) Next

func (stream *CTStream[T]) Next(callback Callback)

func (*CTStream[T]) Run

func (stream *CTStream[T]) Run(callback Callback)

func (*CTStream[T]) Start

func (stream *CTStream[T]) Start(callback Callback)

func (*CTStream[T]) Stop

func (stream *CTStream[T]) Stop()

type CTsStream

type CTsStream[T CtStream] struct {
	Streams []T
	Sleep   time.Duration
}

func NewCTsStream

func NewCTsStream[T CtStream](streams []T, sleep time.Duration) (*CTsStream[T], error)

func (CTsStream[T]) Await

func (stream CTsStream[T]) Await()

func (*CTsStream[T]) Init

func (stream *CTsStream[T]) Init() error

func (*CTsStream[T]) Run

func (stream *CTsStream[T]) Run(callback Callback)

func (*CTsStream[T]) Start

func (stream *CTsStream[T]) Start(callback Callback)

func (*CTsStream[T]) Stop

func (stream *CTsStream[T]) Stop()

type Callback

type Callback func(*ctx509.Certificate, int, any, error)

type CtClient

type CtClient interface {
	Init() error
	Next(callback Callback)
}

type CtStream

type CtStream interface {
	Init() error
	Start(Callback)
	Run(Callback)
	Stop()
	Await()
}

type LogID

type LogID = int64

Jump to

Keyboard shortcuts

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