Documentation ¶
Index ¶
- type Database
- func (db *Database) Close() error
- func (db *Database) FindHostByHostname(ctx context.Context, hostname string) (hosts.Host, error)
- func (db *Database) FindHostByID(ctx context.Context, hostID ulid.ULID) (hosts.Host, error)
- func (db *Database) ListHTTPLogEntries(ctx context.Context, params hosts.ListHTTPLogEntriesParams) ([]hosts.HTTPLogEntry, error)
- func (db *Database) StoreHTTPLogEntry(ctx context.Context, entry hosts.HTTPLogEntry) error
- func (db *Database) StoreHosts(ctx context.Context, hosts ...hosts.Host) error
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func OpenDatabase ¶
func (*Database) FindHostByHostname ¶
func (*Database) FindHostByID ¶
func (*Database) ListHTTPLogEntries ¶
func (db *Database) ListHTTPLogEntries(ctx context.Context, params hosts.ListHTTPLogEntriesParams) ([]hosts.HTTPLogEntry, error)
func (*Database) StoreHTTPLogEntry ¶
Click to show internal directories.
Click to hide internal directories.