talent

package
v0.0.0-...-345574f Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	GetTalentByID(ginCtx *gin.Context)
	GetTalents(ginCtx *gin.Context)
	SearchTalents(ginCtx *gin.Context)
	PostTalent(ginCtx *gin.Context)
	PutTalentByID(ginCtx *gin.Context)
	DeleteTalentByID(ginCtx *gin.Context)
}

Controller interface

func NewController

func NewController(exec boil.ContextExecutor) Controller

NewController for talent repository

type Repository

type Repository interface {
	GetTalentByID(ctx context.Context, talentID string) (*models.JobSeeker, error)
	GetTalents(ctx context.Context, pageNumber int, itemsPerPage int) (models.JobSeekerSlice, error)
	CreateTalent(ctx context.Context, iamID string, params TalentParams) (*models.JobSeeker, error)
	UpdateTalentByID(ctx context.Context, iamID string, talentID string, params TalentParams) (*models.JobSeeker, error)
	DeleteTalentByID(ctx context.Context, iamID string, talentID string) error
	SearchTalents(ctx context.Context, searchText string) (models.JobSeekerSlice, error)
}

Repository interface for talent

type SeekingMode

type SeekingMode int
const (
	Inactive SeekingMode = 0
	Active   SeekingMode = 1
)

func (SeekingMode) String

func (h SeekingMode) String() string

type Service

type Service interface {
	GetTalentByID(ctx context.Context, talentID string) (Talent, error)
	GetTalents(ctx context.Context, pageNumber int, itemsPerPage int) ([]Talent, error)
	CreateTalent(ctx context.Context, iamID string, params TalentParams) (Talent, error)
	UpdateTalentByID(ctx context.Context, iamID string, talentID string, params TalentParams) (Talent, error)
	DeleteTalentByID(ctx context.Context, iamID string, talentID string) error
	SearchTalents(ctx context.Context, searchText string) ([]Talent, error)
}

Service is used to facilitate all otp related activities for any request

type Talent

type Talent struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Description string    `json:"description"`
	Website     string    `json:"website"`
	City        string    `json:"city"`
	CreatedAt   time.Time `json:"created_at"`
	CreatedBy   User      `json:"created_by"`
}

Talent struct

type TalentParams

type TalentParams struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	City        string `json:"city"`
}

type TalentSearch

type TalentSearch struct {
	Text string `json:"text"`
}

TalentSearch Params struct

type User

type User struct {
	ID          string      `json:"id"`
	FirstName   string      `json:"first_name"`
	LastName    string      `json:"last_name"`
	AvatarUrl   string      `json:"avatar_url"`
	JobTitle    string      `json:"job_title,omitempty"`
	Company     string      `json:"company,omitempty"`
	CreatedAt   time.Time   `json:"-"`
	Headline    string      `json:"headline,omitempty"`
	Profile     UserProfile `json:"profiles,omitempty"`
	SeekingMode string      `json:"seeking_mode"`
}

User struct

type UserProfile

type UserProfile struct {
	LinkedIn string `json:"linkedin"`
}

UserProfile struct

Jump to

Keyboard shortcuts

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