Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestAuditEncoder ¶
type TestAuditEncoder struct { // Ctx is a context.Context that is checked before writing to // the events channel. // //nolint Ctx context.Context // Events is written to when Encode is called. Events chan<- *auditevent.AuditEvent // T is the current test's testing.T. T *testing.T // Err is an optional error that is returned when Encode is // called (only if Err is non-nil). Err error }
TestAuditEncoder implements auditevent.EventEncoder for testing purposes.
func (TestAuditEncoder) Encode ¶
func (o TestAuditEncoder) Encode(i interface{}) error
Click to show internal directories.
Click to hide internal directories.