Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyHandler ¶
type CompanyHandler struct {
// contains filtered or unexported fields
}
func NewCompanyHandler ¶
func NewCompanyHandler(repo CompanyRepository) *CompanyHandler
func (*CompanyHandler) CreateCompany ¶
func (h *CompanyHandler) CreateCompany(w http.ResponseWriter, r *http.Request)
func (*CompanyHandler) GetCompanies ¶
func (h *CompanyHandler) GetCompanies(w http.ResponseWriter, r *http.Request)
func (*CompanyHandler) GetCompanyByID ¶
func (h *CompanyHandler) GetCompanyByID(w http.ResponseWriter, r *http.Request)
type CompanyRepository ¶
type CompanyRequest ¶
type PgCompanyRepository ¶
type PgCompanyRepository struct {
// contains filtered or unexported fields
}
func NewPgCompanyRepository ¶
func NewPgCompanyRepository(db *pgxpool.Pool) *PgCompanyRepository
func (*PgCompanyRepository) Create ¶
func (r *PgCompanyRepository) Create(ctx context.Context, company *Company) error
Click to show internal directories.
Click to hide internal directories.