audit: Basic interface

This commit is contained in:
Armon Dadgar 2015-03-27 13:43:23 -07:00
parent 2024c7a155
commit 615e209296
1 changed files with 11 additions and 0 deletions

11
audit/audit.go Normal file
View File

@ -0,0 +1,11 @@
package audit
// Backend interface must be implemented for an audit
// mechanism to be made available. Audit backends can be enabled to
// sink information to different backends such as logs, file, databases,
// or other external services.
type Backend interface {
}
// Factory is the factory function to create an audit backend.
type Factory func(map[string]string) (Backend, error)