frostfs-api-go/internal/proto.go

20 lines
419 B
Go
Raw Normal View History

2019-11-18 13:34:06 +00:00
package internal
import "github.com/gogo/protobuf/proto"
// Custom contains methods to satisfy proto.Message
// including custom methods to satisfy protobuf for
// non-proto defined types.
type Custom interface {
Size() int
Empty() bool
Bytes() []byte
Marshal() ([]byte, error)
MarshalTo(data []byte) (int, error)
Unmarshal(data []byte) error
proto.Message
2020-07-03 06:12:02 +00:00
// Should contains for proto.Clone
proto.Merger
2019-11-18 13:34:06 +00:00
}