Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProRepository ¶
type ProRepository struct { TableName string // contains filtered or unexported fields }
ProRepository a repository for example
func NewProRepository ¶
func NewProRepository(conf config.Config, db *database, tableName string, version int) *ProRepository
NewProRepository Create a new ProRepository
func (*ProRepository) FindByID ¶
func (r *ProRepository) FindByID() errors.NoFound
FindByID find something by id
type UserRepository ¶
type UserRepository struct { TableName string // contains filtered or unexported fields }
UserRepository the user repository for example
func NewUserRepository ¶
func NewUserRepository(conf *config2.Config, db *database, tableName string) *UserRepository
NewUserRepository Create a new UserRepository
func (*UserRepository) FindByID ¶
func (r *UserRepository) FindByID() error
FindByID find something by id
Click to show internal directories.
Click to hide internal directories.