Documentation ¶
Overview ¶
Package material is a generated protocol buffer package.
It is generated from these files:
material/material.proto
It has these top-level messages:
Material
Index ¶
- Variables
- type DB
- type Material
- 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 (*Material) ProtoMessage()
- func (m *Material) Reset()
- func (m *Material) Size() (n int)
- func (m *Material) String() string
- func (m *Material) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidLengthMaterial = fmt.Errorf("proto: negative length found during unmarshaling")
)
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { // LoadMaterial retrieves Material data from a backing store. LoadMaterial([]byte) (*Material, error) // StoreMaterial saves Material data to a backing store. StoreMaterial(*Material) error }
DB interface for loading and storing material.
type Material ¶
type Material struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` ID []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Data [][]byte `protobuf:"bytes,4,rep,name=data" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Material) ProtoMessage ¶
func (*Material) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.