Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistrySchema ¶
Types ¶
type Object ¶
type Object interface {
// GetAPIGroup get the APIGroup of Object
GetAPIGroup() *APIGroup
// DeepCopy deep copy the struct
DeepCopy() Object
}
Object is an interface that describes protocol message
type Schema ¶
type Schema interface {
FindPage(ctx context.Context, page, size int) ([]Object, int64, error)
FindAll(ctx context.Context) ([]Object, error)
FindPureAll(ctx context.Context) ([]Object, error)
Count(ctx context.Context) (total int64, err error)
FindOne(ctx context.Context) (Object, error)
Cond(exprs ...clause.Expression) Schema
Create(ctx context.Context) (Object, error)
BatchUpdates(ctx context.Context) error
Updates(ctx context.Context) (Object, error)
BatchDelete(ctx context.Context, soft bool) error
Delete(ctx context.Context, soft bool) error
Tx(ctx context.Context) *dao.DB
}
type SchemaSet ¶
func NewSchemaSet ¶
func NewSchemaSet() *SchemaSet
Click to show internal directories.
Click to hide internal directories.