Documentation ¶
Index ¶
- Constants
- type Repo
- func (r Repo) CheckUserIDWithPasword(ctx context.Context, userID, password string) error
- func (r Repo) Close() error
- func (r Repo) CountRowsTable(ctx context.Context, table string) (int, error)
- func (r Repo) DelCardByID(ctx context.Context, id string) error
- func (r Repo) DelPartnerByID(ctx context.Context, ID string) (string, error)
- func (r Repo) DelSlideByID(ctx context.Context, ID string) (string, error)
- func (r Repo) FindEmailWithPasword(ctx context.Context, identity structs.IdentityData) (string, error)
- func (r Repo) InsertCard(ctx context.Context, card structs.Card) error
- func (r Repo) InsertPartner(ctx context.Context, partner structs.Partner, chWell chan struct{}) error
- func (r Repo) InsertSlider(ctx context.Context, slider structs.Slide, chWell chan struct{}) error
- func (r Repo) SelectAllCards(ctx context.Context, params structs.CardQueryParameters) ([]structs.Card, error)
- func (r Repo) SelectAllPartners(ctx context.Context, params structs.PartnerQueryParameters) ([]structs.Partner, error)
- func (r Repo) SelectCardByID(ctx context.Context, id string) (structs.Card, error)
- func (r Repo) SelectContact(ctx context.Context) (structs.Contact, error)
- func (r Repo) SelectSlider(ctx context.Context) ([]structs.Slide, error)
- func (r Repo) UpdateContact(ctx context.Context, contact structs.Contact) error
- func (r Repo) UpdatePassord(ctx context.Context, userID, password string) error
Constants ¶
View Source
const ( ErrCodeUniqueViolation = "unique_violation" ErrCodeNoData = "no_data" ErrCodeForeignKeyViolation = "foreign_key_violation" ErrCodeUndefinedColumn = "undefined_column" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewRepository ¶
Returns an object of the Ropository.
func (Repo) CheckUserIDWithPasword ¶
func (Repo) CountRowsTable ¶
func (Repo) DelPartnerByID ¶
func (Repo) DelSlideByID ¶
func (Repo) FindEmailWithPasword ¶
func (Repo) InsertPartner ¶
func (Repo) InsertSlider ¶
func (Repo) SelectAllCards ¶
func (Repo) SelectAllPartners ¶
func (Repo) SelectCardByID ¶
func (Repo) SelectContact ¶
func (Repo) UpdateContact ¶
Click to show internal directories.
Click to hide internal directories.