models

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticRecord added in v0.5.1

type ElasticRecord struct {
	Index string
	Type  string
	ID    string
	Json  map[string]interface{}
}

type Record

type Record struct {
	Topic     string
	Partition int32
	Offset    int64
	Timestamp time.Time
	Json      map[string]interface{}
}

func (*Record) FilteredFieldsJSON

func (r *Record) FilteredFieldsJSON(blacklistedFields []string) map[string]interface{}

func (*Record) FormatTimestampDay added in v0.6.0

func (r *Record) FormatTimestampDay() string

func (*Record) FormatTimestampHour added in v0.6.0

func (r *Record) FormatTimestampHour() string

func (*Record) GetId

func (r *Record) GetId() string

func (*Record) GetValueForField

func (r *Record) GetValueForField(field string) (string, error)

Jump to

Keyboard shortcuts

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