mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
additional comments for config
This commit is contained in:
parent
3972d0cfaa
commit
66496a73d7
2 changed files with 12 additions and 5 deletions
|
|
@ -152,7 +152,7 @@ func (c *Cluster) NodeStates() map[string]string {
|
|||
return h
|
||||
}
|
||||
|
||||
// State returns the internal ClusterState representation.
|
||||
// Status returns the internal ClusterState representation.
|
||||
func (c *Cluster) Status() *internal.ClusterStatus {
|
||||
return &internal.ClusterStatus{
|
||||
Nodes: encodeClusterStatus(c.Nodes),
|
||||
|
|
|
|||
15
config.go
15
config.go
|
|
@ -3,10 +3,16 @@ package pilosa
|
|||
import "time"
|
||||
|
||||
const (
|
||||
// DefaultHost is the default hostname and port to use.
|
||||
DefaultHost = "localhost"
|
||||
DefaultPort = "10101"
|
||||
DefaultClusterType = "static"
|
||||
// DefaultHost is the default hostname to use.
|
||||
DefaultHost = "localhost"
|
||||
|
||||
// DefaultPort is the default port use with the hostname.
|
||||
DefaultPort = "10101"
|
||||
|
||||
// DefaultClusterType sets the node intercommunication method
|
||||
DefaultClusterType = "static"
|
||||
|
||||
// DefaultInternalPort the port the nodes intercommunicate on
|
||||
DefaultInternalPort = "14000"
|
||||
)
|
||||
|
||||
|
|
@ -67,6 +73,7 @@ func (d *Duration) UnmarshalText(text []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalText writes duration value in text format.
|
||||
func (d Duration) MarshalText() (text []byte, err error) {
|
||||
return []byte(d.String()), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue