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: 14 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthImmutables        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowImmutables          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupImmutables = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMutables        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMutables          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMutables = fmt.Errorf("proto: unexpected end of group")
)

Functions

func NewImmutables

func NewImmutables(propertyList lists.PropertyList) qualified.Immutables

func NewMutables

func NewMutables(propertyList lists.PropertyList) qualified.Mutables

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)

Types

type Immutables

type Immutables struct {
	PropertyList *base.PropertyList `protobuf:"bytes,1,opt,name=property_list,json=propertyList,proto3" json:"property_list,omitempty"`
}

func (*Immutables) Descriptor

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

func (*Immutables) GenerateHashID

func (immutables *Immutables) GenerateHashID() ids.ID

func (*Immutables) GetImmutablePropertyList

func (immutables *Immutables) GetImmutablePropertyList() lists.PropertyList

TODO write test case

func (*Immutables) GetProperty

func (immutables *Immutables) GetProperty(id ids.PropertyID) properties.AnyProperty

func (*Immutables) Marshal

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

func (*Immutables) MarshalTo

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

func (*Immutables) MarshalToSizedBuffer

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

func (*Immutables) ProtoMessage

func (*Immutables) ProtoMessage()

func (*Immutables) Reset

func (m *Immutables) Reset()

func (*Immutables) Size

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

func (*Immutables) String

func (m *Immutables) String() string

func (*Immutables) Unmarshal

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

func (*Immutables) ValidateBasic

func (immutables *Immutables) ValidateBasic() error

func (*Immutables) XXX_DiscardUnknown

func (m *Immutables) XXX_DiscardUnknown()

func (*Immutables) XXX_Marshal

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

func (*Immutables) XXX_Merge

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

func (*Immutables) XXX_Size

func (m *Immutables) XXX_Size() int

func (*Immutables) XXX_Unmarshal

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

type Mutables

type Mutables struct {
	PropertyList *base.PropertyList `protobuf:"bytes,1,opt,name=property_list,json=propertyList,proto3" json:"property_list,omitempty"`
}

func (*Mutables) Descriptor

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

func (*Mutables) GetMutablePropertyList

func (mutables *Mutables) GetMutablePropertyList() lists.PropertyList

func (*Mutables) GetProperty

func (mutables *Mutables) GetProperty(id ids.PropertyID) properties.AnyProperty

func (*Mutables) Marshal

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

func (*Mutables) MarshalTo

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

func (*Mutables) MarshalToSizedBuffer

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

func (*Mutables) Mutate

func (mutables *Mutables) Mutate(propertyList ...properties.Property) qualified.Mutables

func (*Mutables) ProtoMessage

func (*Mutables) ProtoMessage()

func (*Mutables) Reset

func (m *Mutables) Reset()

func (*Mutables) Size

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

func (*Mutables) String

func (m *Mutables) String() string

func (*Mutables) Unmarshal

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

func (*Mutables) ValidateBasic

func (mutables *Mutables) ValidateBasic() error

func (*Mutables) XXX_DiscardUnknown

func (m *Mutables) XXX_DiscardUnknown()

func (*Mutables) XXX_Marshal

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

func (*Mutables) XXX_Merge

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

func (*Mutables) XXX_Size

func (m *Mutables) XXX_Size() int

func (*Mutables) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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