forked from TrueCloudLab/frostfs-node
[#269] morph/audit: Implement wrapper over Audit contract client
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
07da9d31f2
commit
919f4364f1
3 changed files with 123 additions and 0 deletions
14
pkg/morph/client/audit/wrapper/wrapper.go
Normal file
14
pkg/morph/client/audit/wrapper/wrapper.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package audit
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/client/audit"
|
||||
)
|
||||
|
||||
// ClientWrapper is a wrapper over Audit contract
|
||||
// client which implements storage of audit results.
|
||||
type ClientWrapper audit.Client
|
||||
|
||||
// WrapClient wraps Audit contract client and returns ClientWrapper instance.
|
||||
func WrapClient(c *audit.Client) *ClientWrapper {
|
||||
return (*ClientWrapper)(c)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue