Documentation ¶
Index ¶
- type Client
- func (m Client) AddCompany(company *models.Company) (*models.Company, error)
- func (m Client) DeleteCompany(id string) error
- func (m Client) GetCompanyByID(id string) (*models.Company, error)
- func (m *Client) GetMongoCompanyCollection() *mongo.Collection
- func (m *Client) GetMongoDatabase() *mongo.Database
- func (m *Client) GetMongoUserCollection() *mongo.Collection
- func (m Client) GetUserFromEmail(email string) (*models.User, error)
- func (m *Client) InitIndices() error
- func (m Client) UpdateCompany(id string, companyUpdate *models.CompanyUpdate) (*models.Company, error)
- func (m Client) UserLogin(loginInfo *models.UserLogin) (string, error)
- func (m Client) UserSignup(user *models.User) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) AddCompany ¶
func (Client) DeleteCompany ¶
func (*Client) GetMongoCompanyCollection ¶
func (m *Client) GetMongoCompanyCollection() *mongo.Collection
func (*Client) GetMongoDatabase ¶
func (*Client) GetMongoUserCollection ¶
func (m *Client) GetMongoUserCollection() *mongo.Collection
func (Client) GetUserFromEmail ¶
func (*Client) InitIndices ¶
func (Client) UpdateCompany ¶
Click to show internal directories.
Click to hide internal directories.