testdomain

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookType

type BookType struct {
	System     *SystemInstance
	BookTypeId string
	DBBookType *model.BookType
}

func CreateBookType

func CreateBookType(system *SystemInstance, typeName string) (*BookType, error)

func (*BookType) ClearCacheData

func (b *BookType) ClearCacheData(ctx context.Context)

func (*BookType) ClearData

func (b *BookType) ClearData(ctx context.Context)

func (*BookType) VerifyBookTypeExists

func (b *BookType) VerifyBookTypeExists(ctx context.Context) bool

func (*BookType) VerifyBookTypeIsCached

func (b *BookType) VerifyBookTypeIsCached(ctx context.Context) bool

type SystemInstance

type SystemInstance struct {
	Ctx                context.Context
	DB                 *gorm.DB
	BookTypeCacheStore stats.StatsCacheStore
	BookTypeRepo       datarepo.CachedRepository
}

Jump to

Keyboard shortcuts

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