audit: docs

This commit is contained in:
Mitchell Hashimoto
2015-04-22 07:42:37 +02:00
parent ccaad36388
commit d2f85569d4
2 changed files with 6 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ import (
// Formatter is an interface that is responsible for formating a
// request/response into some format. Formatters write their output
// to an io.Writer.
//
// It is recommended that you pass data through Hash prior to formatting it.
type Formatter interface {
FormatRequest(io.Writer, *logical.Auth, *logical.Request) error
FormatResponse(io.Writer, *logical.Auth, *logical.Request, *logical.Response, error) error

View File

@@ -41,6 +41,10 @@ func TestHash(t *testing.T) {
},
},
},
{
"foo",
"foo",
},
}
for _, tc := range cases {