base

package
v0.0.0-...-59a8832 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 82

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAnyId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAnyId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAnyId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthAssetId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAssetId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAssetId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthClassificationId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClassificationId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClassificationId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDataId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDataId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDataId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthHashId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHashId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHashId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthIdentityId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIdentityId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIdentityId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMaintainerId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMaintainerId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMaintainerId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthOrderId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOrderId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOrderId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPropertyId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPropertyId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPropertyId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSplitId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSplitId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSplitId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStringId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStringId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStringId = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GenerateDataID

func GenerateDataID(data data.Data) ids.DataID

func GenerateHashID

func GenerateHashID(toHashList ...[]byte) ids.HashID

TODO test

func NewAssetID

func NewAssetID(classificationID ids.ClassificationID, immutables qualified.Immutables) ids.AssetID

func NewClassificationID

func NewClassificationID(immutables qualified.Immutables, mutables qualified.Mutables) ids.ClassificationID

func NewIdentityID

func NewIdentityID(classificationID ids.ClassificationID, immutables qualified.Immutables) ids.IdentityID

func NewMaintainerID

func NewMaintainerID(maintainerClassificationID ids.ClassificationID, immutables qualified.Immutables) ids.MaintainerID

func NewOrderID

func NewOrderID(classificationID ids.ClassificationID, immutables qualified.Immutables) ids.OrderID

func NewPropertyID

func NewPropertyID(key, Type ids.StringID) ids.PropertyID

func NewSplitID

func NewSplitID(assetID ids.AssetID, ownerID ids.IdentityID) ids.SplitID

func NewStringID

func NewStringID(idString string) ids.StringID

func PrototypeAnyID

func PrototypeAnyID() ids.AnyID

func PrototypeAssetID

func PrototypeAssetID() ids.AssetID

func PrototypeClassificationID

func PrototypeClassificationID() ids.ClassificationID

func PrototypeDataID

func PrototypeDataID() ids.DataID

func PrototypeHashID

func PrototypeHashID() ids.HashID

func PrototypeIdentityID

func PrototypeIdentityID() ids.IdentityID

func PrototypeMaintainerID

func PrototypeMaintainerID() ids.MaintainerID

func PrototypeOrderID

func PrototypeOrderID() ids.OrderID

func PrototypePropertyID

func PrototypePropertyID() ids.PropertyID

func PrototypeSplitID

func PrototypeSplitID() ids.SplitID

func PrototypeStringID

func PrototypeStringID() ids.StringID

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)

func StringIDsToIDs

func StringIDsToIDs(stringIDs []ids.StringID) []ids.ID

Types

type AnyID

type AnyID struct {
	// Types that are valid to be assigned to Impl:
	//	*AnyID_AssetID
	//	*AnyID_ClassificationID
	//	*AnyID_DataID
	//	*AnyID_HashID
	//	*AnyID_IdentityID
	//	*AnyID_MaintainerID
	//	*AnyID_OrderID
	//	*AnyID_PropertyID
	//	*AnyID_SplitID
	//	*AnyID_StringID
	Impl isAnyID_Impl `protobuf_oneof:"impl"`
}

func (*AnyID) AsString

func (anyID *AnyID) AsString() string

func (*AnyID) Bytes

func (anyID *AnyID) Bytes() []byte

func (*AnyID) Compare

func (anyID *AnyID) Compare(id ids.ID) int

func (*AnyID) Descriptor

func (*AnyID) Descriptor() ([]byte, []int)

func (*AnyID) FromString

func (anyID *AnyID) FromString(idString string) (ids.ID, error)

func (*AnyID) Get

func (anyID *AnyID) Get() ids.ID

func (*AnyID) GetAssetID

func (m *AnyID) GetAssetID() *AssetID

func (*AnyID) GetClassificationID

func (m *AnyID) GetClassificationID() *ClassificationID

func (*AnyID) GetDataID

func (m *AnyID) GetDataID() *DataID

func (*AnyID) GetHashID

func (m *AnyID) GetHashID() *HashID

func (*AnyID) GetIdentityID

func (m *AnyID) GetIdentityID() *IdentityID

func (*AnyID) GetImpl

func (m *AnyID) GetImpl() isAnyID_Impl

func (*AnyID) GetMaintainerID

func (m *AnyID) GetMaintainerID() *MaintainerID

func (*AnyID) GetOrderID

func (m *AnyID) GetOrderID() *OrderID

func (*AnyID) GetPropertyID

func (m *AnyID) GetPropertyID() *PropertyID

func (*AnyID) GetSplitID

func (m *AnyID) GetSplitID() *SplitID

func (*AnyID) GetStringID

func (m *AnyID) GetStringID() *StringID

func (*AnyID) GetTypeID

func (anyID *AnyID) GetTypeID() ids.StringID

func (*AnyID) Marshal

func (m *AnyID) Marshal() (dAtA []byte, err error)

func (*AnyID) MarshalTo

func (m *AnyID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID) MarshalToSizedBuffer

func (m *AnyID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID) ProtoMessage

func (*AnyID) ProtoMessage()

func (*AnyID) Reset

func (m *AnyID) Reset()

func (*AnyID) Size

func (m *AnyID) Size() (n int)

func (*AnyID) String

func (m *AnyID) String() string

func (*AnyID) ToAnyID

func (anyID *AnyID) ToAnyID() ids.AnyID

func (*AnyID) Unmarshal

func (m *AnyID) Unmarshal(dAtA []byte) error

func (*AnyID) ValidateBasic

func (anyID *AnyID) ValidateBasic() error

func (*AnyID) XXX_DiscardUnknown

func (m *AnyID) XXX_DiscardUnknown()

func (*AnyID) XXX_Marshal

func (m *AnyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnyID) XXX_Merge

func (m *AnyID) XXX_Merge(src proto.Message)

func (*AnyID) XXX_OneofWrappers

func (*AnyID) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AnyID) XXX_Size

func (m *AnyID) XXX_Size() int

func (*AnyID) XXX_Unmarshal

func (m *AnyID) XXX_Unmarshal(b []byte) error

type AnyID_AssetID

type AnyID_AssetID struct {
	AssetID *AssetID `protobuf:"bytes,1,opt,name=asset_i_d,json=assetID,proto3,oneof" json:"asset_i_d,omitempty"`
}

func (*AnyID_AssetID) MarshalTo

func (m *AnyID_AssetID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_AssetID) MarshalToSizedBuffer

func (m *AnyID_AssetID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_AssetID) Size

func (m *AnyID_AssetID) Size() (n int)

type AnyID_ClassificationID

type AnyID_ClassificationID struct {
	ClassificationID *ClassificationID `protobuf:"bytes,2,opt,name=classification_i_d,json=classificationID,proto3,oneof" json:"classification_i_d,omitempty"`
}

func (*AnyID_ClassificationID) MarshalTo

func (m *AnyID_ClassificationID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_ClassificationID) MarshalToSizedBuffer

func (m *AnyID_ClassificationID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_ClassificationID) Size

func (m *AnyID_ClassificationID) Size() (n int)

type AnyID_DataID

type AnyID_DataID struct {
	DataID *DataID `protobuf:"bytes,3,opt,name=data_i_d,json=dataID,proto3,oneof" json:"data_i_d,omitempty"`
}

func (*AnyID_DataID) MarshalTo

func (m *AnyID_DataID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_DataID) MarshalToSizedBuffer

func (m *AnyID_DataID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_DataID) Size

func (m *AnyID_DataID) Size() (n int)

type AnyID_HashID

type AnyID_HashID struct {
	HashID *HashID `protobuf:"bytes,4,opt,name=hash_i_d,json=hashID,proto3,oneof" json:"hash_i_d,omitempty"`
}

func (*AnyID_HashID) MarshalTo

func (m *AnyID_HashID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_HashID) MarshalToSizedBuffer

func (m *AnyID_HashID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_HashID) Size

func (m *AnyID_HashID) Size() (n int)

type AnyID_IdentityID

type AnyID_IdentityID struct {
	IdentityID *IdentityID `protobuf:"bytes,5,opt,name=identity_i_d,json=identityID,proto3,oneof" json:"identity_i_d,omitempty"`
}

func (*AnyID_IdentityID) MarshalTo

func (m *AnyID_IdentityID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_IdentityID) MarshalToSizedBuffer

func (m *AnyID_IdentityID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_IdentityID) Size

func (m *AnyID_IdentityID) Size() (n int)

type AnyID_MaintainerID

type AnyID_MaintainerID struct {
	MaintainerID *MaintainerID `protobuf:"bytes,6,opt,name=maintainer_i_d,json=maintainerID,proto3,oneof" json:"maintainer_i_d,omitempty"`
}

func (*AnyID_MaintainerID) MarshalTo

func (m *AnyID_MaintainerID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_MaintainerID) MarshalToSizedBuffer

func (m *AnyID_MaintainerID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_MaintainerID) Size

func (m *AnyID_MaintainerID) Size() (n int)

type AnyID_OrderID

type AnyID_OrderID struct {
	OrderID *OrderID `protobuf:"bytes,7,opt,name=order_i_d,json=orderID,proto3,oneof" json:"order_i_d,omitempty"`
}

func (*AnyID_OrderID) MarshalTo

func (m *AnyID_OrderID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_OrderID) MarshalToSizedBuffer

func (m *AnyID_OrderID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_OrderID) Size

func (m *AnyID_OrderID) Size() (n int)

type AnyID_PropertyID

type AnyID_PropertyID struct {
	PropertyID *PropertyID `protobuf:"bytes,8,opt,name=property_i_d,json=propertyID,proto3,oneof" json:"property_i_d,omitempty"`
}

func (*AnyID_PropertyID) MarshalTo

func (m *AnyID_PropertyID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_PropertyID) MarshalToSizedBuffer

func (m *AnyID_PropertyID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_PropertyID) Size

func (m *AnyID_PropertyID) Size() (n int)

type AnyID_SplitID

type AnyID_SplitID struct {
	SplitID *SplitID `protobuf:"bytes,9,opt,name=split_i_d,json=splitID,proto3,oneof" json:"split_i_d,omitempty"`
}

func (*AnyID_SplitID) MarshalTo

func (m *AnyID_SplitID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_SplitID) MarshalToSizedBuffer

func (m *AnyID_SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_SplitID) Size

func (m *AnyID_SplitID) Size() (n int)

type AnyID_StringID

type AnyID_StringID struct {
	StringID *StringID `protobuf:"bytes,10,opt,name=string_i_d,json=stringID,proto3,oneof" json:"string_i_d,omitempty"`
}

func (*AnyID_StringID) MarshalTo

func (m *AnyID_StringID) MarshalTo(dAtA []byte) (int, error)

func (*AnyID_StringID) MarshalToSizedBuffer

func (m *AnyID_StringID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyID_StringID) Size

func (m *AnyID_StringID) Size() (n int)

type AssetID

type AssetID struct {
	HashID *HashID `protobuf:"bytes,1,opt,name=hash_i_d,json=hashID,proto3" json:"hash_i_d,omitempty"`
}

func (*AssetID) AsString

func (assetID *AssetID) AsString() string

func (*AssetID) Bytes

func (assetID *AssetID) Bytes() []byte

func (*AssetID) Compare

func (assetID *AssetID) Compare(id ids.ID) int

func (*AssetID) Descriptor

func (*AssetID) Descriptor() ([]byte, []int)

func (*AssetID) FromString

func (assetID *AssetID) FromString(idString string) (ids.ID, error)

func (*AssetID) GetTypeID

func (assetID *AssetID) GetTypeID() ids.StringID

func (*AssetID) IsAssetID

func (assetID *AssetID) IsAssetID()

func (*AssetID) Marshal

func (m *AssetID) Marshal() (dAtA []byte, err error)

func (*AssetID) MarshalTo

func (m *AssetID) MarshalTo(dAtA []byte) (int, error)

func (*AssetID) MarshalToSizedBuffer

func (m *AssetID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AssetID) ProtoMessage

func (*AssetID) ProtoMessage()

func (*AssetID) Reset

func (m *AssetID) Reset()

func (*AssetID) Size

func (m *AssetID) Size() (n int)

func (*AssetID) String

func (m *AssetID) String() string

func (*AssetID) ToAnyID

func (assetID *AssetID) ToAnyID() ids.AnyID

func (*AssetID) Unmarshal

func (m *AssetID) Unmarshal(dAtA []byte) error

func (*AssetID) ValidateBasic

func (assetID *AssetID) ValidateBasic() error

func (*AssetID) XXX_DiscardUnknown

func (m *AssetID) XXX_DiscardUnknown()

func (*AssetID) XXX_Marshal

func (m *AssetID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetID) XXX_Merge

func (m *AssetID) XXX_Merge(src proto.Message)

func (*AssetID) XXX_Size

func (m *AssetID) XXX_Size() int

func (*AssetID) XXX_Unmarshal

func (m *AssetID) XXX_Unmarshal(b []byte) error

type ClassificationID

type ClassificationID struct {
	HashID *HashID `protobuf:"bytes,1,opt,name=hash_i_d,json=hashID,proto3" json:"hash_i_d,omitempty"`
}

func (*ClassificationID) AsString

func (classificationID *ClassificationID) AsString() string

func (*ClassificationID) Bytes

func (classificationID *ClassificationID) Bytes() []byte

func (*ClassificationID) Compare

func (classificationID *ClassificationID) Compare(id ids.ID) int

func (*ClassificationID) Descriptor

func (*ClassificationID) Descriptor() ([]byte, []int)

func (*ClassificationID) FromString

func (classificationID *ClassificationID) FromString(idString string) (ids.ID, error)

func (*ClassificationID) GetTypeID

func (classificationID *ClassificationID) GetTypeID() ids.StringID

func (*ClassificationID) IsClassificationID

func (classificationID *ClassificationID) IsClassificationID()

func (*ClassificationID) Marshal

func (m *ClassificationID) Marshal() (dAtA []byte, err error)

func (*ClassificationID) MarshalTo

func (m *ClassificationID) MarshalTo(dAtA []byte) (int, error)

func (*ClassificationID) MarshalToSizedBuffer

func (m *ClassificationID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClassificationID) ProtoMessage

func (*ClassificationID) ProtoMessage()

func (*ClassificationID) Reset

func (m *ClassificationID) Reset()

func (*ClassificationID) Size

func (m *ClassificationID) Size() (n int)

func (*ClassificationID) String

func (m *ClassificationID) String() string

func (*ClassificationID) ToAnyID

func (classificationID *ClassificationID) ToAnyID() ids.AnyID

func (*ClassificationID) Unmarshal

func (m *ClassificationID) Unmarshal(dAtA []byte) error

func (*ClassificationID) ValidateBasic

func (classificationID *ClassificationID) ValidateBasic() error

func (*ClassificationID) XXX_DiscardUnknown

func (m *ClassificationID) XXX_DiscardUnknown()

func (*ClassificationID) XXX_Marshal

func (m *ClassificationID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClassificationID) XXX_Merge

func (m *ClassificationID) XXX_Merge(src proto.Message)

func (*ClassificationID) XXX_Size

func (m *ClassificationID) XXX_Size() int

func (*ClassificationID) XXX_Unmarshal

func (m *ClassificationID) XXX_Unmarshal(b []byte) error

type DataID

type DataID struct {
	TypeID *StringID `protobuf:"bytes,1,opt,name=type_i_d,json=typeID,proto3" json:"type_i_d,omitempty"`
	HashID *HashID   `protobuf:"bytes,2,opt,name=hash_i_d,json=hashID,proto3" json:"hash_i_d,omitempty"`
}

func (*DataID) AsString

func (dataID *DataID) AsString() string

func (*DataID) Bytes

func (dataID *DataID) Bytes() []byte

func (*DataID) Compare

func (dataID *DataID) Compare(id ids.ID) int

func (*DataID) DataIDString

func (dataID *DataID) DataIDString() string

func (*DataID) Descriptor

func (*DataID) Descriptor() ([]byte, []int)

func (*DataID) FromString

func (dataID *DataID) FromString(idString string) (ids.ID, error)

func (*DataID) GetHashID

func (dataID *DataID) GetHashID() ids.HashID

func (*DataID) GetTypeID

func (dataID *DataID) GetTypeID() ids.StringID

func (*DataID) IsDataID

func (dataID *DataID) IsDataID()

func (*DataID) Marshal

func (m *DataID) Marshal() (dAtA []byte, err error)

func (*DataID) MarshalTo

func (m *DataID) MarshalTo(dAtA []byte) (int, error)

func (*DataID) MarshalToSizedBuffer

func (m *DataID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataID) ProtoMessage

func (*DataID) ProtoMessage()

func (*DataID) Reset

func (m *DataID) Reset()

func (*DataID) Size

func (m *DataID) Size() (n int)

func (*DataID) String

func (m *DataID) String() string

func (*DataID) ToAnyID

func (dataID *DataID) ToAnyID() ids.AnyID

func (*DataID) Unmarshal

func (m *DataID) Unmarshal(dAtA []byte) error

func (*DataID) ValidateBasic

func (dataID *DataID) ValidateBasic() error

func (*DataID) XXX_DiscardUnknown

func (m *DataID) XXX_DiscardUnknown()

func (*DataID) XXX_Marshal

func (m *DataID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataID) XXX_Merge

func (m *DataID) XXX_Merge(src proto.Message)

func (*DataID) XXX_Size

func (m *DataID) XXX_Size() int

func (*DataID) XXX_Unmarshal

func (m *DataID) XXX_Unmarshal(b []byte) error

type HashID

type HashID struct {
	IDBytes []byte `protobuf:"bytes,1,opt,name=i_d_bytes,json=iDBytes,proto3" json:"i_d_bytes,omitempty"`
}

func (*HashID) AsString

func (hashID *HashID) AsString() string

TODO test if nil and empty result in ""

func (*HashID) Bytes

func (hashID *HashID) Bytes() []byte

func (*HashID) Compare

func (hashID *HashID) Compare(id ids.ID) int

func (*HashID) Descriptor

func (*HashID) Descriptor() ([]byte, []int)

func (*HashID) FromString

func (hashID *HashID) FromString(idString string) (ids.ID, error)

func (*HashID) GetTypeID

func (hashID *HashID) GetTypeID() ids.StringID

func (*HashID) IsHashID

func (hashID *HashID) IsHashID()

func (*HashID) Marshal

func (m *HashID) Marshal() (dAtA []byte, err error)

func (*HashID) MarshalTo

func (m *HashID) MarshalTo(dAtA []byte) (int, error)

func (*HashID) MarshalToSizedBuffer

func (m *HashID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HashID) ProtoMessage

func (*HashID) ProtoMessage()

func (*HashID) Reset

func (m *HashID) Reset()

func (*HashID) Size

func (m *HashID) Size() (n int)

func (*HashID) String

func (m *HashID) String() string

func (*HashID) ToAnyID

func (hashID *HashID) ToAnyID() ids.AnyID

func (*HashID) Unmarshal

func (m *HashID) Unmarshal(dAtA []byte) error

func (*HashID) ValidateBasic

func (hashID *HashID) ValidateBasic() error

func (*HashID) XXX_DiscardUnknown

func (m *HashID) XXX_DiscardUnknown()

func (*HashID) XXX_Marshal

func (m *HashID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashID) XXX_Merge

func (m *HashID) XXX_Merge(src proto.Message)

func (*HashID) XXX_Size

func (m *HashID) XXX_Size() int

func (*HashID) XXX_Unmarshal

func (m *HashID) XXX_Unmarshal(b []byte) error

type IdentityID

type IdentityID struct {
	HashID *HashID `protobuf:"bytes,1,opt,name=hash_i_d,json=hashID,proto3" json:"hash_i_d,omitempty"`
}

func (*IdentityID) AsString

func (identityID *IdentityID) AsString() string

func (*IdentityID) Bytes

func (identityID *IdentityID) Bytes() []byte

func (*IdentityID) Compare

func (identityID *IdentityID) Compare(id ids.ID) int

func (*IdentityID) Descriptor

func (*IdentityID) Descriptor() ([]byte, []int)

func (*IdentityID) FromString

func (identityID *IdentityID) FromString(idString string) (ids.ID, error)

func (*IdentityID) GetHashID

func (identityID *IdentityID) GetHashID() ids.HashID

func (*IdentityID) GetTypeID

func (identityID *IdentityID) GetTypeID() ids.StringID

func (*IdentityID) IsIdentityID

func (identityID *IdentityID) IsIdentityID()

func (*IdentityID) Marshal

func (m *IdentityID) Marshal() (dAtA []byte, err error)

func (*IdentityID) MarshalTo

func (m *IdentityID) MarshalTo(dAtA []byte) (int, error)

func (*IdentityID) MarshalToSizedBuffer

func (m *IdentityID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IdentityID) ProtoMessage

func (*IdentityID) ProtoMessage()

func (*IdentityID) Reset

func (m *IdentityID) Reset()

func (*IdentityID) Size

func (m *IdentityID) Size() (n int)

func (*IdentityID) String

func (m *IdentityID) String() string

func (*IdentityID) ToAnyID

func (identityID *IdentityID) ToAnyID() ids.AnyID

func (*IdentityID) Unmarshal

func (m *IdentityID) Unmarshal(dAtA []byte) error

func (*IdentityID) ValidateBasic

func (identityID *IdentityID) ValidateBasic() error

func (*IdentityID) XXX_DiscardUnknown

func (m *IdentityID) XXX_DiscardUnknown()

func (*IdentityID) XXX_Marshal

func (m *IdentityID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdentityID) XXX_Merge

func (m *IdentityID) XXX_Merge(src proto.Message)

func (*IdentityID) XXX_Size

func (m *IdentityID) XXX_Size() int

func (*IdentityID) XXX_Unmarshal

func (m *IdentityID) XXX_Unmarshal(b []byte) error

type MaintainerID

type MaintainerID struct {
	HashID *HashID `protobuf:"bytes,1,opt,name=hash_i_d,json=hashID,proto3" json:"hash_i_d,omitempty"`
}

func (*MaintainerID) AsString

func (maintainerID *MaintainerID) AsString() string

func (*MaintainerID) Bytes

func (maintainerID *MaintainerID) Bytes() []byte

func (*MaintainerID) Compare

func (maintainerID *MaintainerID) Compare(id ids.ID) int

func (*MaintainerID) Descriptor

func (*MaintainerID) Descriptor() ([]byte, []int)

func (*MaintainerID) FromString

func (maintainerID *MaintainerID) FromString(idString string) (ids.ID, error)

func (*MaintainerID) GetTypeID

func (maintainerID *MaintainerID) GetTypeID() ids.StringID

func (*MaintainerID) IsMaintainerID

func (maintainerID *MaintainerID) IsMaintainerID()

func (*MaintainerID) Marshal

func (m *MaintainerID) Marshal() (dAtA []byte, err error)

func (*MaintainerID) MarshalTo

func (m *MaintainerID) MarshalTo(dAtA []byte) (int, error)

func (*MaintainerID) MarshalToSizedBuffer

func (m *MaintainerID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MaintainerID) ProtoMessage

func (*MaintainerID) ProtoMessage()

func (*MaintainerID) Reset

func (m *MaintainerID) Reset()

func (*MaintainerID) Size

func (m *MaintainerID) Size() (n int)

func (*MaintainerID) String

func (m *MaintainerID) String() string

func (*MaintainerID) ToAnyID

func (maintainerID *MaintainerID) ToAnyID() ids.AnyID

func (*MaintainerID) Unmarshal

func (m *MaintainerID) Unmarshal(dAtA []byte) error

func (*MaintainerID) ValidateBasic

func (maintainerID *MaintainerID) ValidateBasic() error

func (*MaintainerID) XXX_DiscardUnknown

func (m *MaintainerID) XXX_DiscardUnknown()

func (*MaintainerID) XXX_Marshal

func (m *MaintainerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MaintainerID) XXX_Merge

func (m *MaintainerID) XXX_Merge(src proto.Message)

func (*MaintainerID) XXX_Size

func (m *MaintainerID) XXX_Size() int

func (*MaintainerID) XXX_Unmarshal

func (m *MaintainerID) XXX_Unmarshal(b []byte) error

type OrderID

type OrderID struct {
	HashID *HashID `protobuf:"bytes,1,opt,name=hash_i_d,json=hashID,proto3" json:"hash_i_d,omitempty"`
}

func (*OrderID) AsString

func (orderID *OrderID) AsString() string

func (*OrderID) Bytes

func (orderID *OrderID) Bytes() []byte

func (*OrderID) Compare

func (orderID *OrderID) Compare(id ids.ID) int

func (*OrderID) Descriptor

func (*OrderID) Descriptor() ([]byte, []int)

func (*OrderID) FromString

func (orderID *OrderID) FromString(idString string) (ids.ID, error)

func (*OrderID) GetTypeID

func (orderID *OrderID) GetTypeID() ids.StringID

func (*OrderID) IsOrderID

func (orderID *OrderID) IsOrderID()

func (*OrderID) Marshal

func (m *OrderID) Marshal() (dAtA []byte, err error)

func (*OrderID) MarshalTo

func (m *OrderID) MarshalTo(dAtA []byte) (int, error)

func (*OrderID) MarshalToSizedBuffer

func (m *OrderID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrderID) ProtoMessage

func (*OrderID) ProtoMessage()

func (*OrderID) Reset

func (m *OrderID) Reset()

func (*OrderID) Size

func (m *OrderID) Size() (n int)

func (*OrderID) String

func (m *OrderID) String() string

func (*OrderID) ToAnyID

func (orderID *OrderID) ToAnyID() ids.AnyID

func (*OrderID) Unmarshal

func (m *OrderID) Unmarshal(dAtA []byte) error

func (*OrderID) ValidateBasic

func (orderID *OrderID) ValidateBasic() error

func (*OrderID) XXX_DiscardUnknown

func (m *OrderID) XXX_DiscardUnknown()

func (*OrderID) XXX_Marshal

func (m *OrderID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderID) XXX_Merge

func (m *OrderID) XXX_Merge(src proto.Message)

func (*OrderID) XXX_Size

func (m *OrderID) XXX_Size() int

func (*OrderID) XXX_Unmarshal

func (m *OrderID) XXX_Unmarshal(b []byte) error

type PropertyID

type PropertyID struct {
	KeyID  *StringID `protobuf:"bytes,1,opt,name=key_i_d,json=keyID,proto3" json:"key_i_d,omitempty"`
	TypeID *StringID `protobuf:"bytes,2,opt,name=type_i_d,json=typeID,proto3" json:"type_i_d,omitempty"`
}

func (*PropertyID) AsString

func (propertyID *PropertyID) AsString() string

func (*PropertyID) Bytes

func (propertyID *PropertyID) Bytes() []byte

func (*PropertyID) Compare

func (propertyID *PropertyID) Compare(id ids.ID) int

func (*PropertyID) Descriptor

func (*PropertyID) Descriptor() ([]byte, []int)

func (*PropertyID) FromString

func (propertyID *PropertyID) FromString(idString string) (ids.ID, error)

func (*PropertyID) GetDataTypeID

func (propertyID *PropertyID) GetDataTypeID() ids.StringID

func (*PropertyID) GetKey

func (propertyID *PropertyID) GetKey() ids.StringID

func (*PropertyID) GetTypeID

func (propertyID *PropertyID) GetTypeID() ids.StringID

func (*PropertyID) IsPropertyID

func (propertyID *PropertyID) IsPropertyID()

func (*PropertyID) Marshal

func (m *PropertyID) Marshal() (dAtA []byte, err error)

func (*PropertyID) MarshalTo

func (m *PropertyID) MarshalTo(dAtA []byte) (int, error)

func (*PropertyID) MarshalToSizedBuffer

func (m *PropertyID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PropertyID) ProtoMessage

func (*PropertyID) ProtoMessage()

func (*PropertyID) Reset

func (m *PropertyID) Reset()

func (*PropertyID) Size

func (m *PropertyID) Size() (n int)

func (*PropertyID) String

func (m *PropertyID) String() string

func (*PropertyID) ToAnyID

func (propertyID *PropertyID) ToAnyID() ids.AnyID

func (*PropertyID) Unmarshal

func (m *PropertyID) Unmarshal(dAtA []byte) error

func (*PropertyID) ValidateBasic

func (propertyID *PropertyID) ValidateBasic() error

func (*PropertyID) XXX_DiscardUnknown

func (m *PropertyID) XXX_DiscardUnknown()

func (*PropertyID) XXX_Marshal

func (m *PropertyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PropertyID) XXX_Merge

func (m *PropertyID) XXX_Merge(src proto.Message)

func (*PropertyID) XXX_Size

func (m *PropertyID) XXX_Size() int

func (*PropertyID) XXX_Unmarshal

func (m *PropertyID) XXX_Unmarshal(b []byte) error

type SplitID

type SplitID struct {
	AssetID *AssetID    `protobuf:"bytes,1,opt,name=asset_i_d,json=assetID,proto3" json:"asset_i_d,omitempty"`
	OwnerID *IdentityID `protobuf:"bytes,2,opt,name=owner_i_d,json=ownerID,proto3" json:"owner_i_d,omitempty"`
}

func (*SplitID) AsString

func (splitID *SplitID) AsString() string

func (*SplitID) Bytes

func (splitID *SplitID) Bytes() []byte

func (*SplitID) Compare

func (splitID *SplitID) Compare(id ids.ID) int

func (*SplitID) Descriptor

func (*SplitID) Descriptor() ([]byte, []int)

func (*SplitID) FromString

func (*SplitID) FromString(idString string) (ids.ID, error)

func (*SplitID) GetAssetID

func (splitID *SplitID) GetAssetID() ids.AssetID

func (*SplitID) GetOwnerID

func (splitID *SplitID) GetOwnerID() ids.IdentityID

func (*SplitID) GetTypeID

func (splitID *SplitID) GetTypeID() ids.StringID

func (*SplitID) IsSplitID

func (splitID *SplitID) IsSplitID()

func (*SplitID) Marshal

func (m *SplitID) Marshal() (dAtA []byte, err error)

func (*SplitID) MarshalTo

func (m *SplitID) MarshalTo(dAtA []byte) (int, error)

func (*SplitID) MarshalToSizedBuffer

func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SplitID) MustGetFromPrefixedStoreKeyBytes

func (*SplitID) MustGetFromPrefixedStoreKeyBytes(prefixBytes, storeKeyBytes []byte) ids.SplitID

TODO optimize this

func (*SplitID) ProtoMessage

func (*SplitID) ProtoMessage()

func (*SplitID) Reset

func (m *SplitID) Reset()

func (*SplitID) Size

func (m *SplitID) Size() (n int)

func (*SplitID) SplitIDString

func (splitID *SplitID) SplitIDString() string

func (*SplitID) String

func (m *SplitID) String() string

func (*SplitID) ToAnyID

func (splitID *SplitID) ToAnyID() ids.AnyID

func (*SplitID) Unmarshal

func (m *SplitID) Unmarshal(dAtA []byte) error

func (*SplitID) ValidateBasic

func (splitID *SplitID) ValidateBasic() error

func (*SplitID) XXX_DiscardUnknown

func (m *SplitID) XXX_DiscardUnknown()

func (*SplitID) XXX_Marshal

func (m *SplitID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SplitID) XXX_Merge

func (m *SplitID) XXX_Merge(src proto.Message)

func (*SplitID) XXX_Size

func (m *SplitID) XXX_Size() int

func (*SplitID) XXX_Unmarshal

func (m *SplitID) XXX_Unmarshal(b []byte) error

type StringID

type StringID struct {
	IDString string `protobuf:"bytes,1,opt,name=i_d_string,json=iDString,proto3" json:"i_d_string,omitempty"`
}

func (*StringID) AsString

func (stringID *StringID) AsString() string

func (*StringID) Bytes

func (stringID *StringID) Bytes() []byte

func (*StringID) Compare

func (stringID *StringID) Compare(id ids.ID) int

func (*StringID) Descriptor

func (*StringID) Descriptor() ([]byte, []int)

func (*StringID) FromString

func (stringID *StringID) FromString(idString string) (ids.ID, error)

func (*StringID) Get

func (stringID *StringID) Get() string

func (*StringID) GetTypeID

func (stringID *StringID) GetTypeID() ids.StringID

func (*StringID) IsStringID

func (stringID *StringID) IsStringID()

func (*StringID) Marshal

func (m *StringID) Marshal() (dAtA []byte, err error)

func (*StringID) MarshalTo

func (m *StringID) MarshalTo(dAtA []byte) (int, error)

func (*StringID) MarshalToSizedBuffer

func (m *StringID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringID) ProtoMessage

func (*StringID) ProtoMessage()

func (*StringID) Reset

func (m *StringID) Reset()

func (*StringID) Size

func (m *StringID) Size() (n int)

func (*StringID) String

func (m *StringID) String() string

func (*StringID) ToAnyID

func (stringID *StringID) ToAnyID() ids.AnyID

func (*StringID) Unmarshal

func (m *StringID) Unmarshal(dAtA []byte) error

func (*StringID) ValidateBasic

func (stringID *StringID) ValidateBasic() error

func (*StringID) XXX_DiscardUnknown

func (m *StringID) XXX_DiscardUnknown()

func (*StringID) XXX_Marshal

func (m *StringID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringID) XXX_Merge

func (m *StringID) XXX_Merge(src proto.Message)

func (*StringID) XXX_Size

func (m *StringID) XXX_Size() int

func (*StringID) XXX_Unmarshal

func (m *StringID) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL