repo

package
v0.0.0-...-c7bd0a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoInterface

type RepoInterface interface {
	CreateEmployee(ctx context.Context, employee *entity.Employee) error
	FindEmployee(ctx context.Context, employeeID *string) (*entity.Employee, error)
	SaveEmployee(ctx context.Context, employee *entity.Employee) error
	SearchEmployees(ctx context.Context, query *string) ([]*entity.Employee, error)

	CreateSkill(ctx context.Context, skill *entity.Skill) error
	FindSkill(ctx context.Context, skillID *string) (*entity.Skill, error)
	SaveSkill(ctx context.Context, skill *entity.Skill) error
	FindSkillByName(ctx context.Context, name *string) (*entity.Skill, error)

	AddEmployeeSkill(ctx context.Context, employeeSkill *entity.EmployeesSkill) error

	// NOTE: temporary
	DeleteEmployeeSkills(ctx context.Context, employeeID *string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL