Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
HealthCheck() error
Setup([]interface{}) error
GetTables() ([]string, error)
HasTable(string) bool
// Query operations
WithContext(ctx context.Context) Service
Preload(string, ...interface{}) Service
Joins(string, ...interface{}) Service
Where(string, ...interface{}) Service
Search(string, string) Service
Order(string) Service
Limit(int) Service
OffsetPages(page int) Service
// General operations for manipulating databases
AddItem(interface{}, ...int64) (*gorm.DB, error)
UpdateItem(interface{}, interface{}, ...int64) (*gorm.DB, error)
DeleteItem(interface{}, ...int64) (*gorm.DB, error)
GetItems(interface{}, interface{}) (int64, error)
GetAllItems(interface{}, interface{}) (int64, error)
GetItem(interface{}, interface{}) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.