lists

package
v0.0.0-...-bc95651 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)

Types

type IDList

type IDList interface {
	GetList() []ids.AnyID
	Search(ids.ID) (index int, found bool)
	// Add ignores ids of different type
	Add(...ids.ID) IDList
	Remove(...ids.ID) IDList
	ValidateBasic() error
}

type ParameterList

type ParameterList interface {
	proto.Message
	Get() []parameters.Parameter
}

type PropertyList

type PropertyList interface {
	// GetProperty returns the property with the given PropertyID
	// returns nil if not found
	GetProperty(ids.PropertyID) properties.AnyProperty
	Get() []properties.AnyProperty
	GetPropertyIDList() IDList

	FromMetaPropertiesString(string) (PropertyList, error)

	// Add will add a new property or update if already present
	Add(...properties.Property) PropertyList
	Remove(...properties.Property) PropertyList
	Mutate(...properties.Property) PropertyList

	ScrubData() PropertyList
	ValidateBasic() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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