recorder

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchConfig

type MatchConfig struct {
	User  *regexp.Regexp
	Group *regexp.Regexp
	Extra map[string]*regexp.Regexp
}

func MustNewMatchConfig

func MustNewMatchConfig(user, group string, info map[string]string) (cfg *MatchConfig)

func (*MatchConfig) Match

type Recorder

type Recorder struct {
	Logger *logrus.Logger
	// contains filtered or unexported fields
}

func New

func New(logger *logrus.Logger, db store.Store, match *MatchConfig) (*Recorder, error)

func (*Recorder) ListEvents

func (a *Recorder) ListEvents(w http.ResponseWriter, r *http.Request)

func (*Recorder) RecordEvents

func (a *Recorder) RecordEvents(w http.ResponseWriter, r *http.Request)

RecordEvents captures incoming events

Jump to

Keyboard shortcuts

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