values

package
v0.0.0-...-e20b040 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintMemUsage

func PrintMemUsage(label string)

Types

type ByRawEntityId

type ByRawEntityId []Value

ByRawEntityId implements sort.Interface for []RawEntity] based on the EntityId string field.

func (ByRawEntityId) Len

func (a ByRawEntityId) Len() int

func (ByRawEntityId) Less

func (a ByRawEntityId) Less(i, j int) bool

func (ByRawEntityId) Swap

func (a ByRawEntityId) Swap(i, j int)

type Metadata

type Metadata struct {
	Key   string `json:"key,intern"`
	Value string `json:"value,intern"`
}

func (Metadata) MarshalEasyJSON

func (v Metadata) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Metadata) MarshalJSON

func (v Metadata) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Metadata) UnmarshalEasyJSON

func (v *Metadata) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Metadata) UnmarshalJSON

func (v *Metadata) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RawEntityList

type RawEntityList struct {
	Values *[]Value `json:"valueList"`
}

func UnmarshalEntities

func UnmarshalEntities(entityPerType []config.Config, isHierarchy bool) (*RawEntityList, error)

func (*RawEntityList) GetValues

func (r *RawEntityList) GetValues() *[]Value

func (*RawEntityList) GetValuesConfig

func (r *RawEntityList) GetValuesConfig() *[]interface{}

func (*RawEntityList) Len

func (r *RawEntityList) Len() int

func (RawEntityList) MarshalEasyJSON

func (v RawEntityList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RawEntityList) MarshalJSON

func (v RawEntityList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RawEntityList) Sort

func (r *RawEntityList) Sort()

func (*RawEntityList) UnmarshalEasyJSON

func (v *RawEntityList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RawEntityList) UnmarshalJSON

func (v *RawEntityList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Relation

type Relation struct {
	Id string `json:"id,intern"`
}

func (Relation) MarshalEasyJSON

func (v Relation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Relation) MarshalJSON

func (v Relation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Relation) UnmarshalEasyJSON

func (v *Relation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Relation) UnmarshalJSON

func (v *Relation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Value

type Value struct {
	EntityId         string             `json:"entityId,intern"`
	FirstSeenTms     *float64           `json:"firstSeenTms"`
	DisplayName      *string            `json:"displayName,intern"`
	Properties       *properties        `json:"properties"`
	FromRelationship *fromRelationships `json:"fromRelationships"`
}

func (Value) MarshalEasyJSON

func (v Value) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Value) MarshalJSON

func (v Value) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Value) UnmarshalEasyJSON

func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Value) UnmarshalJSON

func (v *Value) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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