Documentation ¶
Index ¶
- type ServerV2
- func (s *ServerV2) CommitIndex() uint64
- func (s *ServerV2) Dispatch(c raft.Command, w http.ResponseWriter, req *http.Request) error
- func (s *ServerV2) Leader() string
- func (s *ServerV2) PeerURL(name string) (string, bool)
- func (s *ServerV2) State() string
- func (s *ServerV2) Store() store.Store
- func (s *ServerV2) Term() uint64
- type Store
- func (s *Store) CompareAndSwap(nodePath string, prevValue string, prevIndex uint64, value string, ...) (*store.Event, error)
- func (s *Store) Create(nodePath string, value string, incrementalSuffix bool, expireTime time.Time, ...) (*store.Event, error)
- func (s *Store) Delete(nodePath string, recursive bool, index uint64, term uint64) (*store.Event, error)
- func (s *Store) Get(nodePath string, recursive, sorted bool, index uint64, term uint64) (*store.Event, error)
- func (s *Store) JsonStats() []byte
- func (s *Store) Recovery(b []byte) error
- func (s *Store) Save() ([]byte, error)
- func (s *Store) Set(nodePath string, value string, expireTime time.Time, index uint64, term uint64) (*store.Event, error)
- func (s *Store) Update(nodePath string, newValue string, expireTime time.Time, index uint64, ...) (*store.Event, error)
- func (s *Store) Watch(prefix string, recursive bool, sinceIndex uint64, index uint64, term uint64) (<-chan *store.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerV2 ¶
A mock Server for the v2 handlers.
func NewServerV2 ¶
func (*ServerV2) CommitIndex ¶
Click to show internal directories.
Click to hide internal directories.