services

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetStorageEngine added in v1.1.0

func SetStorageEngine(engine StorageEngine)

Types

type Base

type Base struct {
	Interval time.Duration

	Logger *logger.Logger
	// contains filtered or unexported fields
}

func (*Base) Close

func (s *Base) Close() error

func (*Base) Init

func (s *Base) Init(name string, interval time.Duration, handle func())

func (*Base) Open

func (s *Base) Open() error

type StorageEngine added in v1.1.0

type StorageEngine interface {
	WriteRec(db, rp, mst string, ptId uint32, shardID uint64, rec *record.Record, binaryRec []byte) error
}

func GetStorageEngine added in v1.1.0

func GetStorageEngine() StorageEngine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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