Documentation
¶
Index ¶
- Variables
- func GetHTMLResponse(ctx context.Context, client *http.Client, data *url.Values, destURL string) (*http.Response, error)
- func ParseCustomerInfo(rawHTML string, log *slog.Logger) (string, string)
- func ParseEmployeeFromBody(in io.ReadCloser, metric *metrics.Metrics, ...) ([]models.Employee, error)
- func ParseLinks(rawHTML string) []string
- func ParseTaskTypes(ctx context.Context, client *http.Client, destURL string) ([]string, error)
- type EmployeeParser
- type EmployeeParserIface
- type TaskInterface
- type TaskParser
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrScrapeTask = errors.New("failed to scrape tasks")
Functions ¶
func GetHTMLResponse ¶
func ParseEmployeeFromBody ¶
func ParseLinks ¶
Types ¶
type EmployeeParser ¶
type EmployeeParser struct {
// contains filtered or unexported fields
}
func (*EmployeeParser) ParseEmployees ¶
type EmployeeParserIface ¶
type EmployeeParserIface interface {
ParseEmployees(ctx context.Context) ([]models.Employee, error)
}
func NewEmployeeParser ¶
type TaskInterface ¶
type TaskParser ¶
type TaskParser struct {
// contains filtered or unexported fields
}
func NewTaskParser ¶
func (*TaskParser) ParseTasksByDate ¶
Click to show internal directories.
Click to hide internal directories.