racesmar

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package racesmar defines the RACES Mutual Aid Request Form message type.

Index

Constants

This section is empty.

Variables

View Source
var Type = message.Type{
	Tag:     "RACES-MAR",
	Name:    "RACES mutual aid request form",
	Article: "a",
}

Type is the type definition for a RACES mutual aid request form.

Functions

This section is empty.

Types

type RACESMAR

type RACESMAR struct {
	message.BaseMessage
	baseform.BaseForm
	AgencyName            string
	EventName             string
	EventNumber           string
	Assignment            string
	Resources             [5]Resource // made multiple in v2.1
	RequestedArrivalDates string
	RequestedArrivalTimes string
	NeededUntilDates      string
	NeededUntilTimes      string
	ReportingLocation     string
	ContactOnArrival      string
	TravelInfo            string
	RequestedByName       string
	RequestedByTitle      string
	RequestedByContact    string
	ApprovedByName        string
	ApprovedByTitle       string
	ApprovedByContact     string
	WithSignature         string // added in v2.4
	ApprovedByDate        string
	ApprovedByTime        string
}

RACESMAR holds a RACES mutual aid request form.

func New

func New() (f *RACESMAR)

type Resource

type Resource struct {
	Qty           string
	Role          string // Added in v2.3
	Position      string // Added in v2.3
	RolePos       string
	PreferredType string
	MinimumType   string
}

A Resource is the description of a single resource in a RACES mutual aid request form.

func (*Resource) Fields21

func (r *Resource) Fields21(index int) []*message.Field

func (*Resource) Fields23

func (r *Resource) Fields23(index int) []*message.Field

func (*Resource) IsHuman

func (r *Resource) IsHuman(s string) bool

func (*Resource) IsPIFO

func (r *Resource) IsPIFO(s string) bool

func (*Resource) ListHuman

func (r *Resource) ListHuman() []string

func (*Resource) ToHuman

func (r *Resource) ToHuman(s string) string

func (*Resource) ToPIFO

func (r *Resource) ToPIFO(s string) string

Jump to

Keyboard shortcuts

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