Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHttpHandler ¶
Types ¶
type Employee ¶
type Employee struct { ID int `json:"id"` LastName string `json:"lastName"` FirstName string `json:"firstName"` Company string `json:"company"` EmailAddress string `json:"emailAddress"` JobTitle string `json:"jobTitle"` BusinessPhone string `json:"businessPhone"` HomePhone string `json:"homePhone"` MobilePhone string `json:"mobilePhone"` FaxNumber string `json:"faxNumber"` Address string `json:"address"` }
type EmployeeList ¶
type Repository ¶
type Repository interface { GetEmployees(params *getEmployeesRequest) ([]*Employee, error) GetTotalEmployees() (int64, error) }
func NewRepository ¶
func NewRepository(db *sql.DB) Repository
type Service ¶
type Service interface {
GetEmployees(params *getEmployeesRequest) (*EmployeeList, error)
}
func NewService ¶
func NewService(repo Repository) Service
Click to show internal directories.
Click to hide internal directories.