additional comments for config

This commit is contained in:
Michael Baird 2017-04-25 13:57:20 -05:00
parent 3972d0cfaa
commit 66496a73d7
2 changed files with 12 additions and 5 deletions

View file

@ -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),

View file

@ -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
}