Documentation
¶
Index ¶
- Constants
- func ClusterDir(clusterName string) string
- func GroupDir(clusterName string) string
- func GroupPath(clusterName string, gid int) string
- func LockPath(clusterName string) string
- func OraclePath(clusterName string) string
- func TimestampPath(clusterName string) string
- type Cluster
- type Group
- type Oracle
- type Store
- func (s *Store) Acquire() error
- func (s *Store) Client() client.Client
- func (s *Store) Close() error
- func (s *Store) DeleteGroup(gid int) error
- func (s *Store) DeleteTimestamp() error
- func (s *Store) GetLocalIP() (string, error)
- func (s *Store) GroupDir() string
- func (s *Store) GroupPath(gid int) string
- func (s *Store) ListGroup() (map[int]*Group, error)
- func (s *Store) LoadGroup(gid int, must bool) (*Group, error)
- func (s *Store) LoadOracle() (*Oracle, error)
- func (s *Store) LoadTimestamp() (uint64, error)
- func (s *Store) Lock() (err error)
- func (s *Store) LockPath() string
- func (s *Store) OraclePath() string
- func (s *Store) TimestampPath() string
- func (s *Store) Unlock() error
- func (s *Store) UpdateGroup(g *Group) error
- func (s *Store) UpdateOracle(o *Oracle) error
- func (s *Store) UpdateTimestamp(ts uint64) error
- func (s *Store) WithClusterLocked(f func() error) error
Constants ¶
View Source
const SpermwhaleDir = "/spermwhale"
Variables ¶
This section is empty.
Functions ¶
func ClusterDir ¶
func OraclePath ¶
func TimestampPath ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteGroup ¶
func (*Store) DeleteTimestamp ¶
func (*Store) GetLocalIP ¶
func (*Store) LoadOracle ¶
func (*Store) LoadTimestamp ¶
func (*Store) OraclePath ¶
func (*Store) TimestampPath ¶
func (*Store) UpdateGroup ¶
func (*Store) UpdateOracle ¶
func (*Store) UpdateTimestamp ¶
func (*Store) WithClusterLocked ¶
Click to show internal directories.
Click to hide internal directories.