Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DinosaurDao ¶
type DinosaurDao interface { Get(ctx context.Context, id string) (*api.Dinosaur, error) Create(ctx context.Context, dinosaur *api.Dinosaur) (*api.Dinosaur, error) Replace(ctx context.Context, dinosaur *api.Dinosaur) (*api.Dinosaur, error) Delete(ctx context.Context, id string) error FindByIDs(ctx context.Context, ids []string) (api.DinosaurList, error) FindBySpecies(ctx context.Context, species string) (api.DinosaurList, error) All(ctx context.Context) (api.DinosaurList, error) }
func NewDinosaurDao ¶
func NewDinosaurDao(sessionFactory *db.SessionFactory) DinosaurDao
type EventDao ¶
type EventDao interface { Get(ctx context.Context, id string) (*api.Event, error) Create(ctx context.Context, event *api.Event) (*api.Event, error) Replace(ctx context.Context, event *api.Event) (*api.Event, error) Delete(ctx context.Context, id string) error FindByIDs(ctx context.Context, ids []string) (api.EventList, error) All(ctx context.Context) (api.EventList, error) }
func NewEventDao ¶
func NewEventDao(sessionFactory *db.SessionFactory) EventDao
type GenericDao ¶
type GenericDao interface { Fetch(offset int, limit int, resourceList interface{}) error GetInstanceDao(ctx context.Context, model interface{}) GenericDao Preload(preload string) OrderBy(orderBy string) Joins(sql string) Group(sql string) Where(where Where) Count(model interface{}, total *int64) Validate(resourceList interface{}) error GetTableName() string GetTableRelation(fieldName string) (TableRelation, bool) }
func NewGenericDao ¶
func NewGenericDao(sessionFactory *db.SessionFactory) GenericDao
Click to show internal directories.
Click to hide internal directories.