open-vault/audit/formatter.go
2015-04-13 14:12:03 -07:00

16 lines
411 B
Go

package audit
import (
"io"
"github.com/hashicorp/vault/logical"
)
// Formatter is an interface that is responsible for formating a
// request/response into some format. Formatters write their output
// to an io.Writer.
type Formatter interface {
FormatRequest(io.Writer, *logical.Auth, *logical.Request) error
FormatResponse(io.Writer, *logical.Auth, *logical.Request, *logical.Response, error) error
}