Documentation ¶
Index ¶
- type ReleaseNote
- type ReleaseNoteRepository
- type ReleaseNoteRepositoryImpl
- func (impl ReleaseNoteRepositoryImpl) FindActive() (*ReleaseNote, error)
- func (impl ReleaseNoteRepositoryImpl) GetConnection() *pg.DB
- func (impl ReleaseNoteRepositoryImpl) Save(releaseNote *ReleaseNote, tx *pg.Tx) error
- func (impl ReleaseNoteRepositoryImpl) Update(releaseNote *ReleaseNote, tx *pg.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseNote ¶
type ReleaseNote struct { Id int `sql:"id,pk"` ReleaseNote []*common.Release `sql:"release_note, notnull"` IsActive bool `sql:"is_active, notnull"` CreatedOn time.Time `sql:"created_on,type:timestamptz,notnull"` UpdatedOn time.Time `sql:"updated_on,type:timestamptz"` // contains filtered or unexported fields }
type ReleaseNoteRepository ¶
type ReleaseNoteRepository interface { GetConnection() *pg.DB Save(releaseNote *ReleaseNote, tx *pg.Tx) error Update(releaseNote *ReleaseNote, tx *pg.Tx) error FindActive() (*ReleaseNote, error) }
type ReleaseNoteRepositoryImpl ¶
type ReleaseNoteRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewReleaseNoteRepositoryImpl ¶
func NewReleaseNoteRepositoryImpl(logger *zap.SugaredLogger) (*ReleaseNoteRepositoryImpl, error)
func (ReleaseNoteRepositoryImpl) FindActive ¶
func (impl ReleaseNoteRepositoryImpl) FindActive() (*ReleaseNote, error)
func (ReleaseNoteRepositoryImpl) GetConnection ¶
func (impl ReleaseNoteRepositoryImpl) GetConnection() *pg.DB
func (ReleaseNoteRepositoryImpl) Save ¶
func (impl ReleaseNoteRepositoryImpl) Save(releaseNote *ReleaseNote, tx *pg.Tx) error
func (ReleaseNoteRepositoryImpl) Update ¶
func (impl ReleaseNoteRepositoryImpl) Update(releaseNote *ReleaseNote, tx *pg.Tx) error
Click to show internal directories.
Click to hide internal directories.