entities

package
v0.0.0-...-5754fde Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendId

func AppendId(person Person) bson.D

func NewOid

func NewOid() *primitive.ObjectID

Types

type ArticleParticipation

type ArticleParticipation struct {
	Participation skills.Publication_ParticipationType
	TheArticle    Publication
}

func PublicationFromPb

func PublicationFromPb(pb *skills.Publication) ArticleParticipation

func (ArticleParticipation) ToProto

type Certification

type Certification struct {
	Name       string
	Issuer     string
	Code       string
	Keywords   []string
	DateIssued t.Time
}

func CertificationFromPb

func CertificationFromPb(pb *skills.Certification) Certification

func (Certification) ToProto

func (c Certification) ToProto() *skills.Certification

type Experience

type Experience struct {
	Position    string
	Company     string
	Description string
	StartDate   t.Time
	EndDate     *t.Time
	Keywords    []string
}

type OpenSourceProject

type OpenSourceProject struct {
	Repository  string
	LastCommit  t.Time
	Description string
	FirstCommit *t.Time
	Keywords    []string
}

type Person

type Person struct {
	ID             *primitive.ObjectID `bson:"_id,omitempty"`
	FirstName      string
	LastName       string
	Certifications []Certification
	Articles       []ArticleParticipation
	WorkExperience []Experience
}

func PersonFromPb

func PersonFromPb(pb skills.Person) Person

func (*Person) ToProto

func (p *Person) ToProto() *skills.Person

type Publication

type Publication struct {
	Title           string
	PeriodicName    string
	Pages           string
	Url             string
	ISBN            string
	Keywords        []string
	PublicationDate t.Time
}

type Skill

type Skill struct {
	Name            string
	OwnRating       uint8
	OccurrenceRatio float64
}

Jump to

Keyboard shortcuts

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