hr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HRUsersModify

type HRUsersModify kafkaemployees.HRUsersModify

func (*HRUsersModify) HREvent

func (*HRUsersModify) Len

func (x *HRUsersModify) Len() int

func (*HRUsersModify) TopicName

func (x *HRUsersModify) TopicName() string

type SourceUser

type SourceUser struct {
	Id        string     `json:"id"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedAt time.Time  `json:"updatedAt"`
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	Login          string `json:"userName"`
	FullName       string `json:"fullName"`
	Email          string `json:"email"`
	Phone          string `json:"phone"`
	SupervisorID   string `json:"supervisorID"`
	OrganizationID string `json:"organizationID"`
	PositionTitle  string `json:"positionTitle"`
	UnitID         string `json:"unitID"`
	LocationID     string `json:"locationID"`
}

func (SourceUser) GetId

func (e SourceUser) GetId() string

type UsersTask

type UsersTask struct {
	// contains filtered or unexported fields
}

func NewUsersTask

func NewUsersTask(kfk *kafkaframe.Kafka) *UsersTask

func (*UsersTask) ConvertUser

func (s *UsersTask) ConvertUser(ctx context.Context) func(SourceUser) *kafkaemployees.HRUser

func (*UsersTask) ExecuteSync

func (s *UsersTask) ExecuteSync(ctx context.Context) error

func (*UsersTask) FullSync

func (s *UsersTask) FullSync(ctx context.Context, taskId xid.ID, chbun chan etl.SyncObjer) time.Time

func (*UsersTask) String

func (s *UsersTask) String() string

Jump to

Keyboard shortcuts

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