grpc

package
v0.0.0-...-8bfacca Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlags

func InitFlags()

func RegisterSubscriberFactory

func RegisterSubscriberFactory(factory SubscriberFactory)

func StartGrpc

func StartGrpc(ctx context.Context) error

Types

type EventService

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

func (*EventService) Get

func (*EventService) ReStore

func (*EventService) Store

func (*EventService) Subscribe

func (*EventService) SubscribeWithHandler

func (s *EventService) SubscribeWithHandler(handler subscribeHandler, custom func(options badger.IteratorOptions) badger.IteratorOptions, filter *regexp.Regexp) error

type KeyValueService

type KeyValueService struct {
}

func (*KeyValueService) Get

func (k *KeyValueService) Get(ctx context.Context, request *v1.GetRequest) (*v1.GetResponse, error)

func (*KeyValueService) Put

func (k *KeyValueService) Put(ctx context.Context, request *v1.PutRequest) (*v1.PutResponse, error)

type Subscriber

type Subscriber interface {
	Start(ctx context.Context) error
	// contains filtered or unexported methods
}

type SubscriberFactory

type SubscriberFactory func(kvsvc *KeyValueService, evsvc *EventService) Subscriber

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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