eventrecorder

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventRecorder

type EventRecorder struct {
	RequestEventsChannel chan<- chan<- Events
	SshCertChannel       chan<- *ssh.Certificate
	X509CertChannel      chan<- *x509.Certificate
	// contains filtered or unexported fields
}

func New

func New(filename string, logger log.Logger) (*EventRecorder, error)

type EventType

type EventType struct {
	CreateTime      uint64 // Seconds since Epoch.
	LifetimeSeconds uint32
	Ssh             bool
	X509            bool
}

type Events

type Events struct {
	ComputeTime time.Duration
	Events      EventsMap
}

type EventsMap

type EventsMap map[string][]EventType // Key: username.

Jump to

Keyboard shortcuts

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