repository

package
v0.0.0-...-923a0ba Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func (coll *Collection) OutputMongoDB(id string) (string, string, string, []string)

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

type User

type User struct {
	ID      string `bson:"_id" json:"id"`
	Name    string
	SurName string
	Phones  []string
}

Jump to

Keyboard shortcuts

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