Documentation ¶
Index ¶
- Constants
- type Backend
- type DB
- func (db *DB) ActiveTests(ctx context.Context, timeout time.Duration) (int64, error)
- func (db *DB) Close()
- func (db *DB) FinishTest(ctx context.Context, t *Test) error
- func (db *DB) InsertTest(ctx context.Context, id uuid.UUID) error
- func (db *DB) InsertTestResult(ctx context.Context, t *Test, resultType string, addr string, ptr *string) error
- func (db *DB) PruneTestResults(ctx context.Context) (int64, error)
- func (db *DB) Test(ctx context.Context, id uuid.UUID) (*Test, error)
- func (db *DB) TestResults(ctx context.Context, t *Test) ([]*TestResult, error)
- type Memory
- func (m *Memory) ActiveTests(ctx context.Context, timeout time.Duration) (int64, error)
- func (m *Memory) Close()
- func (m *Memory) FinishTest(ctx context.Context, t *Test) error
- func (m *Memory) InsertTest(ctx context.Context, id uuid.UUID) error
- func (m *Memory) InsertTestResult(ctx context.Context, t *Test, resultType string, addr string, ptr *string) error
- func (m *Memory) PruneTestResults(ctx context.Context) (int64, error)
- func (m *Memory) Test(ctx context.Context, id uuid.UUID) (*Test, error)
- func (m *Memory) TestResults(ctx context.Context, t *Test) ([]*TestResult, error)
- type Test
- type TestResult
Constants ¶
View Source
const ( TestResultDnsQuery = "recv_dns_query" TestResultLdapBind = "recv_ldap_bind" TestResultLdapSearch = "recv_ldap_search" TestResultHttpGet = "recv_http_get" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Close() Test(ctx context.Context, id uuid.UUID) (*Test, error) InsertTest(ctx context.Context, id uuid.UUID) error InsertTestResult(ctx context.Context, t *Test, resultType string, addr string, ptr *string) error TestResults(ctx context.Context, t *Test) ([]*TestResult, error) PruneTestResults(ctx context.Context) (int64, error) FinishTest(ctx context.Context, t *Test) error ActiveTests(ctx context.Context, timeout time.Duration) (int64, error) }
func NewBackend ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) ActiveTests ¶
func (*DB) InsertTestResult ¶
func (*DB) TestResults ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) ActiveTests ¶
func (*Memory) InsertTestResult ¶
func (*Memory) PruneTestResults ¶
func (*Memory) TestResults ¶
Click to show internal directories.
Click to hide internal directories.