Documentation ¶
Index ¶
- Variables
- func NewEmptyMesaPropertyFromID(propertyID ids.PropertyID) properties.MesaProperty
- func NewEmptyMetaPropertyFromID(propertyID ids.PropertyID) properties.MetaProperty
- func NewMesaProperty(key ids.StringID, data data.Data) properties.MesaProperty
- func NewMetaProperty(key ids.StringID, data data.Data) properties.MetaProperty
- func PrototypeMesaProperty() properties.MesaProperty
- func PrototypeMetaProperty() properties.MetaProperty
- func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)
- type AnyProperty
- func (m *AnyProperty) Compare(property properties.Property) int
- func (*AnyProperty) Descriptor() ([]byte, []int)
- func (m *AnyProperty) Get() properties.Property
- func (m *AnyProperty) GetBondWeight() sdkTypes.Int
- func (m *AnyProperty) GetDataID() ids.DataID
- func (m *AnyProperty) GetDataTypeID() ids.StringID
- func (m *AnyProperty) GetID() ids.PropertyID
- func (m *AnyProperty) GetImpl() isAnyProperty_Impl
- func (m *AnyProperty) GetKey() ids.StringID
- func (m *AnyProperty) GetMesaProperty() *MesaProperty
- func (m *AnyProperty) GetMetaProperty() *MetaProperty
- func (m *AnyProperty) IsAnyProperty()
- func (m *AnyProperty) IsMeta() bool
- func (m *AnyProperty) Marshal() (dAtA []byte, err error)
- func (m *AnyProperty) MarshalTo(dAtA []byte) (int, error)
- func (m *AnyProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *AnyProperty) Mutate(data data.Data) (properties.Property, error)
- func (*AnyProperty) ProtoMessage()
- func (m *AnyProperty) Reset()
- func (m *AnyProperty) Size() (n int)
- func (m *AnyProperty) String() string
- func (m *AnyProperty) ToAnyProperty() properties.AnyProperty
- func (m *AnyProperty) Unmarshal(dAtA []byte) error
- func (m *AnyProperty) ValidateBasic() error
- func (m *AnyProperty) XXX_DiscardUnknown()
- func (m *AnyProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AnyProperty) XXX_Merge(src proto.Message)
- func (*AnyProperty) XXX_OneofWrappers() []interface{}
- func (m *AnyProperty) XXX_Size() int
- func (m *AnyProperty) XXX_Unmarshal(b []byte) error
- type AnyProperty_MesaProperty
- type AnyProperty_MetaProperty
- type MesaProperty
- func (mesaProperty *MesaProperty) Compare(property properties.Property) int
- func (*MesaProperty) Descriptor() ([]byte, []int)
- func (mesaProperty *MesaProperty) GetBondWeight() sdkTypes.Int
- func (mesaProperty *MesaProperty) GetDataID() ids.DataID
- func (mesaProperty *MesaProperty) GetDataTypeID() ids.StringID
- func (mesaProperty *MesaProperty) GetHash() ids.HashID
- func (mesaProperty *MesaProperty) GetID() ids.PropertyID
- func (mesaProperty *MesaProperty) GetKey() ids.StringID
- func (mesaProperty *MesaProperty) IsMesa() bool
- func (mesaProperty *MesaProperty) IsMeta() bool
- func (m *MesaProperty) Marshal() (dAtA []byte, err error)
- func (m *MesaProperty) MarshalTo(dAtA []byte) (int, error)
- func (m *MesaProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (mesaProperty *MesaProperty) Mutate(data data.Data) (properties.Property, error)
- func (*MesaProperty) ProtoMessage()
- func (m *MesaProperty) Reset()
- func (m *MesaProperty) Size() (n int)
- func (m *MesaProperty) String() string
- func (mesaProperty *MesaProperty) ToAnyProperty() properties.AnyProperty
- func (m *MesaProperty) Unmarshal(dAtA []byte) error
- func (mesaProperty *MesaProperty) ValidateBasic() error
- func (m *MesaProperty) XXX_DiscardUnknown()
- func (m *MesaProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MesaProperty) XXX_Merge(src proto.Message)
- func (m *MesaProperty) XXX_Size() int
- func (m *MesaProperty) XXX_Unmarshal(b []byte) error
- type MetaProperty
- func (metaProperty *MetaProperty) Compare(property properties.Property) int
- func (*MetaProperty) Descriptor() ([]byte, []int)
- func (metaProperty *MetaProperty) FromString(metaPropertyString string) (properties.MetaProperty, error)
- func (metaProperty *MetaProperty) GetBondWeight() sdkTypes.Int
- func (metaProperty *MetaProperty) GetData() data.AnyData
- func (metaProperty *MetaProperty) GetDataID() ids.DataID
- func (metaProperty *MetaProperty) GetDataTypeID() ids.StringID
- func (metaProperty *MetaProperty) GetID() ids.PropertyID
- func (metaProperty *MetaProperty) GetKey() ids.StringID
- func (metaProperty *MetaProperty) IsMeta() bool
- func (metaProperty *MetaProperty) IsMetaProperty()
- func (m *MetaProperty) Marshal() (dAtA []byte, err error)
- func (m *MetaProperty) MarshalTo(dAtA []byte) (int, error)
- func (m *MetaProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (metaProperty *MetaProperty) Mutate(data data.Data) (properties.Property, error)
- func (*MetaProperty) ProtoMessage()
- func (m *MetaProperty) Reset()
- func (metaProperty *MetaProperty) ScrubData() properties.MesaProperty
- func (m *MetaProperty) Size() (n int)
- func (m *MetaProperty) String() string
- func (metaProperty *MetaProperty) ToAnyProperty() properties.AnyProperty
- func (m *MetaProperty) Unmarshal(dAtA []byte) error
- func (metaProperty *MetaProperty) ValidateBasic() error
- func (m *MetaProperty) XXX_DiscardUnknown()
- func (m *MetaProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetaProperty) XXX_Merge(src proto.Message)
- func (m *MetaProperty) XXX_Size() int
- func (m *MetaProperty) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAnyProperty = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAnyProperty = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAnyProperty = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func NewEmptyMesaPropertyFromID ¶
func NewEmptyMesaPropertyFromID(propertyID ids.PropertyID) properties.MesaProperty
func NewEmptyMetaPropertyFromID ¶
func NewEmptyMetaPropertyFromID(propertyID ids.PropertyID) properties.MetaProperty
func NewMesaProperty ¶
func NewMesaProperty(key ids.StringID, data data.Data) properties.MesaProperty
func NewMetaProperty ¶
func NewMetaProperty(key ids.StringID, data data.Data) properties.MetaProperty
func PrototypeMesaProperty ¶
func PrototypeMesaProperty() properties.MesaProperty
func PrototypeMetaProperty ¶
func PrototypeMetaProperty() properties.MetaProperty
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)
Types ¶
type AnyProperty ¶
type AnyProperty struct { // Types that are valid to be assigned to Impl: // *AnyProperty_MesaProperty // *AnyProperty_MetaProperty Impl isAnyProperty_Impl `protobuf_oneof:"impl"` }
func (*AnyProperty) Compare ¶
func (m *AnyProperty) Compare(property properties.Property) int
func (*AnyProperty) Descriptor ¶
func (*AnyProperty) Descriptor() ([]byte, []int)
func (*AnyProperty) Get ¶
func (m *AnyProperty) Get() properties.Property
func (*AnyProperty) GetBondWeight ¶
func (m *AnyProperty) GetBondWeight() sdkTypes.Int
func (*AnyProperty) GetDataID ¶
func (m *AnyProperty) GetDataID() ids.DataID
func (*AnyProperty) GetDataTypeID ¶
func (m *AnyProperty) GetDataTypeID() ids.StringID
func (*AnyProperty) GetID ¶
func (m *AnyProperty) GetID() ids.PropertyID
func (*AnyProperty) GetImpl ¶
func (m *AnyProperty) GetImpl() isAnyProperty_Impl
func (*AnyProperty) GetKey ¶
func (m *AnyProperty) GetKey() ids.StringID
func (*AnyProperty) GetMesaProperty ¶
func (m *AnyProperty) GetMesaProperty() *MesaProperty
func (*AnyProperty) GetMetaProperty ¶
func (m *AnyProperty) GetMetaProperty() *MetaProperty
func (*AnyProperty) IsAnyProperty ¶
func (m *AnyProperty) IsAnyProperty()
func (*AnyProperty) IsMeta ¶
func (m *AnyProperty) IsMeta() bool
func (*AnyProperty) Marshal ¶
func (m *AnyProperty) Marshal() (dAtA []byte, err error)
func (*AnyProperty) MarshalToSizedBuffer ¶
func (m *AnyProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AnyProperty) Mutate ¶
func (m *AnyProperty) Mutate(data data.Data) (properties.Property, error)
func (*AnyProperty) ProtoMessage ¶
func (*AnyProperty) ProtoMessage()
func (*AnyProperty) Reset ¶
func (m *AnyProperty) Reset()
func (*AnyProperty) Size ¶
func (m *AnyProperty) Size() (n int)
func (*AnyProperty) String ¶
func (m *AnyProperty) String() string
func (*AnyProperty) ToAnyProperty ¶
func (m *AnyProperty) ToAnyProperty() properties.AnyProperty
func (*AnyProperty) Unmarshal ¶
func (m *AnyProperty) Unmarshal(dAtA []byte) error
func (*AnyProperty) ValidateBasic ¶
func (m *AnyProperty) ValidateBasic() error
func (*AnyProperty) XXX_DiscardUnknown ¶
func (m *AnyProperty) XXX_DiscardUnknown()
func (*AnyProperty) XXX_Marshal ¶
func (m *AnyProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AnyProperty) XXX_Merge ¶
func (m *AnyProperty) XXX_Merge(src proto.Message)
func (*AnyProperty) XXX_OneofWrappers ¶
func (*AnyProperty) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*AnyProperty) XXX_Size ¶
func (m *AnyProperty) XXX_Size() int
func (*AnyProperty) XXX_Unmarshal ¶
func (m *AnyProperty) XXX_Unmarshal(b []byte) error
type AnyProperty_MesaProperty ¶
type AnyProperty_MesaProperty struct {
MesaProperty *MesaProperty `protobuf:"bytes,1,opt,name=mesa_property,json=mesaProperty,proto3,oneof" json:"mesa_property,omitempty"`
}
func (*AnyProperty_MesaProperty) MarshalTo ¶
func (m *AnyProperty_MesaProperty) MarshalTo(dAtA []byte) (int, error)
func (*AnyProperty_MesaProperty) MarshalToSizedBuffer ¶
func (m *AnyProperty_MesaProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AnyProperty_MesaProperty) Size ¶
func (m *AnyProperty_MesaProperty) Size() (n int)
type AnyProperty_MetaProperty ¶
type AnyProperty_MetaProperty struct {
MetaProperty *MetaProperty `protobuf:"bytes,2,opt,name=meta_property,json=metaProperty,proto3,oneof" json:"meta_property,omitempty"`
}
func (*AnyProperty_MetaProperty) MarshalTo ¶
func (m *AnyProperty_MetaProperty) MarshalTo(dAtA []byte) (int, error)
func (*AnyProperty_MetaProperty) MarshalToSizedBuffer ¶
func (m *AnyProperty_MetaProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AnyProperty_MetaProperty) Size ¶
func (m *AnyProperty_MetaProperty) Size() (n int)
type MesaProperty ¶
type MesaProperty struct { ID *base.PropertyID `protobuf:"bytes,1,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"` DataID *base.DataID `protobuf:"bytes,2,opt,name=data_i_d,json=dataID,proto3" json:"data_i_d,omitempty"` }
func (*MesaProperty) Compare ¶
func (mesaProperty *MesaProperty) Compare(property properties.Property) int
func (*MesaProperty) Descriptor ¶
func (*MesaProperty) Descriptor() ([]byte, []int)
func (*MesaProperty) GetBondWeight ¶
func (mesaProperty *MesaProperty) GetBondWeight() sdkTypes.Int
func (*MesaProperty) GetDataID ¶
func (mesaProperty *MesaProperty) GetDataID() ids.DataID
func (*MesaProperty) GetDataTypeID ¶
func (mesaProperty *MesaProperty) GetDataTypeID() ids.StringID
func (*MesaProperty) GetHash ¶
func (mesaProperty *MesaProperty) GetHash() ids.HashID
func (*MesaProperty) GetID ¶
func (mesaProperty *MesaProperty) GetID() ids.PropertyID
func (*MesaProperty) GetKey ¶
func (mesaProperty *MesaProperty) GetKey() ids.StringID
func (*MesaProperty) IsMesa ¶
func (mesaProperty *MesaProperty) IsMesa() bool
func (*MesaProperty) IsMeta ¶
func (mesaProperty *MesaProperty) IsMeta() bool
func (*MesaProperty) Marshal ¶
func (m *MesaProperty) Marshal() (dAtA []byte, err error)
func (*MesaProperty) MarshalToSizedBuffer ¶
func (m *MesaProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MesaProperty) Mutate ¶
func (mesaProperty *MesaProperty) Mutate(data data.Data) (properties.Property, error)
Mutate NOTE: Need to check if propertyID type is not different from data after mutating
func (*MesaProperty) ProtoMessage ¶
func (*MesaProperty) ProtoMessage()
func (*MesaProperty) Reset ¶
func (m *MesaProperty) Reset()
func (*MesaProperty) Size ¶
func (m *MesaProperty) Size() (n int)
func (*MesaProperty) String ¶
func (m *MesaProperty) String() string
func (*MesaProperty) ToAnyProperty ¶
func (mesaProperty *MesaProperty) ToAnyProperty() properties.AnyProperty
func (*MesaProperty) Unmarshal ¶
func (m *MesaProperty) Unmarshal(dAtA []byte) error
func (*MesaProperty) ValidateBasic ¶
func (mesaProperty *MesaProperty) ValidateBasic() error
func (*MesaProperty) XXX_DiscardUnknown ¶
func (m *MesaProperty) XXX_DiscardUnknown()
func (*MesaProperty) XXX_Marshal ¶
func (m *MesaProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MesaProperty) XXX_Merge ¶
func (m *MesaProperty) XXX_Merge(src proto.Message)
func (*MesaProperty) XXX_Size ¶
func (m *MesaProperty) XXX_Size() int
func (*MesaProperty) XXX_Unmarshal ¶
func (m *MesaProperty) XXX_Unmarshal(b []byte) error
type MetaProperty ¶
type MetaProperty struct { ID *base.PropertyID `protobuf:"bytes,1,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"` Data *base1.AnyData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*MetaProperty) Compare ¶
func (metaProperty *MetaProperty) Compare(property properties.Property) int
func (*MetaProperty) Descriptor ¶
func (*MetaProperty) Descriptor() ([]byte, []int)
func (*MetaProperty) FromString ¶
func (metaProperty *MetaProperty) FromString(metaPropertyString string) (properties.MetaProperty, error)
func (*MetaProperty) GetBondWeight ¶
func (metaProperty *MetaProperty) GetBondWeight() sdkTypes.Int
func (*MetaProperty) GetData ¶
func (metaProperty *MetaProperty) GetData() data.AnyData
func (*MetaProperty) GetDataID ¶
func (metaProperty *MetaProperty) GetDataID() ids.DataID
func (*MetaProperty) GetDataTypeID ¶
func (metaProperty *MetaProperty) GetDataTypeID() ids.StringID
func (*MetaProperty) GetID ¶
func (metaProperty *MetaProperty) GetID() ids.PropertyID
func (*MetaProperty) GetKey ¶
func (metaProperty *MetaProperty) GetKey() ids.StringID
func (*MetaProperty) IsMeta ¶
func (metaProperty *MetaProperty) IsMeta() bool
func (*MetaProperty) IsMetaProperty ¶
func (metaProperty *MetaProperty) IsMetaProperty()
func (*MetaProperty) Marshal ¶
func (m *MetaProperty) Marshal() (dAtA []byte, err error)
func (*MetaProperty) MarshalToSizedBuffer ¶
func (m *MetaProperty) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MetaProperty) Mutate ¶
func (metaProperty *MetaProperty) Mutate(data data.Data) (properties.Property, error)
Mutate NOTE: Need to check if propertyID type is not different from data after mutating
func (*MetaProperty) ProtoMessage ¶
func (*MetaProperty) ProtoMessage()
func (*MetaProperty) Reset ¶
func (m *MetaProperty) Reset()
func (*MetaProperty) ScrubData ¶
func (metaProperty *MetaProperty) ScrubData() properties.MesaProperty
func (*MetaProperty) Size ¶
func (m *MetaProperty) Size() (n int)
func (*MetaProperty) String ¶
func (m *MetaProperty) String() string
func (*MetaProperty) ToAnyProperty ¶
func (metaProperty *MetaProperty) ToAnyProperty() properties.AnyProperty
func (*MetaProperty) Unmarshal ¶
func (m *MetaProperty) Unmarshal(dAtA []byte) error
func (*MetaProperty) ValidateBasic ¶
func (metaProperty *MetaProperty) ValidateBasic() error
func (*MetaProperty) XXX_DiscardUnknown ¶
func (m *MetaProperty) XXX_DiscardUnknown()
func (*MetaProperty) XXX_Marshal ¶
func (m *MetaProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetaProperty) XXX_Merge ¶
func (m *MetaProperty) XXX_Merge(src proto.Message)
func (*MetaProperty) XXX_Size ¶
func (m *MetaProperty) XXX_Size() int
func (*MetaProperty) XXX_Unmarshal ¶
func (m *MetaProperty) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.