model

package
v0.0.0-...-8c8a4b5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 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 ICacheRepository

type ICacheRepository interface {
}

type IDBMethods

type IDBMethods interface {
	IJobListingRepository
}

type IDBRepository

type IDBRepository interface {
	IDBMethods
	InitTxn(ctx context.Context) (*gorm.DB, func())
	WithTxn(txnHandler *gorm.DB) IDBMethods
	GetDBInstanceWithoutTxn() *gorm.DB
}

type IJobListingRepository

type IJobListingRepository interface {
	GetJobById(ctx context.Context, jobId string) (*JobListing, error)
}

type JobListing

type JobListing struct {
	Id           string    `gorm:"column:id" gorm:"primaryKey" json:"id"`
	Title        string    `gorm:"column:title" json:"title"`
	Description  string    `gorm:"column:description" json:"description"`
	Company      string    `gorm:"column:company" json:"company"`
	Url          string    `gorm:"column:url" json:"url"`
	CreatedBy    int       `gorm:"column:created_by" json:"created_by"`
	CreatedAtTs  time.Time `gorm:"column:created_at_ts" json:"created_at_ts"`
	ModifiedBy   int       `gorm:"column:modified_by" json:"modified_by"`
	ModifiedAtTs time.Time `gorm:"column:modified_at_ts" json:"modified_at_ts"`
}

Jump to

Keyboard shortcuts

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