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: 17 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthIdList        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIdList          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIdList = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParameterList        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParameterList          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParameterList = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPropertyList        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPropertyList          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPropertyList = fmt.Errorf("proto: unexpected end of group")
)

Functions

func AnyPropertiesToProperties

func AnyPropertiesToProperties(anyProperties ...properties.AnyProperty) []properties.Property

AnyPropertiesToProperties converts a slice of AnyProperties to a slice of Properties. It filters out nil elements from the input slice and returns a new slice containing only non-nil Properties.

func NewIDList

func NewIDList(ids ...ids.ID) lists.IDList

func NewParameterList

func NewParameterList(parameters ...parameters.Parameter) lists.ParameterList

func NewPropertyList

func NewPropertyList(addProperties ...properties.Property) lists.PropertyList

NewPropertyList creates a new instance of PropertyList and adds the provided properties to it. It returns the created PropertyList.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)

Types

type IDList

type IDList struct {
	AnyIDs []*base.AnyID `protobuf:"bytes,1,rep,name=any_i_ds,json=anyIDs,proto3" json:"any_i_ds,omitempty"`
}

func (*IDList) Add

func (idList *IDList) Add(ids ...ids.ID) lists.IDList

func (*IDList) Descriptor

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

func (*IDList) GetList

func (idList *IDList) GetList() []ids.AnyID

func (*IDList) Marshal

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

func (*IDList) MarshalTo

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

func (*IDList) MarshalToSizedBuffer

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

func (*IDList) ProtoMessage

func (*IDList) ProtoMessage()

func (*IDList) Remove

func (idList *IDList) Remove(ids ...ids.ID) lists.IDList

func (*IDList) Reset

func (m *IDList) Reset()

func (*IDList) Search

func (idList *IDList) Search(id ids.ID) (index int, found bool)

func (*IDList) Size

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

func (*IDList) String

func (m *IDList) String() string

func (*IDList) Unmarshal

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

func (*IDList) ValidateBasic

func (idList *IDList) ValidateBasic() error

func (*IDList) XXX_DiscardUnknown

func (m *IDList) XXX_DiscardUnknown()

func (*IDList) XXX_Marshal

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

func (*IDList) XXX_Merge

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

func (*IDList) XXX_Size

func (m *IDList) XXX_Size() int

func (*IDList) XXX_Unmarshal

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

type ParameterList

type ParameterList struct {
	Parameters []*base.Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"`
}

func (*ParameterList) Descriptor

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

func (*ParameterList) Get

func (parameterList *ParameterList) Get() []parameters.Parameter

func (*ParameterList) Marshal

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

func (*ParameterList) MarshalTo

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

func (*ParameterList) MarshalToSizedBuffer

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

func (*ParameterList) ProtoMessage

func (*ParameterList) ProtoMessage()

func (*ParameterList) Reset

func (m *ParameterList) Reset()

func (*ParameterList) Size

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

func (*ParameterList) String

func (m *ParameterList) String() string

func (*ParameterList) Unmarshal

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

func (*ParameterList) XXX_DiscardUnknown

func (m *ParameterList) XXX_DiscardUnknown()

func (*ParameterList) XXX_Marshal

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

func (*ParameterList) XXX_Merge

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

func (*ParameterList) XXX_Size

func (m *ParameterList) XXX_Size() int

func (*ParameterList) XXX_Unmarshal

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

type PropertyList

type PropertyList struct {
	AnyProperties []*base.AnyProperty `protobuf:"bytes,1,rep,name=any_properties,json=anyProperties,proto3" json:"any_properties,omitempty"`
}

func (*PropertyList) Add

func (propertyList *PropertyList) Add(properties ...properties.Property) lists.PropertyList

func (*PropertyList) Descriptor

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

func (*PropertyList) FromMetaPropertiesString

func (propertyList *PropertyList) FromMetaPropertiesString(metaPropertiesString string) (lists.PropertyList, error)

func (*PropertyList) Get

func (propertyList *PropertyList) Get() []properties.AnyProperty

func (*PropertyList) GetProperty

func (propertyList *PropertyList) GetProperty(propertyID ids.PropertyID) properties.AnyProperty

func (*PropertyList) GetPropertyIDList

func (propertyList *PropertyList) GetPropertyIDList() lists.IDList

func (*PropertyList) Marshal

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

func (*PropertyList) MarshalTo

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

func (*PropertyList) MarshalToSizedBuffer

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

func (*PropertyList) Mutate

func (propertyList *PropertyList) Mutate(properties ...properties.Property) lists.PropertyList

func (*PropertyList) ProtoMessage

func (*PropertyList) ProtoMessage()

func (*PropertyList) Remove

func (propertyList *PropertyList) Remove(properties ...properties.Property) lists.PropertyList

func (*PropertyList) Reset

func (m *PropertyList) Reset()

func (*PropertyList) ScrubData

func (propertyList *PropertyList) ScrubData() lists.PropertyList

func (*PropertyList) Size

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

func (*PropertyList) String

func (m *PropertyList) String() string

func (*PropertyList) Unmarshal

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

func (*PropertyList) ValidateBasic

func (propertyList *PropertyList) ValidateBasic() error

func (*PropertyList) XXX_DiscardUnknown

func (m *PropertyList) XXX_DiscardUnknown()

func (*PropertyList) XXX_Marshal

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

func (*PropertyList) XXX_Merge

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

func (*PropertyList) XXX_Size

func (m *PropertyList) XXX_Size() int

func (*PropertyList) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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