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{}
Click to show internal directories.
Click to hide internal directories.