raft_service

package
v1.15.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func (*Event) All

func (e *Event) All() map[string]map[string][]byte

func (*Event) Data

func (e *Event) Data() []byte

func (*Event) Event

func (e *Event) Event() string

func (*Event) Key

func (e *Event) Key() string

func (*Event) Namespace

func (e *Event) Namespace() string

type InitOp

type InitOp func(map[string]map[string][]byte) map[string]map[string][]byte

type Service

type Service struct {
	dispatcher.IDispatchCenter
	// contains filtered or unexported fields
}

func NewService

func NewService(ops ...InitOp) *Service

func (*Service) Delete

func (s *Service) Delete(key string) error

func (*Service) Put

func (s *Service) Put(key string, value []byte) error

func (*Service) Reset

func (s *Service) Reset(values []*etcd.KValue)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL