Versions in this module Expand all Collapse all v0 v0.1.0 Dec 6, 2015 Changes in this version + var ErrInvalidLengthMaterial = fmt.Errorf("proto: negative length found during unmarshaling") + type DB interface + LoadMaterial func([]byte) (*Material, error) + StoreMaterial func(*Material) error + type Material struct + Data [][]byte + ID []byte + Nonce []byte + func New(id []byte, data [][]byte) (*Material, error) + func (*Material) ProtoMessage() + func (m *Material) Comment() string + func (m *Material) Digest() ([]byte, error) + func (m *Material) Marshal() (data []byte, err error) + func (m *Material) MarshalTo(data []byte) (int, error) + func (m *Material) Reset() + func (m *Material) Size() (n int) + func (m *Material) String() string + func (m *Material) Unmarshal(data []byte) error