Documentation ¶
Index ¶
- func CreateEmployee(conn *pgxpool.Pool) func(ctx context.Context, input *EmployeeInput) (*EmployeeOutput, error)
- func GetEmployeeById(conn *pgxpool.Pool) func(ctx context.Context, input ...) (*EmployeeOutput, error)
- func GetEmployees(conn *pgxpool.Pool) func(ctx context.Context, input *EmployeesInput) (*EmployeesOutput, error)
- type Employee
- type EmployeeInput
- type EmployeeOutput
- type EmployeesInput
- type EmployeesOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmployee ¶
func CreateEmployee(conn *pgxpool.Pool) func(ctx context.Context, input *EmployeeInput) (*EmployeeOutput, error)
func GetEmployeeById ¶
func GetEmployees ¶
func GetEmployees(conn *pgxpool.Pool) func(ctx context.Context, input *EmployeesInput) (*EmployeesOutput, error)
Types ¶
type EmployeeInput ¶
type EmployeeOutput ¶
type EmployeeOutput struct {
Body Employee `json:"body"`
}
type EmployeesInput ¶
type EmployeesOutput ¶
type EmployeesOutput struct { Body struct { Employees []Employee `json:"employees"` } }
Click to show internal directories.
Click to hide internal directories.