config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig struct {
	ManagerAddr string `json:"manager_addr,omitempty"`
	ClusterId   string `json:"cluster_id,omitempty"`
	PeerAddr    string `json:"peer_addr,omitempty"`
}

func DefaultClusterConfig

func DefaultClusterConfig() *ClusterConfig

type IndexConfig

type IndexConfig struct {
	IndexMapping     *mapping.IndexMappingImpl `json:"index_mapping,omitempty"`
	IndexType        string                    `json:"index_type,omitempty"`
	IndexStorageType string                    `json:"index_storage_type,omitempty"`
}

func DefaultIndexConfig

func DefaultIndexConfig() *IndexConfig

func NewIndexConfigFromMap

func NewIndexConfigFromMap(src map[string]interface{}) *IndexConfig

func (*IndexConfig) ToMap

func (c *IndexConfig) ToMap() map[string]interface{}

type NodeConfig

type NodeConfig struct {
	NodeId          string `json:"node_id,omitempty"`
	BindAddr        string `json:"bind_addr,omitempty"`
	GRPCAddr        string `json:"grpc_addr,omitempty"`
	HTTPAddr        string `json:"http_addr,omitempty"`
	DataDir         string `json:"data_dir,omitempty"`
	RaftStorageType string `json:"raft_storage_type,omitempty"`
}

func DefaultNodeConfig

func DefaultNodeConfig() *NodeConfig

func (*NodeConfig) ToMap

func (c *NodeConfig) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

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