Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 534 Bytes
package ravendb
const (
ServerNodeRoleNone = "None"
ServerNodeRolePromotable = "Promotable"
ServerNodeRoleMember = "Member"
ServerNodeRoleRehab = "Rehab"
)
// ServerNode describes a single server node
type ServerNode struct {
URL string `json:"Url"`
Database string `json:"Database"`
ClusterTag string `json:"ClusterTag"`
ServerRole string `json:"ServerRole"`
}
// NewServerNode creates a new ServerNode
func NewServerNode() *ServerNode {
return &ServerNode{
ServerRole: ServerNodeRoleNone,
}
}
You can’t perform that action at this time.