router

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cnf config.Config)

Types

type Cluster added in v0.2.2

type Cluster struct {
	Name string
	Host string
	Type string
}

type Filter added in v0.2.2

type Filter struct {
	Field     string `json:"field,omitempty"`
	Operation string `json:"operation,omitempty"`
	Value     string `json:"value,omitempty"`
}

type Hit added in v0.2.5

type Hit struct {
	Source map[string]interface{} `json:"_source,omitempty"`
	Fields map[string]interface{} `json:"fields,omitempty"`
}

type Hits added in v0.2.5

type Hits struct {
	Hits     []Hit   `json:"hits"`
	MaxScore float64 `json:"max_score"`
}

type IndexInSnap

type IndexInSnap struct {
	Name   string
	Size   int
	Shards []int
}

type IndicesInSnap

type IndicesInSnap map[string]*IndexInSnap

type Router

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

func (*Router) ApiHandler

func (rt *Router) ApiHandler(w http.ResponseWriter, r *http.Request)

func (*Router) Barrel

func (rt *Router) Barrel(ind_array IndicesInSnap, s3 bool) ([]string, []string)

func (*Router) FrontHandler

func (rt *Router) FrontHandler(w http.ResponseWriter, r *http.Request)

web-ui

Jump to

Keyboard shortcuts

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