raft_service

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 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 added in v0.6.0

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

func (*Service) Put added in v0.6.0

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

func (*Service) Reset added in v0.6.0

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