Documentation ¶
Index ¶
- Variables
- func RegisterWorker(s *Service)
- type ICommitHandler
- type IProcessHandler
- type KV
- type Profession
- type Service
- func (s *Service) CommitHandler(namespace string, data []byte) error
- func (s *Service) CommitHandlerSet(namespace string, handler ICommitHandler)
- func (s *Service) GetInit() (string, []byte, error)
- func (s *Service) GetSnapshot() ([]byte, error)
- func (s *Service) ProcessHandler(namespace string, propose []byte) (string, []byte, error)
- func (s *Service) ProcessHandlerSet(namespace string, handler IProcessHandler)
- func (s *Service) ResetSnap(data []byte) error
- type Worker
- type WorkerCmd
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterWorker ¶
func RegisterWorker(s *Service)
Types ¶
type ICommitHandler ¶
type IProcessHandler ¶
type Profession ¶
type Profession struct { }
func (*Profession) CommitHandler ¶
func (p *Profession) CommitHandler(data []byte) error
func (*Profession) ProcessHandler ¶
func (p *Profession) ProcessHandler(propose []byte) (string, []byte, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CommitHandler ¶
func (*Service) CommitHandlerSet ¶
func (s *Service) CommitHandlerSet(namespace string, handler ICommitHandler)
func (*Service) GetSnapshot ¶
func (*Service) ProcessHandler ¶
func (*Service) ProcessHandlerSet ¶
func (s *Service) ProcessHandlerSet(namespace string, handler IProcessHandler)
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) CommitHandler ¶
func (*Worker) ProcessHandler ¶
func (*Worker) ResetHandler ¶
Click to show internal directories.
Click to hide internal directories.