data

package
v0.0.0-...-616b2ab Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESError

type ESError struct {
	Reason string   `json:"reason"`
	Cause  *ESError `json:"caused_by"`
}

func (ESError) Error

func (e ESError) Error() string

func (ESError) String

func (e ESError) String() string

type ESItemResponse

type ESItemResponse struct {
	Create *ESOpStatus `json:"create"`
	Index  *ESOpStatus `json:"index"`
}

func (ESItemResponse) Status

func (r ESItemResponse) Status() *ESOpStatus

func (ESItemResponse) String

func (r ESItemResponse) String() string

type ESOpStatus

type ESOpStatus struct {
	ESStatus
	ID     string          `json:"_id"`
	Record json.RawMessage `json:"_source"`
}

func (ESOpStatus) String

func (s ESOpStatus) String() string

type ESResponse

type ESResponse struct {
	ESStatus
	Took  int              `json:"took"`
	Items []ESItemResponse `json:"items"`
}

func (ESResponse) String

func (r ESResponse) String() string

type ESStatus

type ESStatus struct {
	Status int      `json:"status"`
	Err    *ESError `json:"error"`
}

func (ESStatus) Error

func (s ESStatus) Error() string

func (ESStatus) String

func (s ESStatus) String() string

func (ESStatus) ToError

func (s ESStatus) ToError() error

type InputRecord

type InputRecord struct {
	ID       string          `json:"id"`
	Suffix   string          `json:"date"`
	Document json.RawMessage `json:"log"`
}

Record defines the expected schema of input.

func (InputRecord) Record

func (r InputRecord) Record() Record

func (InputRecord) String

func (r InputRecord) String() string

type Record

type Record struct {
	ID       string
	Suffix   string
	Document string
}

Record defines the expected schema of input.

func (Record) String

func (r Record) String() string

Jump to

Keyboard shortcuts

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