journal

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const RFC3339Milli = "2006-01-02T15:04:05.000Z07:00"

Variables

This section is empty.

Functions

This section is empty.

Types

type Index added in v1.8.0

type Index struct {
	Name string

	Entries map[string]*JournalEntry
	// contains filtered or unexported fields
}

func (Index) AddJournalEntry added in v1.8.0

func (index Index) AddJournalEntry(entry *JournalEntry)

type Journal

type Journal struct {
	Indexes    []Index
	EntryLimit int
	// contains filtered or unexported fields
}

func NewJournal

func NewJournal() *Journal

func (*Journal) AddIndex added in v1.8.0

func (this *Journal) AddIndex(indexKey string) error

func (*Journal) DeleteEntries

func (this *Journal) DeleteEntries() error

func (*Journal) DeleteIndex added in v1.8.0

func (this *Journal) DeleteIndex(indexKey string)

func (*Journal) GetAllIndexes added in v1.8.0

func (this *Journal) GetAllIndexes() []v2.JournalIndexView

func (*Journal) GetEntries

func (this *Journal) GetEntries(offset int, limit int, from *time.Time, to *time.Time, sort string) (v2.JournalView, error)

func (*Journal) GetFilteredEntries

func (this *Journal) GetFilteredEntries(journalEntryFilterView v2.JournalEntryFilterView) ([]v2.JournalEntryView, error)

func (*Journal) NewEntry

func (this *Journal) NewEntry(request *http.Request, response *http.Response, mode string, started time.Time) (string, error)

func (*Journal) UpdatePostServeActionDetailsInJournal added in v1.9.0

func (journal *Journal) UpdatePostServeActionDetailsInJournal(id string, actionName, correlationID string, invokedTime, completedTime time.Time, httpStatus int)

type JournalEntry

type JournalEntry struct {
	Request              *models.RequestDetails
	Response             *models.ResponseDetails
	Mode                 string
	TimeStarted          time.Time
	Latency              time.Duration
	Id                   string
	PostServeActionEntry *PostServeActionEntry
}

type PostServeActionEntry added in v1.9.0

type PostServeActionEntry struct {
	ActionName    string
	InvokedTime   time.Time
	CompletedTime time.Time
	CorrelationId string
	HttpStatus    int
}

type Request added in v1.8.0

type Request struct {
	QueryParam map[string][]string
	Header     map[string][]string
	Path       []string
	Scheme     string
	FormData   map[string][]string
	Body       func(queryType, query string, options *raymond.Options) interface{}
	BodyStr    string
	Method     string
}

Jump to

Keyboard shortcuts

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