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: 0

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