repository

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepository

type IRepository interface {
	GetLastRevision(context.Context) int64
	PutEntity(context.Context, *dao.Entity) error
	GetEntity(context.Context, *dao.Entity) (*dao.Entity, error)
	DelEntity(context.Context, *dao.Entity) error
	HasEntity(context.Context, *dao.Entity) (bool, error)
	PutMapper(context.Context, *dao.Mapper) error
	GetMapper(context.Context, *dao.Mapper) (*dao.Mapper, error)
	DelMapper(context.Context, *dao.Mapper) error
	HasMapper(context.Context, *dao.Mapper) (bool, error)
	ListMapper(context.Context, int64, *dao.ListMapperReq) ([]dao.Mapper, error)
	RangeMapper(ctx context.Context, rev int64, handler dao.MapperHandler)
	WatchMapper(ctx context.Context, rev int64, handler dao.WatchMapperHandler)
	PutQueue(context.Context, *dao.Queue) error
	GetQueue(context.Context, *dao.Queue) (*dao.Queue, error)
	DelQueue(context.Context, *dao.Queue) error
	HasQueue(context.Context, *dao.Queue) (bool, error)
	RangeQueue(ctx context.Context, rev int64, handler dao.QueueHandler)
	WatchQueue(ctx context.Context, rev int64, handler dao.WatchQueueHandler)
}

func New

func New(dao *dao.Dao) IRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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