udpError

package
v0.0.0-...-1809aa5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolWrapper

type BoolWrapper struct {
	Bool OperatorWrapper `json:"bool"`
}

type ErrorInfo

type ErrorInfo struct {
	ID      string    `json:"id"`
	Error   string    `json:"error"`
	Message string    `json:"message"`
	Date    time.Time `json:"date"`
}

type EsRegexp

type EsRegexp struct {
	Regexp map[string]string `json:"regexp"`
}

type EsRespHitsTag

type EsRespHitsTag struct {
	Index   string  `json:"_index"`
	Type    string  `json:"_type"`
	Id      string  `json:"_id"`
	Version int     `json:"_version,omitempty"`
	Found   bool    `json:"found,omitempty"`
	Score   float32 `json:"_score"`
	Source  TagKey  `json:"_source"`
}

type EsRespHitsWrapperTag

type EsRespHitsWrapperTag struct {
	Total    int             `json:"total"`
	MaxScore float32         `json:"max_score"`
	Hits     []EsRespHitsTag `json:"hits"`
}

type EsRespShards

type EsRespShards struct {
	Total      int `json:"total"`
	Successful int `json:"successful"`
	Failed     int `json:"failed"`
}

type EsResponseTag

type EsResponseTag struct {
	Took     int                  `json:"took"`
	TimedOut bool                 `json:"timed_out"`
	Shards   EsRespShards         `json:"_shards"`
	Hits     EsRespHitsWrapperTag `json:"hits"`
}

type OperatorWrapper

type OperatorWrapper struct {
	Must    []interface{} `json:"must,omitempty"`
	MustNot []interface{} `json:"must_not,omitempty"`
	Should  []interface{} `json:"should,omitempty"`
}

type QueryWrapper

type QueryWrapper struct {
	Size   int64       `json:"size,omitempty"`
	From   int64       `json:"from,omitempty"`
	Query  BoolWrapper `json:"filter"`
	Fields []string    `json:"fields,omitempty"`
}

type Response

type Response struct {
	TotalRecords int         `json:"totalRecords,omitempty"`
	Payload      interface{} `json:"payload,omitempty"`
	Message      interface{} `json:"message,omitempty"`
}

type StructV2Error

type StructV2Error struct {
	Key    string `json:"key"`
	Metric string `json:"metric"`
	Tags   []Tag  `json:"tagsError"`
}

func (*StructV2Error) Validate

func (s *StructV2Error) Validate() gobol.Error

type Tag

type Tag struct {
	Key   string `json:"tagKey"`
	Value string `json:"tagValue"`
}

type TagKey

type TagKey struct {
	Key string `json:"key"`
}

type UDPerror

type UDPerror struct {
	// contains filtered or unexported fields
}

func New

func New(
	gbl *logrus.Logger,
	sts *tsstats.StatsTS,
	cass *gocql.Session,
	bc *bcache.Bcache,
	es *rubber.Elastic,
	esIndex string,
	consistencies []gocql.Consistency,
) *UDPerror

func (*UDPerror) GetErrorInfo

func (uerror *UDPerror) GetErrorInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*UDPerror) ListErrorTags

func (uerror *UDPerror) ListErrorTags(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Jump to

Keyboard shortcuts

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