Copy LogInput from audit package, add OptMarshaler interface (#6735)

Adds Type field and makes Request and Response interface{}.  

Add OptMarshaler interface for doing JSON marshaling with options.
This commit is contained in:
ncabatoff
2019-05-15 09:05:30 -04:00
committed by GitHub
parent 3eb13464ff
commit 7c193f53c8

19
sdk/logical/audit.go Normal file
View File

@@ -0,0 +1,19 @@
package logical
type LogInput struct {
Type string
Auth *Auth
Request interface{}
Response interface{}
OuterErr error
NonHMACReqDataKeys []string
NonHMACRespDataKeys []string
}
type MarshalOptions struct {
ValueHasher func(string) string
}
type OptMarshaler interface {
MarshalJSONWithOptions(*MarshalOptions) ([]byte, error)
}