repositories

package
v0.0.0-...-7cbedea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 3 Imported by: 0

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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL