Documentation
¶
Index ¶
- Variables
- type BounceBool
- type BounceNil
- type BounceString
- type Bouncer
- func (bounce Bouncer) Bounce(location string) State
- func (bounce Bouncer) GetDBRole() (string, error)
- func (bounce Bouncer) GetDataDir() (string, error)
- func (bounce Bouncer) GetRole() (string, error)
- func (bounce Bouncer) HasSynced() (bool, error)
- func (bounce Bouncer) Location() string
- func (bounce Bouncer) Ready()
- func (bounce Bouncer) SetDBRole(role string) error
- func (bounce Bouncer) SetSynced(synced bool) error
- type LocalState
- type Nil
- type State
- type StateRPC
- func (wrap *StateRPC) BounceBool(bounce BounceBool, reply *bool) error
- func (wrap *StateRPC) BounceNil(bounce BounceNil, reply *Nil) error
- func (wrap *StateRPC) BounceString(bounce BounceString, reply *string) error
- func (wrap *StateRPC) GetDBRole(arg string, reply *string) error
- func (wrap *StateRPC) GetDataDir(arg string, reply *string) error
- func (wrap *StateRPC) GetRole(arg string, reply *string) error
- func (wrap *StateRPC) HasSynced(arg bool, reply *bool) error
- func (wrap *StateRPC) Ready(a Nil, b *Nil) error
- func (wrap *StateRPC) SetSynced(sync bool, out *bool) error
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Timeout = errors.New("Timeout") NotSupported = errors.New("not supported") )
Functions ¶
This section is empty.
Types ¶
type BounceBool ¶
type BounceString ¶
type Bouncer ¶
type Bouncer struct {
// contains filtered or unexported fields
}
func (Bouncer) GetDataDir ¶
type LocalState ¶
func NewLocalState ¶
func NewLocalState(role, location, dataDir string, store Store) (LocalState, error)
Creates and returns a state that represents a state on the local machine.
type State ¶
type StateRPC ¶
type StateRPC struct {
// contains filtered or unexported fields
}
func (*StateRPC) BounceBool ¶
func (wrap *StateRPC) BounceBool(bounce BounceBool, reply *bool) error
func (*StateRPC) BounceString ¶
func (wrap *StateRPC) BounceString(bounce BounceString, reply *string) error
Click to show internal directories.
Click to hide internal directories.