mappable

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMappable        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMappable          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMappable = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetClassification

func GetClassification(mappable helpers.Mappable) documents.Classification

func MappablesToInterface

func MappablesToInterface(mappables []*Mappable) []helpers.Mappable

func NewMappable

func NewMappable(classification documents.Classification) helpers.Mappable

func Prototype

func Prototype() helpers.Mappable

Types

type Mappable

type Mappable struct {
	Classification *base.Document `protobuf:"bytes,1,opt,name=classification,proto3" json:"classification,omitempty"`
}

func MappablesFromInterface

func MappablesFromInterface(mappables []helpers.Mappable) []*Mappable

func (*Mappable) Descriptor

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

func (*Mappable) GetClassification

func (m *Mappable) GetClassification() *base.Document

func (*Mappable) Marshal

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

func (*Mappable) MarshalTo

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

func (*Mappable) MarshalToSizedBuffer

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

func (*Mappable) ProtoMessage

func (*Mappable) ProtoMessage()

func (*Mappable) RegisterLegacyAminoCodec

func (*Mappable) RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino)

func (*Mappable) Reset

func (m *Mappable) Reset()

func (*Mappable) Size

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

func (*Mappable) String

func (m *Mappable) String() string

func (*Mappable) Unmarshal

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

func (*Mappable) ValidateBasic

func (mappable *Mappable) ValidateBasic() error

func (*Mappable) XXX_DiscardUnknown

func (m *Mappable) XXX_DiscardUnknown()

func (*Mappable) XXX_Marshal

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

func (*Mappable) XXX_Merge

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

func (*Mappable) XXX_Size

func (m *Mappable) XXX_Size() int

func (*Mappable) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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