Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalProto ¶
func MarshalProto(c *Collection) *collection_manager_pb.Collection
Types ¶
type Collection ¶
type Collection struct { ID string `json:"id"` Name string `json:"name"` Desc string `json:"dsc"` CreatedAt time.Time `json:"createdAt"` }
func NewCollection ¶
func NewCollection(id string) *Collection
func Unmarshal ¶
func Unmarshal(data []byte) (*Collection, error)
func UnmarshalProto ¶
func UnmarshalProto(p *collection_manager_pb.Collection) *Collection
func (*Collection) ToBytes ¶
func (collection *Collection) ToBytes() []byte
Click to show internal directories.
Click to hide internal directories.