Documentation ¶
Index ¶
Constants ¶
View Source
const ( STAFF_ROLE = 0 LEADS_ROLE = 1 HQ_ROLE = 2 )
View Source
const RETIRED_POSITION_TITLE = "Retired"
Variables ¶
View Source
var DiscordRankGroupMap = map[DiscordRankGroupRole]DiscordRankGroupRole{ // contains filtered or unexported fields }
View Source
var RankRoleMapping = map[proto.RankType]DiscordRankRoleId{ proto.RankType_RANK_TYPE_RCT: discord7CavRCT, proto.RankType_RANK_TYPE_PVT: discord7CavPVT, proto.RankType_RANK_TYPE_PFC: discord7CavPFC, proto.RankType_RANK_TYPE_SPC: discord7CavSPC, proto.RankType_RANK_TYPE_CPL: discord7CavCPL, proto.RankType_RANK_TYPE_SGT: discord7CavSGT, proto.RankType_RANK_TYPE_SSG: discord7CavSSG, proto.RankType_RANK_TYPE_SFC: discord7CavSFC, proto.RankType_RANK_TYPE_MSG: discord7CavMSG, proto.RankType_RANK_TYPE_1SG: discord7Cav1SG, proto.RankType_RANK_TYPE_SGM: discord7CavSGM, proto.RankType_RANK_TYPE_CSM: discord7CavCSM, proto.RankType_RANK_TYPE_WO1: discord7CavWO1, proto.RankType_RANK_TYPE_CW2: discord7CavCW2, proto.RankType_RANK_TYPE_CW3: discord7CavCW3, proto.RankType_RANK_TYPE_CW4: discord7CavCW4, proto.RankType_RANK_TYPE_CW5: discord7CavCW5, proto.RankType_RANK_TYPE_2LT: discord7Cav2LT, proto.RankType_RANK_TYPE_1LT: discord7Cav1LT, proto.RankType_RANK_TYPE_CPT: discord7CavCPT, proto.RankType_RANK_TYPE_MAJ: discord7CavMAJ, proto.RankType_RANK_TYPE_LTC: discord7CavLTC, proto.RankType_RANK_TYPE_COL: discord7CavCOL, proto.RankType_RANK_TYPE_BG: discord7CavBG, proto.RankType_RANK_TYPE_MG: discord7CavMG, proto.RankType_RANK_TYPE_LTG: discord7CavLTG, proto.RankType_RANK_TYPE_GEN: discord7CavGEN, proto.RankType_RANK_TYPE_GOA: discord7CavGOA, }
View Source
var RoleRankMapping = map[DiscordRankRoleId]proto.RankType{ // contains filtered or unexported fields }
View Source
var RoleRosterMapping = map[DiscordRosterRole]proto.RosterType{ Discord7CavActive: proto.RosterType_ROSTER_TYPE_COMBAT, Discord7CavReserve: proto.RosterType_ROSTER_TYPE_RESERVE, Discord7CavELOA: proto.RosterType_ROSTER_TYPE_ELOA, Discord7CavWOH: proto.RosterType_ROSTER_TYPE_WALL_OF_HONOR, Discord7CavRet: proto.RosterType_ROSTER_TYPE_PAST_MEMBERS, Discord7CavDisch: proto.RosterType_ROSTER_TYPE_PAST_MEMBERS, }
View Source
var RosterRoleMapping = map[proto.RosterType]DiscordRosterRole{ proto.RosterType_ROSTER_TYPE_COMBAT: Discord7CavActive, proto.RosterType_ROSTER_TYPE_RESERVE: Discord7CavReserve, proto.RosterType_ROSTER_TYPE_ELOA: Discord7CavELOA, proto.RosterType_ROSTER_TYPE_WALL_OF_HONOR: Discord7CavWOH, proto.RosterType_ROSTER_TYPE_ARLINGTON: Discord7CavArlington, proto.RosterType_ROSTER_TYPE_PAST_MEMBERS: Discord7CavDisch, }
Functions ¶
func GenerateCavNickName ¶
func SpecialRETRoleCheck ¶
SpecialRETRoleCheck special function because `proto.RosterType_ROSTER_TYPE_PAST_MEMBERS` maps to both DISCH and RET really, this just confirms the role string is the retired role
Types ¶
type Department ¶
func GetDepartment ¶
func GetDepartment(billet *milpacs.Position) (Department, error)
type DiscordRankGroupRole ¶
type DiscordRankGroupRole string
func GetDiscordRankGroupRole ¶
func GetDiscordRankGroupRole(rank proto.RankType) DiscordRankGroupRole
type DiscordRankRoleId ¶
type DiscordRankRoleId string
type DiscordRosterRole ¶
type DiscordRosterRole string
const ( Discord7CavActive DiscordRosterRole = "437748324960043009" Discord7CavReserve DiscordRosterRole = "690899750425329666" Discord7CavELOA DiscordRosterRole = "937082349848526848" Discord7CavRet DiscordRosterRole = "437748982400417792" Discord7CavDisch DiscordRosterRole = "437749895785480193" Discord7CavWOH DiscordRosterRole = "690899500457525308" Discord7CavArlington DiscordRosterRole = "937084272068661289" )
type S1Department ¶
type S1Department struct {
// contains filtered or unexported fields
}
type S6Department ¶
type S6Department struct {
// contains filtered or unexported fields
}
func S6 ¶
func S6() *S6Department
func (S6Department) GetRolesForBillet ¶
func (dept S6Department) GetRolesForBillet(billet *milpacs.Position) *[]string
Click to show internal directories.
Click to hide internal directories.