Documentation ¶
Index ¶
- type Collection
- type Repository
- func (rep *Repository) DeleteDBpostgres()
- func (rep *Repository) InputDBpostgres(id, name, surname, phone string)
- func (rep *Repository) InputPhoneDBpostgres(id, phone string)
- func (rep *Repository) OutputDBpostgres(id string) (string, string, string)
- func (rep *Repository) OutputPhonesDBpostgres(id string) []string
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func ConnectDBmongo ¶
func ConnectDBmongo() *Collection
func (*Collection) InputDBmongo ¶
func (coll *Collection) InputDBmongo(id, name, surname string, phones []string)
func (*Collection) OutputMongoDB ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func ConnectDBpostgres ¶
func ConnectDBpostgres() *Repository
func (*Repository) DeleteDBpostgres ¶
func (rep *Repository) DeleteDBpostgres()
func (*Repository) InputDBpostgres ¶
func (rep *Repository) InputDBpostgres(id, name, surname, phone string)
func (*Repository) InputPhoneDBpostgres ¶
func (rep *Repository) InputPhoneDBpostgres(id, phone string)
func (*Repository) OutputDBpostgres ¶
func (rep *Repository) OutputDBpostgres(id string) (string, string, string)
func (*Repository) OutputPhonesDBpostgres ¶
func (rep *Repository) OutputPhonesDBpostgres(id string) []string
Click to show internal directories.
Click to hide internal directories.