label

package
v0.0.0-...-628cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 1 Imported by: 11

README

SelfDoc

Auto-generated code documentation to make the repository easier to navigate and contribute to.

Last Updated: 2023-05-15

The label directory is for defining and managing Gmail labels used by SRC for organizing and filtering emails. It includes candidate-specific labels for managing job opportunities and blocked emails, as well as labels for recruiters, such as Recruiting and RecruitingOutbound.

Files

candidate.go

This file defines candidate-specific Gmail labels for managing job opportunities and blocked emails in the SRC recruiting platform. It includes a struct for the CandidateLabels and defines unique labels for Jobs, JobsOpportunity, JobsInterested, JobsNotInterested, JobsSaved, JobsVerified, and blocked emails.

label.go

This file defines Gmail labels used by SRC for organizing and filtering emails, including SRC, Allow, AllowSender, AllowDomain, Block, BlockSender, and BlockDomain. It imports the gmail/v1 package and defines the label package.

recruiter.go

This file contains the RecruiterLabels struct, which includes all labels managed by SRC for recruiters. It also defines the Recruiting and RecruitingOutbound labels, which are used for all SRC-managed recruiting labels and identified recruiting outbound, respectively.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Jobs is the @SRC/Jobs folder for all @SRC job labels.
	Jobs = gmail.Label{
		Name: SRC.Name + "/Jobs",

		MessageListVisibility: "hide",
		Color:                 SRC.Color,
	}
	// JobsOpportunity is the @SRC/Jobs/Opportunity label for identified job opportunities.
	JobsOpportunity = gmail.Label{
		Name: Jobs.Name + "/Opportunity",

		MessageListVisibility: "show",

		Color: Jobs.Color,
	}
	// JobsInterested is the @SRC/Jobs/Interested label for job opportunities the candidate marked as interested.
	JobsInterested = gmail.Label{
		Name: Jobs.Name + "/Interested",

		MessageListVisibility: "show",

		Color: &gmail.LabelColor{
			BackgroundColor: "#16a765",
			TextColor:       "#ffffff",
		},
	}
	// JobsNotInterested is the @SRC/Jobs/Not Interested label for job opportunities the candidate marked as not interested.
	JobsNotInterested = gmail.Label{
		Name: Jobs.Name + "/Not Interested",

		MessageListVisibility: "show",

		Color: &gmail.LabelColor{
			BackgroundColor: "#cc3a21",
			TextColor:       "#ffffff",
		},
	}
	// JobsSaved is the @SRC/Jobs/Saved label for job opportunities the candidate saved.
	JobsSaved = gmail.Label{
		Name: Jobs.Name + "/Saved",

		MessageListVisibility: "show",

		Color: &gmail.LabelColor{
			BackgroundColor: "#ffad46",
			TextColor:       "#ffffff",
		},
	}
	// JobsVerified is the @SRC/Jobs/Verified label for verified job opportunities.
	JobsVerified = gmail.Label{
		Name: Jobs.Name + "/Verified",

		MessageListVisibility: "show",

		Color: &gmail.LabelColor{
			BackgroundColor: "#2da2bb",
			TextColor:       "#ffffff",
		},
	}
)

Candidate-specific labels

View Source
var (
	// SRC is the @SRC parent label for all @SRC labels.
	SRC = gmail.Label{
		Name:                "@SRC",
		LabelListVisibility: "labelShow",

		MessageListVisibility: "hide",
		Color: &gmail.LabelColor{
			BackgroundColor: "#4986e7",
			TextColor:       "#ffffff",
		},
	}
	// Allow is the @SRC/Allow folder for senders and domains that always bypass SRC
	Allow = gmail.Label{
		Name: SRC.Name + "/Allow",

		MessageListVisibility: "hide",
		Color: &gmail.LabelColor{
			BackgroundColor: "#16a765",
			TextColor:       "#ffffff",
		},
	}
	// AllowSender is the @SRC/Allow/Sender folder for senders that always bypass SRC
	AllowSender = gmail.Label{
		Name: Allow.Name + "/Sender",

		MessageListVisibility: "show",
		Color:                 Allow.Color,
	}
	// AllowDomain is the @SRC/Allow/Domain folder for email domains that always bypass SRC
	AllowDomain = gmail.Label{
		Name: Allow.Name + "/Domain",

		MessageListVisibility: "show",
		Color:                 Allow.Color,
	}
	// Block is the @SRC/Allow folder for senders and domains that are automatically removed from your inbox.
	// Blocked emails are not analyzed by SRC.
	Block = gmail.Label{
		Name: SRC.Name + "/Block",

		MessageListVisibility: "hide",
		Color: &gmail.LabelColor{
			BackgroundColor: "#cc3a21",
			TextColor:       "#ffffff",
		},
	}
	// BlockSender is the @SRC/Block/Sender folder for senders that are automatically removed from your inbox.
	// Blocked emails are not analyzed by SRC.
	BlockSender = gmail.Label{
		Name:                  Block.Name + "/Sender",
		MessageListVisibility: "show",
		Color:                 Block.Color,
	}
	// BlockDomain is the @SRC/Block/Domain folder for email domains that are automatically removed from your inbox.
	// Blocked emails are not analyzed by SRC.
	BlockDomain = gmail.Label{
		Name:                  Block.Name + "/Domain",
		MessageListVisibility: "show",
		Color:                 Block.Color,
	}
	// BlockGraveyard is the @SRC/Block/Graveyard folder for emails that have been removed from your inbox.
	// Blocked emails are not be analyzed by SRC.
	BlockGraveyard = gmail.Label{
		Name:                  Block.Name + "/🪦",
		MessageListVisibility: "show",
		Color:                 Block.Color,
	}
)

Generic labels

View Source
var (
	// Recruiting is the @SRC/Recruiting folder for all @SRC managed recruiting labels.
	Recruiting = gmail.Label{
		Name: SRC.Name + "/Recruiting",

		MessageListVisibility: "hide",
		Color:                 SRC.Color,
	}
	// RecruitingOutbound is the @SRC/Jobs/Opportunity label for identified recruiting outbound..
	RecruitingOutbound = gmail.Label{
		Name: Recruiting.Name + "/Outbound",

		MessageListVisibility: "show",

		Color: Recruiting.Color,
	}
)

Recruiter-specific labels

Functions

This section is empty.

Types

type CandidateLabels

type CandidateLabels struct {
	// SRC is the @SRC parent label for all @SRC labels.
	SRC *gmail.Label
	// Jobs is the @SRC/Jobs folder for all @SRC job labels.
	Jobs *gmail.Label
	// JobsOpportunity is the @SRC/Jobs/Opportunity label for identified job opportunities.
	JobsOpportunity *gmail.Label
	// JobsInterested is the @SRC/Jobs/Interested label for job opportunities the candidate marked as interested.
	JobsInterested *gmail.Label
	// JobsNotInterested is the @SRC/Jobs/Not Interested label for job opportunities the candidate marked as not interested.
	JobsNotInterested *gmail.Label
	// JobsSaved is the @SRC/Jobs/Saved label for job opportunities the candidate saved.
	JobsSaved *gmail.Label
	// JobsVerified is the @SRC/Jobs/Verified label for job opportunities that are sent from recruiters using SRC
	JobsVerified *gmail.Label
	// Allow is the @SRC/Allow folder for senders and domains that always bypass SRC
	Allow *gmail.Label
	// AllowSender is the @SRC/Allow/Sender folder for senders that always bypass SRC
	AllowSender *gmail.Label
	// AllowDomain is the @SRC/Allow/Domain folder for email domains that always bypass SRC
	AllowDomain *gmail.Label
	// Block is the @SRC/Allow folder for senders and domains that are automatically removed from your inbox.
	// Blocked emails are not analyzed by SRC.
	Block *gmail.Label
	// BlockSender is the @SRC/Block/Sender folder for senders that are automatically removed from your inbox.
	// Blocked emails are not analyzed by SRC.
	BlockSender *gmail.Label
	// BlockDomain is the @SRC/Block/Domain folder for email domains that are automatically removed from your inbox.
	// Blocked emails are not analyzed by SRC.
	BlockDomain *gmail.Label
	// BlockGraveyard is the @SRC/Block/🪦 folder for emails that have been removed from your inbox.
	// Blocked emails are not be analyzed by SRC.
	BlockGraveyard *gmail.Label
}

CandidateLabels contains all labels managed by @SRC for candidates. IDs are unique per gmail account. The rest of the fields should be the same across all accounts.

type RecruiterLabels

type RecruiterLabels struct {
	// SRC is the @SRC parent label for all @SRC labels.
	SRC *gmail.Label
	// Recruiting is the @SRC/Recruiting folder for all @SRC job labels.
	Recruiting *gmail.Label
	// RecruitingOutbound is the @SRC/Recruiting/Outbound label for identified recruiting outbound.
	RecruitingOutbound *gmail.Label
}

RecruiterLabels contains all labels managed by @SRC for recruiters.. IDs are unique per gmail account. The rest of the fields should be the same across all accounts.

Jump to

Keyboard shortcuts

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