releaseNote

package
v0.0.0-...-c3c50aa Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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