Documentation
¶
Index ¶
- func ContentAddress(entity Identifiable) string
- type AddressType
- type AddressWriter
- func (b *AddressWriter) Identity() []byte
- func (b *AddressWriter) MarshalBytes(v []byte)
- func (b *AddressWriter) MarshalIdentifiable(v Identifiable)
- func (b *AddressWriter) MarshalInt64(v int64)
- func (b *AddressWriter) MarshalString(v string)
- func (b *AddressWriter) MarshalStringMap(v map[string]string)
- func (b *AddressWriter) MarshalStringSlice(v []string)
- type Identifiable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentAddress ¶
func ContentAddress(entity Identifiable) string
Types ¶
type AddressType ¶
type AddressType uint8
const ( AddressTypeBytes AddressType = iota AddressTypeString AddressTypeInt64 AddressTypeStringSlice AddressTypeStringMap AddressTypeEmbeddedIdentifiable )
type AddressWriter ¶
func NewAddressWriter ¶
func NewAddressWriter() *AddressWriter
func (*AddressWriter) Identity ¶
func (b *AddressWriter) Identity() []byte
func (*AddressWriter) MarshalBytes ¶
func (b *AddressWriter) MarshalBytes(v []byte)
func (*AddressWriter) MarshalIdentifiable ¶
func (b *AddressWriter) MarshalIdentifiable(v Identifiable)
func (*AddressWriter) MarshalInt64 ¶
func (b *AddressWriter) MarshalInt64(v int64)
func (*AddressWriter) MarshalString ¶
func (b *AddressWriter) MarshalString(v string)
func (*AddressWriter) MarshalStringMap ¶
func (b *AddressWriter) MarshalStringMap(v map[string]string)
func (*AddressWriter) MarshalStringSlice ¶
func (b *AddressWriter) MarshalStringSlice(v []string)
type Identifiable ¶
type Identifiable interface {
Identity() []byte
}
Click to show internal directories.
Click to hide internal directories.