mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
audit: docs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -41,6 +41,10 @@ func TestHash(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"foo",
|
||||
"foo",
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
|
||||
Reference in New Issue
Block a user