Documentation ¶
Index ¶
- type Appender
- type ClusterStatus
- type Engine
- func (e *Engine) Close(ctx context.Context)
- func (e *Engine) Init(dir string, localAddr string, opts ...Option) *Engine
- func (e *Engine) NewAppender(ctx context.Context, raw block.Raw) (Appender, error)
- func (e *Engine) Recover(ctx context.Context, raws map[vanus.ID]block.Raw) (map[vanus.ID]Appender, error)
- func (e *Engine) RegisterNodeRecord(id uint64, val string) error
- func (e *Engine) RegisterServer(srv *grpc.Server)
- func (e *Engine) Start()
- type EntryAppendedListener
- type LeaderChangedListener
- type Option
- func WithAppendExecutorParallel(parallel int) Option
- func WithApplyExecutorParallel(parallel int) Option
- func WithCommitExecutorParallel(parallel int) Option
- func WithEntryAppendedListener(lis EntryAppendedListener) Option
- func WithHintStore(hintStore *meta.AsyncStore) Option
- func WithLeaderChangedListener(lis LeaderChangedListener) Option
- func WithPersistExecutorParallel(parallel int) Option
- func WithRaftExecutorParallel(parallel int) Option
- func WithStateStore(stateStore *meta.SyncStore) Option
- func WithTransportExecutorParallel(parallel int) Option
- func WithWALOptions(opts ...walog.Option) Option
- type Peer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStatus ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) NewAppender ¶
func (*Engine) RegisterNodeRecord ¶
func (*Engine) RegisterServer ¶
type EntryAppendedListener ¶
type LeaderChangedListener ¶
type Option ¶
type Option func(*config)
func WithEntryAppendedListener ¶
func WithEntryAppendedListener(lis EntryAppendedListener) Option
func WithHintStore ¶
func WithHintStore(hintStore *meta.AsyncStore) Option
func WithLeaderChangedListener ¶
func WithLeaderChangedListener(lis LeaderChangedListener) Option
func WithStateStore ¶
func WithWALOptions ¶
Click to show internal directories.
Click to hide internal directories.