Skip to content

Commit

Permalink
audit: Basic interface
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Mar 27, 2015
1 parent 06e30b4 commit 3d0242c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions audit/audit.go
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 3d0242c

Please sign in to comment.