types

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobApplicationStatusSelectOptions = []SelectOption{
	{
		Label: "Accepted",
		Value: JobApplicationStatusAccepted.String(),
	},
	{
		Label: "Applied",
		Value: JobApplicationStatusApplied.String(),
	},
	{
		Label: "Canceled",
		Value: JobApplicationStatusCanceled.String(),
	},
	{
		Label: "Closed",
		Value: JobApplicationStatusClosed.String(),
	},
	{
		Label: "Declined",
		Value: JobApplicationStatusDeclined.String(),
	},
	{
		Label: "Interviewing",
		Value: JobApplicationStatusInterviewing.String(),
	},
	{
		Label: "Offered",
		Value: JobApplicationStatusOffered.String(),
	},
	{
		Label: "Rejected",
		Value: JobApplicationStatusRejected.String(),
	},
	{
		Label: "Watching",
		Value: JobApplicationStatusWatching.String(),
	},
	{
		Label: "Withdrawn",
		Value: JobApplicationStatusWithdrawn.String(),
	},
}

Functions

This section is empty.

Types

type AlertType

type AlertType string
const (
	AlertTypeError   AlertType = "error"
	AlertTypeSuccess AlertType = "success"
	AlertTypeWarning AlertType = "warning"
)

type FilterOpts

type FilterOpts struct {
	Company string
	Status  JobApplicationStatus
}

type JobApplication

type JobApplication struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	AppliedAt time.Time
	Company   string
	Title     string
	URL       string
	Status    JobApplicationStatus
	ID        int
	UserID    int
}

func (JobApplication) RecordID

func (j JobApplication) RecordID() int

type JobApplicationNote

type JobApplicationNote struct {
	CreatedAt        time.Time
	UpdatedAt        time.Time
	Note             string
	ID               int
	JobApplicationID int
}

func (JobApplicationNote) Created

func (j JobApplicationNote) Created() time.Time

func (JobApplicationNote) RecordID

func (j JobApplicationNote) RecordID() int

func (JobApplicationNote) Type

type JobApplicationStatus

type JobApplicationStatus string
const (
	JobApplicationStatusAccepted     JobApplicationStatus = "accepted"
	JobApplicationStatusApplied      JobApplicationStatus = "applied"
	JobApplicationStatusCanceled     JobApplicationStatus = "canceled"
	JobApplicationStatusClosed       JobApplicationStatus = "closed"
	JobApplicationStatusDeclined     JobApplicationStatus = "declined"
	JobApplicationStatusInterviewing JobApplicationStatus = "interviewing"
	JobApplicationStatusOffered      JobApplicationStatus = "offered"
	JobApplicationStatusRejected     JobApplicationStatus = "rejected"
	JobApplicationStatusWatching     JobApplicationStatus = "watching"
	JobApplicationStatusWithdrawn    JobApplicationStatus = "withdrawn"
)

func ToJobApplicationStatus

func ToJobApplicationStatus(val string) JobApplicationStatus

func (JobApplicationStatus) PrettyString

func (j JobApplicationStatus) PrettyString() string

func (JobApplicationStatus) String

func (j JobApplicationStatus) String() string

type JobApplicationStatusHistory

type JobApplicationStatusHistory struct {
	CreatedAt        time.Time
	UpdatedAt        time.Time
	Status           JobApplicationStatus
	ID               int
	JobApplicationID int
}

func (JobApplicationStatusHistory) Created

func (JobApplicationStatusHistory) RecordID

func (j JobApplicationStatusHistory) RecordID() int

func (JobApplicationStatusHistory) Type

type JobApplicationTimelineEntry

type JobApplicationTimelineEntry interface {
	RecordID() int
	Type() JobApplicationTimelineType
	Created() time.Time
}

type JobApplicationTimelineType

type JobApplicationTimelineType string
const (
	JobApplicationTimelineTypeNote   JobApplicationTimelineType = "note"
	JobApplicationTimelineTypeStatus JobApplicationTimelineType = "status"
)

func ToJobApplicationTimelineType

func ToJobApplicationTimelineType(val string) JobApplicationTimelineType

func (JobApplicationTimelineType) String

type NewTimelineEntry

type NewTimelineEntry struct {
	Entry   JobApplicationTimelineEntry
	SwapOOB string
}

type PaginationOpts

type PaginationOpts struct {
	Page    int
	PerPage int
	Total   int
}

type Record

type Record interface {
	RecordID() int
}

type SelectOption

type SelectOption struct {
	Label string
	Value string
}

type SelectOpts

type SelectOpts struct {
	Options     []SelectOption
	Err         error
	Name        string
	Label       string
	Placeholder string
	Value       string
	Required    bool
}

type Session

type Session struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	ExpiresAt time.Time
	Token     string
	UserAgent string
	UserID    int
	ID        int
}

type StatsOpts

type StatsOpts struct {
	TotalApplications           string
	TotalCompanies              string
	AverageTimeToHearBackInDays string
	TotalInterviewingPercentage string
	TotalRejectionsPercentage   string
}

type User

type User struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	Email     string
	Password  string
	ID        int
}

Jump to

Keyboard shortcuts

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