Documentation ¶
Index ¶
- type LogStore
- func (s *LogStore) Clear(ctx context.Context) error
- func (s *LogStore) Close()
- func (s *LogStore) Init(ctx context.Context) error
- func (s *LogStore) LookupIPAddress(ip string) (string, error)
- func (s *LogStore) LookupLogFile(logfile string, modified time.Time) (string, time.Time, error)
- func (s *LogStore) LookupReferrer(referrer string) (string, error)
- func (s *LogStore) LookupURI(uri string) (string, error)
- func (s *LogStore) Open() error
- func (s *LogStore) Ping(ctx context.Context) error
- func (s *LogStore) PrintSchema()
- func (s *LogStore) WriteHTTPLogEntry(ctx context.Context, entry httplog.Entry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogStore ¶
type LogStore struct {
// contains filtered or unexported fields
}
LogStore implements a log store in mysql
func (*LogStore) Clear ¶
Clear drops the tables used for storing log data, normally so they can be recreated in a new format
func (*LogStore) LookupIPAddress ¶
LookupIPAddress retrieves the uuid for an ip address
func (*LogStore) LookupLogFile ¶
LookupLogFile retrieves the file id of a log file
func (*LogStore) LookupReferrer ¶
LookupReferrer retrieves the referrer
func (*LogStore) PrintSchema ¶
func (s *LogStore) PrintSchema()
PrintSchema displays the SQL to create the necessary tables
Click to show internal directories.
Click to hide internal directories.