es_settings

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

节点配置层

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

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

func NewSettingsByV6

func NewSettingsByV6(client *elasticV6.Client) (*Settings, error)

节点设置

func NewSettingsByV7

func NewSettingsByV7(client *elasticV7.Client) (*Settings, error)

func (*Settings) GetAllowedUrls

func (this *Settings) GetAllowedUrls() []interface{}

获取配置文件中的 AllowedUrls

func (*Settings) GetPathRepo

func (this *Settings) GetPathRepo() []string

获取配置文件设置的 PathRepo

type SettingsV6

type SettingsV6 struct {
	Defaults struct {
		Path struct {
			Repo []string `json:"repo"`
		} `json:"path"`
		Repositories struct {
			URL struct {
				AllowedUrls []interface{} `json:"allowed_urls"`
			} `json:"url"`
		} `json:"repositories"`
	} `json:"defaults"`
}

type SettingsV7

type SettingsV7 struct {
	Defaults struct {
		Path struct {
			Repo []interface{} `json:"repo"`
		} `json:"path"`
		Repositories struct {
			URL struct {
				AllowedUrls []interface{} `json:"allowed_urls"`
			} `json:"url"`
		} `json:"repositories"`
	} `json:"defaults"`
}

Jump to

Keyboard shortcuts

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