Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationRepository ¶
type ApplicationRepository struct {
// contains filtered or unexported fields
}
ApplicationRepository handle operations at `applications` table
func NewApplicationRepository ¶
func NewApplicationRepository() *ApplicationRepository
NewApplicationRepository performs a new connection to db using the ApplicationRepository
func (*ApplicationRepository) Count ¶
func (r *ApplicationRepository) Count() (c int)
Count all records of this model
func (*ApplicationRepository) Create ¶
func (r *ApplicationRepository) Create(m *models.Application) error
Create this model
func (*ApplicationRepository) DropTable ¶
func (r *ApplicationRepository) DropTable() error
DropTable if exists
func (*ApplicationRepository) Migrate ¶
func (r *ApplicationRepository) Migrate() error
Migrate the application repository
type CredentialRepository ¶
type CredentialRepository struct {
// contains filtered or unexported fields
}
CredentialRepository handle operations at `credentials` table
func NewCredentialRepository ¶
func NewCredentialRepository() *CredentialRepository
NewCredentialRepository performs a new connection to db using the CredentialRepository
func (*CredentialRepository) Count ¶
func (r *CredentialRepository) Count() (c int)
Count all records of this model
func (*CredentialRepository) Create ¶
func (r *CredentialRepository) Create(m *models.Credential) error
Create this model
func (*CredentialRepository) DropTable ¶
func (r *CredentialRepository) DropTable() error
DropTable if exists
func (*CredentialRepository) Migrate ¶
func (r *CredentialRepository) Migrate() error
Migrate the credential repository
Click to show internal directories.
Click to hide internal directories.