redis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	AddressField string `json:"Address"`
	TextField    string `json:"Text"`
	IDField      int64  `json:"ID"`
}

func (*Record) Address

func (r *Record) Address() string

func (*Record) ID

func (r *Record) ID() int64

func (*Record) Text

func (r *Record) Text() string

type StorageService

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

func NewStorageService

func NewStorageService(address string, db int) *StorageService

func (*StorageService) AllCreateEventsAfter

func (s *StorageService) AllCreateEventsAfter(ctx context.Context, family string, lastId int64) <-chan drop.Record

func (*StorageService) AllDeleteEvents

func (s *StorageService) AllDeleteEvents(ctx context.Context, family string) <-chan drop.Record

func (*StorageService) AllRecordsAfter added in v0.2.0

func (s *StorageService) AllRecordsAfter(ctx context.Context, family string, startTime int64) (<-chan drop.Record, int64)

func (*StorageService) DeleteRecord

func (s *StorageService) DeleteRecord(family string, ikey int64) error

func (*StorageService) GetRecord

func (s *StorageService) GetRecord(family string, ikey int64) (drop.Record, error)

func (*StorageService) PutRecord

func (s *StorageService) PutRecord(family string, rec drop.Record) (int64, error)

Jump to

Keyboard shortcuts

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