[#38] sdk/object: Add Object to RawObject converter
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
dc88934034
commit
becb9148c1
3 changed files with 6 additions and 1 deletions
2
go.mod
2
go.mod
|
@ -13,7 +13,7 @@ require (
|
|||
github.com/multiformats/go-multiaddr-net v0.1.2 // v0.1.1 => v0.1.2
|
||||
github.com/multiformats/go-multihash v0.0.13 // indirect
|
||||
github.com/nspcc-dev/neo-go v0.91.1-pre.0.20200827184617-7560aa345a78
|
||||
github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200918082543-e97f7096c6c4
|
||||
github.com/nspcc-dev/neofs-api-go v1.3.1-0.20200922150714-14fa89b81919
|
||||
github.com/nspcc-dev/neofs-crypto v0.3.0
|
||||
github.com/nspcc-dev/tzhash v1.4.0
|
||||
github.com/panjf2000/ants/v2 v2.3.0
|
||||
|
|
BIN
go.sum
BIN
go.sum
Binary file not shown.
|
@ -28,6 +28,11 @@ func NewRawFrom(obj *object.RawObject) *RawObject {
|
|||
}
|
||||
}
|
||||
|
||||
// NewRawFromObject wraps Object instance to RawObject.
|
||||
func NewRawFromObject(obj *Object) *RawObject {
|
||||
return NewRawFrom(object.NewRawFrom(obj.SDK()))
|
||||
}
|
||||
|
||||
// NewRaw constructs blank RawObject instance.
|
||||
func NewRaw() *RawObject {
|
||||
return NewRawFrom(object.NewRaw())
|
||||
|
|
Loading…
Reference in a new issue