router

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 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 ClusterHealth added in v0.2.19

type ClusterHealth struct {
	ClusterName        string `json:"cluster_name,omitempty"`
	Status             string `json:"status,omitempty"`
	InitializingShards int    `json:"initializingShards,omitempty"`
	UnassignedShards   int    `json:"unassigned_shards,omitempty"`
}

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 {
	Total    HitsTotal `json:"total"`
	Hits     []Hit     `json:"hits"`
	MaxScore float64   `json:"max_score"`
}

type HitsTotal added in v0.2.22

type HitsTotal struct {
	Value int64 `json:"value"`
}

type IndexInSnap

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

type IndicesInSnap

type IndicesInSnap map[string]*IndexInSnap

type JSONRow added in v0.2.22

type JSONRow map[string]interface{}

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