rpc_client

package
v0.0.0-...-0f61435 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: ISC Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BleveService

type BleveService struct {
	Logger     zerolog.Logger
	Client     *rpc.Client
	RetryLimit uint8

	DelayDuration time.Duration
	// contains filtered or unexported fields
}

func New

func New(addr string, retryLimit uint8, delayDuration time.Duration) *BleveService

func (*BleveService) Delete

func (s *BleveService) Delete(filename string, identifier string) error

func (*BleveService) Index

func (s *BleveService) Index(filename string, identifier string, data any) error

func (*BleveService) Query

func (s *BleveService) Query(filename string, search string) ([]string, error)

func (*BleveService) Register

func (s *BleveService) Register(filenames []string) error

Jump to

Keyboard shortcuts

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