api

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: CC0-1.0 Imports: 15 Imported by: 39

Documentation

Index

Constants

View Source
const (
	Certification  = "CER"
	MedicalRelease = "MEL"
	GeneralRelease = "REL"
	CreditRelease  = "FCR"
)

Attachment document types (dervied from e-QIP identifiers)

View Source
const (
	BasicAuthAudience    = "Basic"
	SingleSignOnAudience = "SSO"
)

Audience types used with Javascript Web Tokens.

BasicAuthAudience is used when basic authentication is used. SingleSignOnAudience is used when SAML/OAuth authentication is used.

View Source
const (
	LayoutAddress                             = "Address"
	LayoutBirthPlace                          = "Birthplace"
	LayoutBirthPlaceWithoutCounty             = "Birthplace without County"
	LayoutCountry                             = "Country"
	LayoutUSCityStateInternationalCity        = "US City, State, International city"
	LayoutUSCityStateInternationalCityCountry = "US City, State, International city country"
	LayoutState                               = "State"
	LayoutCityState                           = "City, State"
	LayoutStreetCityCountry                   = "Street, City, Country"
	LayoutCityCountry                         = "City, Country"
	LayoutUSCityStateZipcodeInternationalCity = "US City, State, Zipcode International city"
	LayoutCityStateCountry                    = "City, State, Country"
	LayoutUSAddress                           = "US Address"
	LayoutStreetCity                          = "Street, City"
)

Different potential layouts used by the frontend. File: /src/components/Form/Location/Layouts.js

View Source
const (
	LayoutBirthPlaceWithoutCountyNoUS = "Birthplace without County CountriesNoUS"
	LayoutBirthPlaceNoUS              = "Birthplace CountriesNoUS"
)

Special layout flags for e-QIP integration for Country elements with CountriesNoUS type

View Source
const (
	AccountLocked                              = "The account is currently locked"
	AccountUpdateError                         = "Not able to update account information"
	BasicAuthAttemptDenied                     = "An attempt for basic authentication was denied"
	BasicAuthError                             = "Failed to decode JSON for basic authentication"
	BasicAuthInvalid                           = "Basic authentication invalid"
	BasicAuthMissingPassword                   = "Basic authentication failed because missing a password"
	BasicAuthMissingUsername                   = "Basic authentication failed because missing a username"
	CORSDenied                                 = "CORS request denied"
	CookieDomainNotSet                         = "Cookie Domain is not set"
	EntityError                                = "Error getting entity data"
	EntitySaveError                            = "Error getting entity data"
	InvalidJWT                                 = "Invalid JSON web token"
	JWTError                                   = "Failed to generate JSON web token"
	JWTSecretNotSet                            = "JSON web token secret is not set"
	MiddlewareError                            = "Middleware has thrown an error"
	MigrationUnsupported                       = "Database migrations are not automated for Windows. Please manually execute the migrations."
	NoAccount                                  = "Unable to retrieve account"
	NoAuthorizationToken                       = "No authorization token header found"
	NoUsername                                 = "Unable to retrieve account because no username was provided"
	PayloadDeserializeError                    = "Failed to deserialize payload"
	PayloadEmpty                               = "Payload not provided"
	PayloadEntityError                         = "Error creating entity from the payload"
	PayloadInvalid                             = "Payload is invalid"
	PayloadMissingType                         = "Payload is missing a type"
	PdfError                                   = "Error generating archival signature PDFs"
	RetrievingAccount                          = "Retrieving account"
	SamlAttemptDenied                          = "An attempt for SAML authentication was denied"
	SamlFormError                              = "SAML response form value missing"
	SamlIdentifierMissing                      = "SAML attribute identifier missing"
	SamlInvalid                                = "SAML response invalid"
	SamlParseError                             = "Error parsing SAML response"
	SamlRequestError                           = "Error creating SAML authentication request"
	SamlRequestURLError                        = "Error creating SAML authentication request URL"
	SamlVerificationError                      = "Error verifying SAML response"
	USPSDecodeError                            = "Error decoding USPS geocoding response"
	USPSKnownErrorCode                         = "USPS known error received"
	USPSMissingKey                             = "USPS API key has not been set"
	USPSRequestError                           = "Error executing USPS geocoding request"
	USPSUnknownErrorCode                       = "USPS known error received"
	WarnFailedMigration                        = "Failed to migrate database"
	WebserviceMissingURL                       = "Missing endpoint URL for web service"
	WebserviceMissingKey                       = "Missing private key for web service"
	WebserviceMissingCallerInfoAgencyID        = "Missing Caller Info Agency ID"
	WebserviceMissingCallerInfoAgencySSN       = "Missing Caller Info Agency SSN"
	WebserviceMissingCallerInfoAgencyPseudoSSN = "Missing Caller Info Agency Pseudo SSN"
	WebserviceCannotGenerateInboundXML         = "Unable to generate XML from Form Application Data"
	WebserviceCannotGetApplicationData         = "Unable to retrieve Form Application Data"
	WebserviceMissingAgencyID                  = "Missing Agency ID"
	WebserviceErrorCreatingImportRequest       = "Unable to create import request"
	TransmissionError                          = "Error transmitting package"
	TransmissionStorageError                   = "Failed to store transmission record"
	AttachmentDenied                           = "An attempt for attachments was denied"
	AttachmentNoFile                           = "No attachment file found in multipart form data"
	AttachmentCopyBufferError                  = "Could not copy file buffer"
	AttachmentNotSaved                         = "Attachment file failed to save in persistent storage"
	AttachmentNotDeleted                       = "Attachment file failed to delete"
	AttachmentNoID                             = "No identifier for attachment provided"
	AttachmentNotFound                         = "Attachment file not found"
	AttachmentSizeMismatch                     = "Attachment file size mismatch"
	AttachmentSizeExceeded                     = "Attachment file size exceeded maximum allowed"
	AttachmentTypeNotAllowed                   = "Attachment file type not allowed"
)

Warning messages

View Source
const (
	BasicAuthValid       = "Basic authentication validated"
	GeneratingPackage    = "Generating package for transmission"
	LoggedOut            = "Logged out"
	PurgeAccountData     = "Purging account data"
	SamlValid            = "SAML authentication validated"
	StartingServer       = "Starting server"
	StartingServerTLS    = "Starting server with HTTPS/TLS"
	StoppingServer       = "Stopping server"
	TransmissionRecorded = "Transmission recorded"
	TransmissionStarted  = "Transmission began"
	TransmissionStopped  = "Transmission ended"
	ValidatingJWT        = "Validating JSON web token"
	CORSIgnored          = "CORS ignoring OPTION method"
	WebRequest           = "Web server request received"
	JWTSecretSet         = "JSON web token secret is set"
	AttachmentSaved      = "Attachment saved"
	AttachmentDeleted    = "Attachment deleted"
	AttachmentDownloaded = "Attachment downloaded"
	CacheHeaders         = "Applying headers for caching"
)

Informative messages

View Source
const (
	// NodeEnv Sets the Node environment to configure the application for a specific uses:
	//
	//  - `test`: used with unit testing and code coverage
	//  - `development`: for use while developing the application
	//  - `staging`: environment for various usability tests prior to releasing to production
	//  - `production`: minify and optimize all possible assets for optimal use
	//
	// Target: Front-end (web)
	// Default: `development`
	// Values: `test` | `development` | `staging` | `production`
	NodeEnv = "NODE_ENV"

	// GolangEnv Sets the Go environment to configure the application for specific uses:
	//
	//  - `test`: used with unit testing and code coverage
	//  - `development`: for use while developing the application
	//  - `staging`: environment for various usability tests prior to releasing to production
	//  - `production`: compiled for production use only minimum required assets (does **not** include test accounts)
	//
	// Target: Back-end (api)
	// Default: `development`
	// Values: `test` | `development` | `staging` | `production`
	GolangEnv = "GOLANG_ENV"

	// LogLevel Log level for the back-end API. The default source for logging will be standard outputs (`stdout` and `stderr`).
	//
	// Target: Back-end (api)
	// Default: `warning`
	// Values: `debug` | `info` | `warning` | `error` | `fatal` | `panic`
	LogLevel = "LOG_LEVEL"

	// LogFile Path to the local file system log file.
	//
	// Logging to file may be used in conjunction with other logging sources.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	LogFile = "LOG_FILE"

	// LogDirectory Path to the local file system log file.
	//
	// Logging to file may be used in conjunction with other logging sources.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	LogDirectory = "LOG_DIRECTORY"

	// LogSyslog Connection string for a `syslog` server such as `udp://logserver:514`. Both TCP and UDP are supported.
	//
	// Logging to `syslog` may be used in conjunction with other logging sources.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	// Values: `{protocol}://{host}:{port}`
	LogSyslog = "LOG_SYSLOG"

	// LogSyslogCert Providing a path to the PEM certificate will convert all `syslog` communication to use TLS. Only TCP + TLS is supported making the connection string `tcp://logserver:514`.
	//
	// Logging to `syslog` may be used in conjunction with other logging sources.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	LogSyslogCert = "LOG_SYSLOG_CERT"

	// SessionTimeout Session timeout in minutes. Periods of inactivity falling outside of the threshold will be considered invalid and are required to be re-authenticated.
	//
	// Target: Back-end (api)
	// Default: `15`
	SessionTimeout = "SESSION_TIMEOUT"

	// APIRedirect Front-end URL for the back-end to redirect responses to. If this value is not set it will redirect to the same server host but on port 80.
	//
	// Target: Back-end (api)
	// Default: `{server_protocol}://{server_host}`
	APIRedirect = "API_REDIRECT"

	// APIBaseURL Back-end URL for the front-end to direct requests to.
	//
	// Target: Front-end (web), Back-end (api)
	// Default: `{server_protocol}://{server_host}:{server_port}/api`
	APIBaseURL = "API_BASE_URL"

	// Port Port to use for back-end API.
	//
	// Target: Back-end (api)
	// Default: `3000`
	Port = "PORT"

	// HashRouting Flag to enable hash routing. This should only be used in scenarios where push state is not an option.
	//
	// Target: Front-end (web)
	// Default: False: *empty*
	// Values: True: `1`, False: *empty*
	HashRouting = "HASH_ROUTING"

	// DbMigrationTarget Target a specific database migration step for example, `20180212130825_account_lock.sql`. By specifying a target then when migrations are ran it will try to step down **or** up until the target is reached. By not providing a value migrations will always attempt to go to the latest version.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	DbMigrationTarget = "DB_MIGRATION_TARGET"

	// DatabaseURI PostgreSQL database connection string. If a value is set do no set other database connection information.
	//
	// Target: Back-end (api)
	// Default: *none*
	// Values: `postgres://{db-username}:{db-password}@{db-host}:5432/{db-name}`
	DatabaseURI = "DATABASE_URI"

	// DatabaseUser PostgreSQL database user name.
	//
	// Target: Back-end (api)
	// Default: `postgres`
	DatabaseUser = "DATABASE_USER"

	// DatabasePassword PostgreSQL database password.
	//
	// Target: Back-end (api)
	// Default: *none*
	DatabasePassword = "DATABASE_PASSWORD"

	// DatabaseName PostgreSQL database instance name.
	//
	// Target: Back-end (api)
	// Default: `postgres`
	DatabaseName = "DATABASE_NAME"

	// DatabaseHost PostgreSQL database host name and port.
	//
	// Target: Back-end (api)
	// Default: `localhost:5432`
	DatabaseHost = "DATABASE_HOST"

	// CORSAllowed Whitelist of address(es) for cross-origin resource sharing (CORS). CORS restricts resources (e.g. fonts, scripts, images) on a web page to be requested from another domain outside of the domain from which it is served.
	//
	// Examples
	//
	// | Type               | Example                            |
	// | ------------------ | ---------------------------------- |
	// | explicit           | http://localhost                   |
	// | multiple           | http://localhost;https://test\.com |
	// | wildcard           | *                                  |
	// | regular expression | https?://localhost                 |
	//
	// Target: Back-end (api)
	// Default: *empty*
	CORSAllowed = "CORS_ALLOWED"

	// FlushStorage Flag to enable flushing of persisted information for an account during the logon process.
	//
	// Target: Back-end (api)
	// Default: False: *empty*
	// Values: True: `1`, False: *empty*
	FlushStorage = "FLUSH_STORAGE"

	// UspsAPIKey United States Postal Service (USPS) API key for address validation.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	UspsAPIKey = "USPS_API_API_KEY"

	// JwtSecret The HS512 algorithm is used to sign each JavaScript Web Token using a secret random key of at least 512-bits. For example, `openssl rand 64 | base64 --wrap=0` generates an appropriate key. If this value is not specified, one will be automatically generated unique to the instance.
	//
	// Target: Back-end (api)
	// Default: *none*
	JwtSecret = "JWT_SECRET"

	// BasicEnabled Flag to enable basic username and password authentication.
	//
	// Target: Front-end (web), Back-end (api)
	// Default: False: *empty*
	// Values: True: `1`, False: *empty*
	BasicEnabled = "BASIC_ENABLED"

	// SamlEnabled Flag to enable SAML authentication.
	//
	// Target: Front-end (web), Back-end (api)
	// Default: False: *empty*
	// Values: True: `1`, False: *empty*
	SamlEnabled = "SAML_ENABLED"

	// SamlPublicCert File path (absolute or relative) to SAML public certificate.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	SamlPublicCert = "SAML_PUBLIC_CERT"

	// SamlPrivateCert File path (absolute or relative) to SAML private certificate.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	SamlPrivateCert = "SAML_PRIVATE_CERT"

	// SamlIdpSsoURL Endpoint to SAML 2.0 Single Sign-On (SSO) identity provider. The client will be redirected to this URL to complete the authentication process. This value will be provided by the IdAM configuration settings.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	SamlIdpSsoURL = "SAML_IDP_SSO_URL"

	// SamlIdpSsoDescURL The identity provider's issuer URL. This value will be provided by the IdAM configuration settings.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	SamlIdpSsoDescURL = "SAML_IDP_SSO_DESC_URL"

	// SamlIdpPublicCert File path (absolute or relative) to identity data provider's public certificate (X.509 PEM) used to verify the authentication response signature. This certificate will be provided by the IdAM solution.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	SamlIdpPublicCert = "SAML_IDP_PUBLIC_CERT"

	// SamlSignRequest Flag to enable signing of SAML 2.0 requests.
	//
	// Target: Back-end (api)
	// Default: False: *empty*
	// Values: True: `1`, False: *empty*
	SamlSignRequest = "SAML_SIGN_REQUEST"

	// SamlVerifyInsecure Flag to allow insecure validation of SAML 2.0 responses.
	//
	// Target: Back-end (api)
	// Default: False: *empty*
	// Values: True: `1`, False: *empty*
	SamlVerifyInsecure = "SAML_VERIFY_INSECURE"

	// SamlConsumerServiceURL Endpoint for assertion consumer service. After authentication is completed the customer will be redirected to this endpoint for local processes to verify and handle the response.
	//
	// Target: Back-end (api)
	// Default: `{API_BASE_URL}/auth/saml/callback`
	SamlConsumerServiceURL = "SAML_CONSUMER_SERVICE_URL"

	// TLSCert File path (absolute or relative) to TLS public certificate (X.509 PEM) certificate for use with the back-end API.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	TLSCert = "TLS_CERT"

	// TLSKey File path (absolute or relative) to TLS private key (X.509 PEM) for use the back-end API.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	TLSKey = "TLS_KEY"

	// WsEnabled Allows requests to be made to the eqip web service.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	WsEnabled = "WS_ENABLED"

	// WsURL The endpoint for the OPM web service used to submit the package for investigation.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	WsURL = "WS_URL"

	// WsKey File path to private certificate key (PKCS#8 DER) used to sign security tokens for the OPM web service.
	//
	// Target: Back-end (api)
	// Default: *not enabled*
	WsKey = "WS_KEY"

	// WsCallerinfoAgencyID Provided by OPM representing the caller's agency.
	//
	// Target: Back-end (api)
	// Default: *empty*
	WsCallerinfoAgencyID = "WS_CALLERINFO_AGENCY_ID"

	// WsCallerinfoAgencyUserSSN Provided by OPM representing the caller's agency user making the web service call. The value **should not** be a valid SSN.
	//
	// Target: Back-end (api)
	// Default: *empty*
	WsCallerinfoAgencyUserSSN = "WS_CALLERINFO_AGENCY_USER_SSN"

	// WsCallerinfoAgencyUserPseudossn Flag representing whether or not the caller has an SSN.
	//
	// Target: Back-end (api)
	// Default: *empty*
	// Values: True: `1`, False: `0`
	WsCallerinfoAgencyUserPseudossn = "WS_CALLERINFO_AGENCY_USER_PSEUDOSSN"

	// WsAgencyID Provided by OPM representing the destination agency.
	//
	// Target: Back-end (api)
	// Default: *empty*
	WsAgencyID = "WS_AGENCY_ID"

	// WsAgencyGroupID Provided by OPM representing the destination agency's group.
	//
	// Target: Back-end (api)
	// Default: *empty*
	WsAgencyGroupID = "WS_AGENCY_GROUP_ID"

	// AttachmentsEnabled Flag representing whether or not attachments are allowed.
	//
	// Target: Front-end (web), Back-end (api)
	// Default: True: `1`
	// Values: True: `1`, False: *empty*
	AttachmentsEnabled = "ATTACHMENTS_ENABLED"

	// FileMaximumSize Is the maximum file size of an attachment allowed in bytes.
	//
	// Target: Front-end (web), Back-end (api)
	// Default: 5000000
	FileMaximumSize = "FILE_MAXIMUM_SIZE"

	// FileTypes Allowed file types of an attachment.
	//
	// Target: Front-end (web), Back-end (api)
	// Default: ".tiff;.png;.pdf"
	FileTypes = "FILE_TYPES"
)

Variables

View Source
var (
	// ErrPasswordDoesNotMatch is an error when a user inputs an invalid password
	ErrPasswordDoesNotMatch = errors.New("Password does not match")

	// ErrAccoundDoesNotExist is an error when a users account does not exist
	ErrAccoundDoesNotExist = errors.New("Account does not exist")

	// ErrDatastoreConnection is an error when a database connection cannot be made
	ErrDatastoreConnection = errors.New("Unable to connect to datastore")
)

Functions

func Application added in v0.5.3

func Application(context DatabaseService, account int, hashable bool) []byte

Application returns the application state in JSON format.

func ApplicationData added in v0.5.3

func ApplicationData(context DatabaseService, account int, hashable bool) (map[string]interface{}, error)

ApplicationData returns the entire application in a JSON structure.

func Hash added in v0.5.3

func Hash(context DatabaseService, account int) string

Hash returns the SHA256 hash of the application state in hexadecimal

func Metadata added in v0.5.3

func Metadata(context DatabaseService, account int, locked bool) []byte

Metadata returns the application metadata.

func Package added in v0.5.3

func Package(context DatabaseService, xml XMLService, account int, hashable bool) (template.HTML, error)

Package an application for transmitting to cold storage

func PurgeAccountStorage added in v0.5.3

func PurgeAccountStorage(context DatabaseService, account int)

PurgeAccountStorage removes all data associated with an account

Types

type Account added in v0.5.3

type Account struct {
	ID        int
	Username  string
	Firstname string
	Lastname  string
	Token     string
	TokenUsed bool
	Email     string
	Locked    bool
}

Account represents a user account

func (*Account) BasicAuthentication added in v0.5.3

func (entity *Account) BasicAuthentication(context DatabaseService, password string) error

BasicAuthentication checks if the username and password are valid and returns the users account

func (*Account) Delete added in v0.5.3

func (entity *Account) Delete(context DatabaseService, account int) (int, error)

Delete the Account entity.

func (*Account) Find added in v0.5.3

func (entity *Account) Find(context DatabaseService) error

Find will search for account by `username` if no identifier is present or by ID if it is.

func (*Account) Get added in v0.5.3

func (entity *Account) Get(context DatabaseService, account int) (int, error)

Get the Account entity.

func (*Account) GetID added in v0.5.3

func (entity *Account) GetID() int

GetID returns the entity identifier.

func (*Account) Lock added in v0.5.3

func (entity *Account) Lock(context DatabaseService) error

Lock will mark the account in a `locked` status.

func (*Account) Save added in v0.5.3

func (entity *Account) Save(context DatabaseService, account int) (int, error)

Save the Account entity.

func (*Account) SetID added in v0.5.3

func (entity *Account) SetID(id int)

SetID sets the entity identifier.

func (*Account) Unlock added in v0.5.3

func (entity *Account) Unlock(context DatabaseService) error

Unlock will mark the account in an `unlocked` status.

type ArchivalPdf added in v0.5.6

type ArchivalPdf struct {
	Name     string // document type name shown to users (e.g, Certification, Medical Release, etc.)
	Template string // filename of PDF template that will be populated
	Section  string // eApp sub-section where signature information is stored
	DocType  string // document type derived from e-QIP (e.g., CER, MEL, etc.)
}

An ArchivalPdf represents a PDF (Portable Document Format) file that needs to be retained and submitted to e-QIP.

type Attachment added in v0.5.3

type Attachment struct {
	ID          int    `json:"id"`
	AccountID   int    `json:"-"`
	Description string `json:"description"`
	Filename    string `json:"filename"`
	Size        int64  `json:"size"`
	DocType     string `json:"docType"`
	Raw         []byte `json:"-"`
}

Attachment stores information in regards to a file associated with the application.

func (*Attachment) Delete added in v0.5.3

func (entity *Attachment) Delete(context DatabaseService, account int) (int, error)

Delete the attachment.

func (*Attachment) Find added in v0.5.3

func (entity *Attachment) Find(context DatabaseService) error

Find is not used for attachments. Please use the `Get` method.

func (*Attachment) Get added in v0.5.3

func (entity *Attachment) Get(context DatabaseService, account int) (int, error)

Get the attachment.

func (*Attachment) GetID added in v0.5.3

func (entity *Attachment) GetID() int

GetID returns the entity identifier.

func (*Attachment) Marshal added in v0.5.3

func (entity *Attachment) Marshal() Payload

Marshal to payload structure

func (*Attachment) Save added in v0.5.3

func (entity *Attachment) Save(context DatabaseService, account int) (int, error)

Save the attachment.

func (*Attachment) SetID added in v0.5.3

func (entity *Attachment) SetID(id int)

SetID sets the entity identifier.

func (*Attachment) Unmarshal added in v0.5.3

func (entity *Attachment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Attachment) Valid added in v0.5.3

func (entity *Attachment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type BasicAuthMembership added in v0.5.3

type BasicAuthMembership struct {
	ID           int
	AccountID    int
	Account      *Account
	PasswordHash string
	Created      time.Time
}

BasicAuthMembership stores basic authentication information for the account.

func (*BasicAuthMembership) Delete added in v0.5.3

func (entity *BasicAuthMembership) Delete(context DatabaseService, account int) (int, error)

Delete the basic membership.

func (*BasicAuthMembership) Find added in v0.5.3

func (entity *BasicAuthMembership) Find(context DatabaseService) error

Find the basic membership.

func (*BasicAuthMembership) Get added in v0.5.3

func (entity *BasicAuthMembership) Get(context DatabaseService, account int) (int, error)

Get the basic membership.

func (*BasicAuthMembership) GetID added in v0.5.3

func (entity *BasicAuthMembership) GetID() int

GetID returns the entity identifier.

func (*BasicAuthMembership) HashPassword added in v0.5.3

func (entity *BasicAuthMembership) HashPassword(password string) error

HashPassword converts a plaintext password and generates a hash and updates the `PasswordHash` value.

func (*BasicAuthMembership) PasswordMatch added in v0.5.3

func (entity *BasicAuthMembership) PasswordMatch(password string) bool

PasswordMatch determines if a plain text password matches its equivalent password hash.

func (*BasicAuthMembership) Save added in v0.5.3

func (entity *BasicAuthMembership) Save(context DatabaseService, account int) (int, error)

Save the basic membership.

func (*BasicAuthMembership) SetID added in v0.5.3

func (entity *BasicAuthMembership) SetID(id int)

SetID sets the entity identifier.

type Benefit added in v0.5.3

type Benefit struct {
	PayloadBegin                Payload `json:"Began,omitempty" sql:"-"`
	PayloadEnd                  Payload `json:"End,omitempty" sql:"-"`
	PayloadFrequency            Payload `json:"Frequency,omitempty" sql:"-"`
	PayloadOtherFrequency       Payload `json:"OtherFrequency,omitempty" sql:"-"`
	PayloadReceived             Payload `json:"Received,omitempty" sql:"-"`
	PayloadCountry              Payload `json:"Country" sql:"-"`
	PayloadValue                Payload `json:"Value" sql:"-"`
	PayloadValueEstimated       Payload `json:"ValueEstimated" sql:"-"`
	PayloadReason               Payload `json:"Reason" sql:"-"`
	PayloadObligated            Payload `json:"Obligated" sql:"-"`
	PayloadObligatedExplanation Payload `json:"ObligatedExplanation" sql:"-"`

	// Validator specific fields
	Begin                *DateControl `json:"-"`
	End                  *DateControl `json:"-"`
	Frequency            *Radio       `json:"-"`
	OtherFrequency       *Textarea    `json:"-"`
	Received             *DateControl `json:"-"`
	Country              *Country     `json:"-"`
	Value                *Number      `json:"-"`
	ValueEstimated       *Checkbox    `json:"-"`
	Reason               *Textarea    `json:"-"`
	Obligated            *Branch      `json:"-"`
	ObligatedExplanation *Textarea    `json:"-"`

	// Persister specific fields
	ID                     int `json:"-"`
	AccountID              int `json:"-"`
	BeginID                int `json:"-" pg:",fk:Begin"`
	EndID                  int `json:"-" pg:",fk:End"`
	FrequencyID            int `json:"-" pg:",fk:Frequency"`
	OtherFrequencyID       int `json:"-" pg:",fk:OtherFrequency"`
	ReceivedID             int `json:"-" pg:",fk:Received"`
	CountryID              int `json:"-" pg:",fk:Country"`
	ValueID                int `json:"-" pg:",fk:Value"`
	ValueEstimatedID       int `json:"-" pg:",fk:ValueEstimated"`
	ReasonID               int `json:"-" pg:",fk:Reason"`
	ObligatedID            int `json:"-" pg:",fk:Obligated"`
	ObligatedExplanationID int `json:"-" pg:",fk:ObligatedExplanation"`
}

Benefit payload type.

func (*Benefit) Delete added in v0.5.3

func (entity *Benefit) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*Benefit) Find added in v0.5.3

func (entity *Benefit) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Benefit) Get added in v0.5.3

func (entity *Benefit) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*Benefit) GetID added in v0.5.3

func (entity *Benefit) GetID() int

GetID returns the entity identifier.

func (*Benefit) Marshal added in v0.5.3

func (entity *Benefit) Marshal() Payload

Marshal to payload structure

func (*Benefit) Save added in v0.5.3

func (entity *Benefit) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*Benefit) SetID added in v0.5.3

func (entity *Benefit) SetID(id int)

SetID sets the entity identifier.

func (*Benefit) Unmarshal added in v0.5.3

func (entity *Benefit) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Benefit) Valid added in v0.5.3

func (entity *Benefit) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Branch added in v0.5.3

type Branch struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Branch is a basic yes/no input.

func (*Branch) Delete added in v0.5.3

func (entity *Branch) Delete(context DatabaseService, account int) (int, error)

Delete the Branch entity.

func (*Branch) Find added in v0.5.3

func (entity *Branch) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Branch) Get added in v0.5.3

func (entity *Branch) Get(context DatabaseService, account int) (int, error)

Get the Branch entity.

func (*Branch) GetID added in v0.5.3

func (entity *Branch) GetID() int

GetID returns the entity identifier.

func (*Branch) Marshal added in v0.5.3

func (entity *Branch) Marshal() Payload

Marshal to payload structure

func (*Branch) Save added in v0.5.3

func (entity *Branch) Save(context DatabaseService, account int) (int, error)

Save the Branch entity.

func (*Branch) SetID added in v0.5.3

func (entity *Branch) SetID(id int)

SetID sets the entity identifier.

func (*Branch) Unmarshal added in v0.5.3

func (entity *Branch) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Branch) Valid added in v0.5.3

func (entity *Branch) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Checkbox added in v0.5.3

type Checkbox struct {
	ID      int    `json:"-"`
	Value   string `json:"value"`
	Checked bool   `json:"checked,omitempty"`
}

Checkbox is a basic input.

func (*Checkbox) Delete added in v0.5.3

func (entity *Checkbox) Delete(context DatabaseService, account int) (int, error)

Delete the checkbox from data storage.

func (*Checkbox) Find added in v0.5.3

func (entity *Checkbox) Find(context DatabaseService) error

Find is not used for checkboxes. Please use the `Get` method.

func (*Checkbox) Get added in v0.5.3

func (entity *Checkbox) Get(context DatabaseService, account int) (int, error)

Get the checkbox from data storage.

func (*Checkbox) GetID added in v0.5.3

func (entity *Checkbox) GetID() int

GetID returns the entity identifier.

func (*Checkbox) Marshal added in v0.5.3

func (entity *Checkbox) Marshal() Payload

Marshal to payload structure

func (*Checkbox) Save added in v0.5.3

func (entity *Checkbox) Save(context DatabaseService, account int) (int, error)

Save the checkbox to data storage.

func (*Checkbox) SetID added in v0.5.3

func (entity *Checkbox) SetID(id int)

SetID sets the entity identifier.

func (*Checkbox) Unmarshal added in v0.5.3

func (entity *Checkbox) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Checkbox) Valid added in v0.5.3

func (entity *Checkbox) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CheckboxGroup added in v0.5.3

type CheckboxGroup struct {
	ID     int      `json:"-"`
	Values []string `json:"values"`
}

CheckboxGroup is a basic input.

func (*CheckboxGroup) Delete added in v0.5.3

func (entity *CheckboxGroup) Delete(context DatabaseService, account int) (int, error)

Delete the checkbox group to data storage.

func (*CheckboxGroup) Find added in v0.5.3

func (entity *CheckboxGroup) Find(context DatabaseService) error

Find is not used for checkbox groups. Please use the `Get` method.

func (*CheckboxGroup) Get added in v0.5.3

func (entity *CheckboxGroup) Get(context DatabaseService, account int) (int, error)

Get the checkbox group to data storage.

func (*CheckboxGroup) GetID added in v0.5.3

func (entity *CheckboxGroup) GetID() int

GetID returns the entity identifier.

func (*CheckboxGroup) Marshal added in v0.5.3

func (entity *CheckboxGroup) Marshal() Payload

Marshal to payload structure

func (*CheckboxGroup) Save added in v0.5.3

func (entity *CheckboxGroup) Save(context DatabaseService, account int) (int, error)

Save the checkbox group to data storage.

func (*CheckboxGroup) SetID added in v0.5.3

func (entity *CheckboxGroup) SetID(id int)

SetID sets the entity identifier.

func (*CheckboxGroup) Unmarshal added in v0.5.3

func (entity *CheckboxGroup) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CheckboxGroup) Valid added in v0.5.3

func (entity *CheckboxGroup) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipComments added in v0.5.3

type CitizenshipComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

CitizenshipComments represents the payload for the citizenship comments section.

func (*CitizenshipComments) Delete added in v0.5.3

func (entity *CitizenshipComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipComments) Find added in v0.5.3

func (entity *CitizenshipComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*CitizenshipComments) Get added in v0.5.3

func (entity *CitizenshipComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipComments) GetID added in v0.5.3

func (entity *CitizenshipComments) GetID() int

GetID returns the entity identifier.

func (*CitizenshipComments) Marshal added in v0.5.3

func (entity *CitizenshipComments) Marshal() Payload

Marshal to payload structure

func (*CitizenshipComments) Save added in v0.5.3

func (entity *CitizenshipComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*CitizenshipComments) SetID added in v0.5.3

func (entity *CitizenshipComments) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipComments) Unmarshal added in v0.5.3

func (entity *CitizenshipComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipComments) Valid added in v0.5.3

func (entity *CitizenshipComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipMultiple added in v0.5.3

type CitizenshipMultiple struct {
	PayloadHasMultiple Payload `json:"HasMultiple" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasMultiple *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasMultipleID int `json:"-" pg:", fk:HasMultiple"`
	ListID        int `json:"-" pg:", fk:List"`
}

CitizenshipMultiple represents the payload for the citizenship multiple section.

func (*CitizenshipMultiple) Delete added in v0.5.3

func (entity *CitizenshipMultiple) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipMultiple) Find added in v0.5.3

func (entity *CitizenshipMultiple) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*CitizenshipMultiple) Get added in v0.5.3

func (entity *CitizenshipMultiple) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipMultiple) GetID added in v0.5.3

func (entity *CitizenshipMultiple) GetID() int

GetID returns the entity identifier.

func (*CitizenshipMultiple) Marshal added in v0.5.3

func (entity *CitizenshipMultiple) Marshal() Payload

Marshal to payload structure

func (*CitizenshipMultiple) Save added in v0.5.3

func (entity *CitizenshipMultiple) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*CitizenshipMultiple) SetID added in v0.5.3

func (entity *CitizenshipMultiple) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipMultiple) Unmarshal added in v0.5.3

func (entity *CitizenshipMultiple) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipMultiple) Valid added in v0.5.3

func (entity *CitizenshipMultiple) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipPassports added in v0.5.3

type CitizenshipPassports struct {
	PayloadPassports Payload `json:"Passports" sql:"-"`

	// Validator specific fields
	Passports *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	PassportsID int `json:"-" pg:", fk:Passports"`
}

CitizenshipPassports represents the payload for the citizenship passports section.

func (*CitizenshipPassports) Delete added in v0.5.3

func (entity *CitizenshipPassports) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipPassports) Find added in v0.5.3

func (entity *CitizenshipPassports) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*CitizenshipPassports) Get added in v0.5.3

func (entity *CitizenshipPassports) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipPassports) GetID added in v0.5.3

func (entity *CitizenshipPassports) GetID() int

GetID returns the entity identifier.

func (*CitizenshipPassports) Marshal added in v0.5.3

func (entity *CitizenshipPassports) Marshal() Payload

Marshal to payload structure

func (*CitizenshipPassports) Save added in v0.5.3

func (entity *CitizenshipPassports) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*CitizenshipPassports) SetID added in v0.5.3

func (entity *CitizenshipPassports) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipPassports) Unmarshal added in v0.5.3

func (entity *CitizenshipPassports) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipPassports) Valid added in v0.5.3

func (entity *CitizenshipPassports) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CitizenshipStatus added in v0.5.3

type CitizenshipStatus struct {
	PayloadCitizenshipStatus           Payload `json:"CitizenshipStatus" sql:"-"`
	PayloadAbroadDocumentation         Payload `json:"AbroadDocumentation" sql:"-"`
	PayloadExplanation                 Payload `json:"Explanation" sql:"-"`
	PayloadDocumentNumber              Payload `json:"DocumentNumber" sql:"-"`
	PayloadDocumentIssued              Payload `json:"DocumentIssued" sql:"-"`
	PayloadDocumentName                Payload `json:"DocumentName" sql:"-"`
	PayloadDocumentExpiration          Payload `json:"DocumentExpiration" sql:"-"`
	PayloadDocumentType                Payload `json:"DocumentType" sql:"-"`
	PayloadPlaceIssued                 Payload `json:"PlaceIssued" sql:"-"`
	PayloadCertificateNumber           Payload `json:"CertificateNumber" sql:"-"`
	PayloadCertificateIssued           Payload `json:"CertificateIssued" sql:"-"`
	PayloadCertificateName             Payload `json:"CertificateName" sql:"-"`
	PayloadCertificateCourtName        Payload `json:"CertificateCourtName" sql:"-"`
	PayloadCertificateCourtAddress     Payload `json:"CertificateCourtAddress" sql:"-"`
	PayloadBornOnMilitaryInstallation  Payload `json:"BornOnMilitaryInstallation" sql:"-"`
	PayloadMilitaryBase                Payload `json:"MilitaryBase" sql:"-"`
	PayloadEntryDate                   Payload `json:"EntryDate" sql:"-"`
	PayloadEntryLocation               Payload `json:"EntryLocation" sql:"-"`
	PayloadPriorCitizenship            Payload `json:"PriorCitizenship" sql:"-"`
	PayloadHasAlienRegistration        Payload `json:"HasAlienRegistration" sql:"-"`
	PayloadAlienRegistrationNumber     Payload `json:"AlienRegistrationNumber" sql:"-"`
	PayloadAlienRegistrationExpiration Payload `json:"AlienRegistrationExpiration" sql:"-"`
	PayloadBasis                       Payload `json:"Basis" sql:"-"`
	PayloadPermanentResidentCardNumber Payload `json:"PermanentResidentCardNumber" sql:"-"`
	PayloadResidenceStatus             Payload `json:"ResidenceStatus" sql:"-"`

	// Validator specific fields
	CitizenshipStatus           *Radio       `json:"-"`
	AbroadDocumentation         *Radio       `json:"-"`
	Explanation                 *Textarea    `json:"-"`
	DocumentNumber              *Text        `json:"-"`
	DocumentIssued              *DateControl `json:"-"`
	DocumentName                *Name        `json:"-"`
	DocumentExpiration          *DateControl `json:"-"`
	DocumentType                *Radio       `json:"-"`
	PlaceIssued                 *Location    `json:"-"`
	CertificateNumber           *Text        `json:"-"`
	CertificateIssued           *DateControl `json:"-"`
	CertificateName             *Name        `json:"-"`
	CertificateCourtName        *Text        `json:"-"`
	CertificateCourtAddress     *Location    `json:"-"`
	BornOnMilitaryInstallation  *Branch      `json:"-"`
	MilitaryBase                *Text        `json:"-"`
	EntryDate                   *DateControl `json:"-"`
	EntryLocation               *Location    `json:"-"`
	PriorCitizenship            *Country     `json:"-"`
	HasAlienRegistration        *Branch      `json:"-"`
	AlienRegistrationNumber     *Text        `json:"-"`
	AlienRegistrationExpiration *DateControl `json:"-"`
	Basis                       *Radio       `json:"-"`
	PermanentResidentCardNumber *Text        `json:"-"`
	ResidenceStatus             *Text        `json:"-"`

	// Persister specific fields
	ID                            int `json:"-"`
	CitizenshipStatusID           int `json:"-" pg:", fk:CitizenshipStatus"`
	AbroadDocumentationID         int `json:"-" pg:", fk:AbroadDocumentation"`
	ExplanationID                 int `json:"-" pg:", fk:Explanation"`
	DocumentNumberID              int `json:"-" pg:", fk:DocumentNumber"`
	DocumentIssuedID              int `json:"-" pg:", fk:DocumentIssued"`
	DocumentNameID                int `json:"-" pg:", fk:DocumentName"`
	DocumentExpirationID          int `json:"-" pg:", fk:DocumentExpiration"`
	DocumentTypeID                int `json:"-" pg:", fk:DocumentType"`
	PlaceIssuedID                 int `json:"-" pg:", fk:PlaceIssued"`
	CertificateNumberID           int `json:"-" pg:", fk:CertificateNumber"`
	CertificateIssuedID           int `json:"-" pg:", fk:CertificateIssued"`
	CertificateNameID             int `json:"-" pg:", fk:CertificateName"`
	CertificateCourtNameID        int `json:"-" pg:", fk:CertificateCourtName"`
	CertificateCourtAddressID     int `json:"-" pg:", fk:CertificateCourtAddress"`
	BornOnMilitaryInstallationID  int `json:"-" pg:", fk:BornOnMilitaryInstallation"`
	MilitaryBaseID                int `json:"-" pg:", fk:MilitaryBase"`
	EntryDateID                   int `json:"-" pg:", fk:EntryDate"`
	EntryLocationID               int `json:"-" pg:", fk:EntryLocation"`
	PriorCitizenshipID            int `json:"-" pg:", fk:PriorCitizenship"`
	HasAlienRegistrationID        int `json:"-" pg:", fk:HasAlienRegistration"`
	AlienRegistrationNumberID     int `json:"-" pg:", fk:AlienRegistrationNumber"`
	AlienRegistrationExpirationID int `json:"-" pg:", fk:AlienRegistrationExpiration"`
	BasisID                       int `json:"-" pg:", fk:Basis"`
	PermanentResidentCardNumberID int `json:"-" pg:", fk:PermanentResidentCardNumber"`
	ResidenceStatusID             int `json:"-" pg:", fk:ResidenceStatus"`
}

CitizenshipStatus represents the payload for the citizenship status section.

func (*CitizenshipStatus) Delete added in v0.5.3

func (entity *CitizenshipStatus) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*CitizenshipStatus) Find added in v0.5.3

func (entity *CitizenshipStatus) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*CitizenshipStatus) Get added in v0.5.3

func (entity *CitizenshipStatus) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*CitizenshipStatus) GetID added in v0.5.3

func (entity *CitizenshipStatus) GetID() int

GetID returns the entity identifier.

func (*CitizenshipStatus) Marshal added in v0.5.3

func (entity *CitizenshipStatus) Marshal() Payload

Marshal to payload structure

func (*CitizenshipStatus) Save added in v0.5.3

func (entity *CitizenshipStatus) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*CitizenshipStatus) SetID added in v0.5.3

func (entity *CitizenshipStatus) SetID(id int)

SetID sets the entity identifier.

func (*CitizenshipStatus) Unmarshal added in v0.5.3

func (entity *CitizenshipStatus) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CitizenshipStatus) Valid added in v0.5.3

func (entity *CitizenshipStatus) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CivilUnion added in v0.5.3

type CivilUnion struct {
	PayloadAddress                       Payload `json:"Address" sql:"-"`
	PayloadAddressSeparated              Payload `json:"AddressSeparated" sql:"-"`
	PayloadAddressSeparatedNotApplicable Payload `json:"AddressSeparatedNotApplicable" sql:"-"`
	PayloadBirthPlace                    Payload `json:"BirthPlace" sql:"-"`
	PayloadBirthdate                     Payload `json:"Birthdate" sql:"-"`
	PayloadCitizenship                   Payload `json:"Citizenship" sql:"-"`
	PayloadDateSeparated                 Payload `json:"DateSeparated" sql:"-"`
	PayloadDivorced                      Payload `json:"Divorced" sql:"-"`
	PayloadEmail                         Payload `json:"Email" sql:"-"`
	PayloadEnteredCivilUnion             Payload `json:"EnteredCivilUnion" sql:"-"`
	PayloadForeignBornDocument           Payload `json:"ForeignBornDocument" sql:"-"`
	PayloadLocation                      Payload `json:"Location" sql:"-"`
	PayloadName                          Payload `json:"Name" sql:"-"`
	PayloadOtherNames                    Payload `json:"OtherNames" sql:"-"`
	PayloadSSN                           Payload `json:"SSN" sql:"-"`
	PayloadSeparated                     Payload `json:"Separated" sql:"-"`
	PayloadTelephone                     Payload `json:"Telephone" sql:"-"`
	PayloadUseCurrentAddress             Payload `json:"UseCurrentAddress" sql:"-"`

	// Validator specific fields
	Address                       *Location            `json:"-"`
	AddressSeparated              *Location            `json:"-"`
	AddressSeparatedNotApplicable *NotApplicable       `json:"-"`
	BirthPlace                    *Location            `json:"-"`
	Birthdate                     *DateControl         `json:"-"`
	Citizenship                   *Country             `json:"-"`
	DateSeparated                 *DateControl         `json:"-"`
	Divorced                      *Branch              `json:"-"`
	Email                         *Email               `json:"-"`
	EnteredCivilUnion             *DateControl         `json:"-"`
	ForeignBornDocument           *ForeignBornDocument `json:"-"`
	Location                      *Location            `json:"-"`
	Name                          *Name                `json:"-"`
	OtherNames                    *Collection          `json:"-"`
	SSN                           *SSN                 `json:"-" sql:"-"`
	Separated                     *Branch              `json:"-"`
	Telephone                     *Telephone           `json:"-"`
	UseCurrentAddress             *NotApplicable       `json:"-"`

	// Persister specific fields
	ID                              int `json:"-" sql:",pk"`
	AccountID                       int `json:"-" sql:",pk"`
	AddressID                       int `json:"-"`
	AddressSeparatedID              int `json:"-"`
	AddressSeparatedNotApplicableID int `json:"-"`
	BirthPlaceID                    int `json:"-"`
	BirthdateID                     int `json:"-"`
	CitizenshipID                   int `json:"-"`
	DateSeparatedID                 int `json:"-"`
	DivorcedID                      int `json:"-"`
	EmailID                         int `json:"-"`
	EnteredCivilUnionID             int `json:"-"`
	ForeignBornDocumentID           int `json:"-"`
	LocationID                      int `json:"-"`
	NameID                          int `json:"-"`
	OtherNamesID                    int `json:"-"`
	SSNID                           int `json:"-"`
	SeparatedID                     int `json:"-"`
	TelephoneID                     int `json:"-"`
	UseCurrentAddressID             int `json:"-"`
}

CivilUnion is an item of named payloads.

func (*CivilUnion) Delete added in v0.5.3

func (entity *CivilUnion) Delete(context DatabaseService, account int) (int, error)

Delete the CivilUnion entity.

func (*CivilUnion) Find added in v0.5.3

func (entity *CivilUnion) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*CivilUnion) Get added in v0.5.3

func (entity *CivilUnion) Get(context DatabaseService, account int) (int, error)

Get the CivilUnion entity.

func (*CivilUnion) GetID added in v0.5.3

func (entity *CivilUnion) GetID() int

GetID returns the entity identifier.

func (*CivilUnion) Marshal added in v0.5.3

func (entity *CivilUnion) Marshal() Payload

Marshal to payload structure

func (*CivilUnion) Save added in v0.5.3

func (entity *CivilUnion) Save(context DatabaseService, account int) (int, error)

Save the CivilUnion entity.

func (*CivilUnion) SetID added in v0.5.3

func (entity *CivilUnion) SetID(id int)

SetID sets the entity identifier.

func (*CivilUnion) Unmarshal added in v0.5.3

func (entity *CivilUnion) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CivilUnion) Valid added in v0.5.3

func (entity *CivilUnion) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ClearanceLevel added in v0.5.3

type ClearanceLevel struct {
	PayloadLevel       Payload `json:"Level" sql:"-"`
	PayloadExplanation Payload `json:"Explanation" sql:"-"`

	// Validator specific fields
	Level       *Radio    `json:"-"`
	Explanation *Textarea `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	AccountID     int `json:"-"`
	LevelID       int `json:"-"`
	ExplanationID int `json:"-"`
}

ClearanceLevel is a basic input.

func (*ClearanceLevel) Delete added in v0.5.3

func (entity *ClearanceLevel) Delete(context DatabaseService, account int) (int, error)

Delete the ClearanceLevel entity.

func (*ClearanceLevel) Find added in v0.5.3

func (entity *ClearanceLevel) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ClearanceLevel) Get added in v0.5.3

func (entity *ClearanceLevel) Get(context DatabaseService, account int) (int, error)

Get the ClearanceLevel entity.

func (*ClearanceLevel) GetID added in v0.5.3

func (entity *ClearanceLevel) GetID() int

GetID returns the entity identifier.

func (*ClearanceLevel) Marshal added in v0.5.3

func (entity *ClearanceLevel) Marshal() Payload

Marshal to payload structure

func (*ClearanceLevel) Save added in v0.5.3

func (entity *ClearanceLevel) Save(context DatabaseService, account int) (int, error)

Save the ClearanceLevel entity.

func (*ClearanceLevel) SetID added in v0.5.3

func (entity *ClearanceLevel) SetID(id int)

SetID sets the entity identifier.

func (*ClearanceLevel) Unmarshal added in v0.5.3

func (entity *ClearanceLevel) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ClearanceLevel) Valid added in v0.5.3

func (entity *ClearanceLevel) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CoOwners added in v0.5.3

type CoOwners struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	ListID    int `json:"-"`
}

CoOwners payload.

func (*CoOwners) Delete added in v0.5.3

func (entity *CoOwners) Delete(context DatabaseService, account int) (int, error)

Delete the CoOwners entity.

func (*CoOwners) Find added in v0.5.3

func (entity *CoOwners) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*CoOwners) Get added in v0.5.3

func (entity *CoOwners) Get(context DatabaseService, account int) (int, error)

Get the CoOwners entity.

func (*CoOwners) GetID added in v0.5.3

func (entity *CoOwners) GetID() int

GetID returns the entity identifier.

func (*CoOwners) Marshal added in v0.5.3

func (entity *CoOwners) Marshal() Payload

Marshal to payload structure

func (*CoOwners) Save added in v0.5.3

func (entity *CoOwners) Save(context DatabaseService, account int) (int, error)

Save the CoOwners entity.

func (*CoOwners) SetID added in v0.5.3

func (entity *CoOwners) SetID(id int)

SetID sets the entity identifier.

func (*CoOwners) Unmarshal added in v0.5.3

func (entity *CoOwners) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*CoOwners) Valid added in v0.5.3

func (entity *CoOwners) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Collection added in v0.5.3

type Collection struct {
	PayloadBranch Payload `json:"branch" sql:"-"`

	// Validator specific fields
	Branch *Branch           `json:"-" sql:"-"`
	Items  []*CollectionItem `json:"items" sql:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	BranchID  int `json:"-" pg:",fk:Branch"`
}

Collection represents a structure composed of zero or more items.

func (*Collection) Delete added in v0.5.3

func (entity *Collection) Delete(context DatabaseService, account int) (int, error)

Delete the Collection entity.

func (*Collection) Find added in v0.5.3

func (entity *Collection) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Collection) Get added in v0.5.3

func (entity *Collection) Get(context DatabaseService, account int) (int, error)

Get the Collection entity.

func (*Collection) GetID added in v0.5.3

func (entity *Collection) GetID() int

GetID returns the entity identifier.

func (*Collection) Marshal added in v0.5.3

func (entity *Collection) Marshal() Payload

Marshal to payload structure

func (*Collection) Save added in v0.5.3

func (entity *Collection) Save(context DatabaseService, account int) (int, error)

Save the Collection entity.

func (*Collection) SetID added in v0.5.3

func (entity *Collection) SetID(id int)

SetID sets the entity identifier.

func (*Collection) Unmarshal added in v0.5.3

func (entity *Collection) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Collection) Valid added in v0.5.3

func (entity *Collection) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type CollectionItem added in v0.5.3

type CollectionItem struct {
	Item map[string]json.RawMessage `json:"Item" sql:"-"`

	ID     int    `json:"-" sql:",pk"`
	Index  int    `json:"-" sql:",pk"`
	Name   string `json:"-" sql:",pk"`
	Type   string `json:"-"`
	ItemID int    `json:"-"`
}

CollectionItem is an item of named payloads directly used in a `Collection`.

func (*CollectionItem) Delete added in v0.5.3

func (ci *CollectionItem) Delete(context DatabaseService, account, collectionID, index int) (int, error)

Delete the collection item

func (CollectionItem) Each added in v0.5.3

func (ci CollectionItem) Each(action func(string, string, Entity, error) error) error

Each loops through each entity in the collection item performing a given action

func (*CollectionItem) Find added in v0.5.3

func (ci *CollectionItem) Find(context DatabaseService) error

Find is not used for collection items. Please use the `Get` method.

func (*CollectionItem) Get added in v0.5.3

func (ci *CollectionItem) Get(context DatabaseService, account, collectionID, index int) (int, error)

Get the collection item

func (*CollectionItem) GetID added in v0.5.3

func (ci *CollectionItem) GetID() int

GetID returns the entity identifier.

func (*CollectionItem) Save added in v0.5.3

func (ci *CollectionItem) Save(context DatabaseService, account, collectionID, index int) (int, error)

Save the collection item

func (*CollectionItem) SetID added in v0.5.3

func (ci *CollectionItem) SetID(id int)

SetID sets the entity identifier.

func (*CollectionItem) Valid added in v0.5.3

func (ci *CollectionItem) Valid() (bool, error)

Valid iterates through each named property of an item validating each payload.

type Contacts added in v0.5.3

type Contacts struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	ListID    int `json:"-"`
}

Contacts payload.

func (*Contacts) Delete added in v0.5.3

func (entity *Contacts) Delete(context DatabaseService, account int) (int, error)

Delete the Contacts entity.

func (*Contacts) Find added in v0.5.3

func (entity *Contacts) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Contacts) Get added in v0.5.3

func (entity *Contacts) Get(context DatabaseService, account int) (int, error)

Get the Contacts entity.

func (*Contacts) GetID added in v0.5.3

func (entity *Contacts) GetID() int

GetID returns the entity identifier.

func (*Contacts) Marshal added in v0.5.3

func (entity *Contacts) Marshal() Payload

Marshal to payload structure

func (*Contacts) Save added in v0.5.3

func (entity *Contacts) Save(context DatabaseService, account int) (int, error)

Save the Contacts entity.

func (*Contacts) SetID added in v0.5.3

func (entity *Contacts) SetID(id int)

SetID sets the entity identifier.

func (*Contacts) Unmarshal added in v0.5.3

func (entity *Contacts) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Contacts) Valid added in v0.5.3

func (entity *Contacts) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Country added in v0.5.3

type Country struct {
	ID       int      `json:"-"`
	Value    []string `json:"value" pg:",array"`
	Comments string   `json:"comments,omitempty"`
}

Country is a basic input.

func (*Country) Delete added in v0.5.3

func (entity *Country) Delete(context DatabaseService, account int) (int, error)

Delete the country from data storage.

func (*Country) Find added in v0.5.3

func (entity *Country) Find(context DatabaseService) error

Find is not used for countries. Please use the `Get` method.

func (*Country) Get added in v0.5.3

func (entity *Country) Get(context DatabaseService, account int) (int, error)

Get the country from data storage.

func (*Country) GetID added in v0.5.3

func (entity *Country) GetID() int

GetID returns the entity identifier.

func (*Country) Marshal added in v0.5.3

func (entity *Country) Marshal() Payload

Marshal to payload structure

func (*Country) Save added in v0.5.3

func (entity *Country) Save(context DatabaseService, account int) (int, error)

Save the country to data storage.

func (*Country) SetID added in v0.5.3

func (entity *Country) SetID(id int)

SetID sets the entity identifier.

func (*Country) Unmarshal added in v0.5.3

func (entity *Country) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Country) Valid added in v0.5.3

func (entity *Country) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type DatabaseService added in v0.5.3

type DatabaseService interface {
	Configure()
	CheckTable(entity interface{}) error
	Raw(query interface{}, params ...interface{}) error
	Find(query interface{}, callback func(query interface{}))
	FindAll(model interface{}) error
	Where(model interface{}, condition string, params ...interface{}) error
	ColumnsWhere(model interface{}, columns []string, condition string, params ...interface{}) error
	Insert(query ...interface{}) error
	Update(query interface{}) error
	Save(query ...interface{}) error
	Delete(query interface{}) error
	Select(query interface{}) error
	Count(model interface{}, condition string, params ...interface{}) int
	CountExpr(model interface{}, expr string, retval interface{}, condition string, params ...interface{})
	Array(model interface{}, expr string, retval interface{}, condition string, params ...interface{})
}

DatabaseService represents a persisted data storage.

type DateControl added in v0.5.3

type DateControl struct {
	ID        int    `json:"-"`
	Month     string `json:"month"`
	Day       string `json:"day"`
	Year      string `json:"year"`
	Estimated bool   `json:"estimated"`
}

DateControl is a basic input.

func (*DateControl) Date added in v0.5.3

func (entity *DateControl) Date() time.Time

Date is composed from the structure properties

func (*DateControl) Delete added in v0.5.3

func (entity *DateControl) Delete(context DatabaseService, account int) (int, error)

Delete the date control from data storage.

func (*DateControl) Find added in v0.5.3

func (entity *DateControl) Find(context DatabaseService) error

Find is not used for date controls. Please use the `Get` method.

func (*DateControl) Get added in v0.5.3

func (entity *DateControl) Get(context DatabaseService, account int) (int, error)

Get the date control from data storage.

func (*DateControl) GetID added in v0.5.3

func (entity *DateControl) GetID() int

GetID returns the entity identifier.

func (*DateControl) Marshal added in v0.5.3

func (entity *DateControl) Marshal() Payload

Marshal to payload structure

func (*DateControl) Save added in v0.5.3

func (entity *DateControl) Save(context DatabaseService, account int) (int, error)

Save the date control to data storage.

func (*DateControl) SetID added in v0.5.3

func (entity *DateControl) SetID(id int)

SetID sets the entity identifier.

func (*DateControl) Unmarshal added in v0.5.3

func (entity *DateControl) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*DateControl) Valid added in v0.5.3

func (entity *DateControl) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type DateRange added in v0.5.3

type DateRange struct {
	PayloadFrom Payload `json:"from" sql:"-"`
	PayloadTo   Payload `json:"to" sql:"-"`
	Present     bool    `json:"present"`

	// Validator specific fields
	From *DateControl `json:"-"`
	To   *DateControl `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	FromID    int `json:"-"`
	ToID      int `json:"-"`
}

DateRange is a basic input.

func (*DateRange) Delete added in v0.5.3

func (entity *DateRange) Delete(context DatabaseService, account int) (int, error)

Delete the DateRange entity.

func (*DateRange) Find added in v0.5.3

func (entity *DateRange) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*DateRange) Get added in v0.5.3

func (entity *DateRange) Get(context DatabaseService, account int) (int, error)

Get the DateRange entity.

func (*DateRange) GetID added in v0.5.3

func (entity *DateRange) GetID() int

GetID returns the entity identifier.

func (*DateRange) Marshal added in v0.5.3

func (entity *DateRange) Marshal() Payload

Marshal to payload structure

func (*DateRange) Save added in v0.5.3

func (entity *DateRange) Save(context DatabaseService, account int) (int, error)

Save the DateRange entity.

func (*DateRange) SetID added in v0.5.3

func (entity *DateRange) SetID(id int)

SetID sets the entity identifier.

func (*DateRange) Unmarshal added in v0.5.3

func (entity *DateRange) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*DateRange) Valid added in v0.5.3

func (entity *DateRange) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Email added in v0.5.3

type Email struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Email is a basic input.

func (*Email) Delete added in v0.5.3

func (entity *Email) Delete(context DatabaseService, account int) (int, error)

Delete the email from data storage.

func (*Email) Find added in v0.5.3

func (entity *Email) Find(context DatabaseService) error

Find is not used for emails. Please use the `Get` method.

func (*Email) Get added in v0.5.3

func (entity *Email) Get(context DatabaseService, account int) (int, error)

Get the email from data storage.

func (*Email) GetID added in v0.5.3

func (entity *Email) GetID() int

GetID returns the entity identifier.

func (*Email) Marshal added in v0.5.3

func (entity *Email) Marshal() Payload

Marshal to payload structure

func (*Email) Save added in v0.5.3

func (entity *Email) Save(context DatabaseService, account int) (int, error)

Save the email to data storage.

func (*Email) SetID added in v0.5.3

func (entity *Email) SetID(id int)

SetID sets the entity identifier.

func (*Email) Unmarshal added in v0.5.3

func (entity *Email) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Email) Valid added in v0.5.3

func (entity *Email) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type EmploymentActivity added in v0.5.3

type EmploymentActivity struct {
	ID               int    `json:"-"`
	Value            string `json:"value"`
	OtherExplanation string `json:"otherExplanation,omitempty"`
}

EmploymentActivity is a basic input.

func (*EmploymentActivity) Delete added in v0.5.3

func (entity *EmploymentActivity) Delete(context DatabaseService, account int) (int, error)

Delete the employment activity from data storage.

func (*EmploymentActivity) Find added in v0.5.3

func (entity *EmploymentActivity) Find(context DatabaseService) error

Find is not used for employment activities. Please use the `Get` method.

func (*EmploymentActivity) Get added in v0.5.3

func (entity *EmploymentActivity) Get(context DatabaseService, account int) (int, error)

Get the employment activity from data storage.

func (*EmploymentActivity) GetID added in v0.5.3

func (entity *EmploymentActivity) GetID() int

GetID returns the entity identifier.

func (*EmploymentActivity) Marshal added in v0.5.3

func (entity *EmploymentActivity) Marshal() Payload

Marshal to payload structure

func (*EmploymentActivity) Save added in v0.5.3

func (entity *EmploymentActivity) Save(context DatabaseService, account int) (int, error)

Save the employment activity to data storage.

func (*EmploymentActivity) SetID added in v0.5.3

func (entity *EmploymentActivity) SetID(id int)

SetID sets the entity identifier.

func (*EmploymentActivity) Unmarshal added in v0.5.3

func (entity *EmploymentActivity) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*EmploymentActivity) Valid added in v0.5.3

func (entity *EmploymentActivity) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Entity added in v0.5.3

type Entity interface {
	Identifier
	Marshaller
	Validator
	Persister
	Finder
}

Entity is a structure which can marshall, validate, and persist.

type ErrFieldInvalid added in v0.5.3

type ErrFieldInvalid struct {
	Message string
}

ErrFieldInvalid represents an error for a field with an invalid value.

func (ErrFieldInvalid) Error added in v0.5.3

func (e ErrFieldInvalid) Error() string

Error returns the string representation of a Field Invalid error.

func (ErrFieldInvalid) Result added in v0.5.3

func (e ErrFieldInvalid) Result(fieldname string) interface{}

Result creates a struct that is properly formatted for the client-side validation.

type ErrFieldRequired added in v0.5.3

type ErrFieldRequired struct {
	Message string
}

ErrFieldRequired represents an error for a field that requires data.

func (ErrFieldRequired) Error added in v0.5.3

func (e ErrFieldRequired) Error() string

Error is a basic representation of a Require Field error.

func (ErrFieldRequired) Result added in v0.5.3

func (e ErrFieldRequired) Result(fieldname string) interface{}

Result creates a struct that is properly formatted for the client-side validation.

type ErrInvalidLocation added in v0.5.3

type ErrInvalidLocation struct {
	Message     string
	Suggestions []GeocodeResult
}

ErrInvalidLocation represents an error for location information with additional options.

func (ErrInvalidLocation) Error added in v0.5.3

func (e ErrInvalidLocation) Error() string

Error returns the error message.

func (ErrInvalidLocation) Result added in v0.5.3

func (e ErrInvalidLocation) Result(fieldname string) interface{}

Result creates a struct that is properly formatted for the client-side validation.

type ErrorStack added in v0.5.3

type ErrorStack []ErrorStackResults

ErrorStack contains a list of ErrorStackResults that have been captured.

func NewErrorStack added in v0.5.3

func NewErrorStack(fieldname string, err error) ErrorStack

NewErrorStack creates a new stack of errors for a particular field.

func (*ErrorStack) Append added in v0.5.3

func (stack *ErrorStack) Append(fieldname string, err error)

Append adds an error to the list of errors. For those that implement the ValidationResult interface, the return value for Result(fieldname) will be used to populate the stack. This is to properly format error/validation information that is to be returned to the client-side.

func (ErrorStack) Error added in v0.5.3

func (stack ErrorStack) Error() string

Error is string representation of an ErrorStack and displays the total number of errors. This is to implement the error type.

func (ErrorStack) HasErrors added in v0.5.3

func (stack ErrorStack) HasErrors() bool

HasErrors checks if any errors exist

func (ErrorStack) Result added in v0.5.3

func (stack ErrorStack) Result(fieldname string) interface{}

Result creates a struct that is properly formatted for the client-validation.

type ErrorStackResults added in v0.5.3

type ErrorStackResults interface{}

ErrorStackResults is an interface to be used to represent a collection of interfaces. This currently has no additional methods

type FinancialBankruptcy added in v0.5.3

type FinancialBankruptcy struct {
	PayloadHasBankruptcy Payload `json:"HasBankruptcy" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasBankruptcy *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasBankruptcyID int `json:"-" pg:", fk:HasBankruptcy"`
	ListID          int `json:"-" pg:", fk:List"`
}

FinancialBankruptcy represents the payload for the financial bankruptcy section.

func (*FinancialBankruptcy) Delete added in v0.5.3

func (entity *FinancialBankruptcy) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialBankruptcy) Find added in v0.5.3

func (entity *FinancialBankruptcy) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*FinancialBankruptcy) Get added in v0.5.3

func (entity *FinancialBankruptcy) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialBankruptcy) GetID added in v0.5.3

func (entity *FinancialBankruptcy) GetID() int

GetID returns the entity identifier.

func (*FinancialBankruptcy) Marshal added in v0.5.3

func (entity *FinancialBankruptcy) Marshal() Payload

Marshal to payload structure

func (*FinancialBankruptcy) Save added in v0.5.3

func (entity *FinancialBankruptcy) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialBankruptcy) SetID added in v0.5.3

func (entity *FinancialBankruptcy) SetID(id int)

SetID sets the entity identifier.

func (*FinancialBankruptcy) Unmarshal added in v0.5.3

func (entity *FinancialBankruptcy) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialBankruptcy) Valid added in v0.5.3

func (entity *FinancialBankruptcy) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialCard added in v0.5.3

type FinancialCard struct {
	PayloadHasCardAbuse Payload `json:"HasCardAbuse" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasCardAbuse *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasCardAbuseID int `json:"-" pg:", fk:HasCardAbuse"`
	ListID         int `json:"-" pg:", fk:List"`
}

FinancialCard represents the payload for the financial card section.

func (*FinancialCard) Delete added in v0.5.3

func (entity *FinancialCard) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialCard) Find added in v0.5.3

func (entity *FinancialCard) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*FinancialCard) Get added in v0.5.3

func (entity *FinancialCard) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialCard) GetID added in v0.5.3

func (entity *FinancialCard) GetID() int

GetID returns the entity identifier.

func (*FinancialCard) Marshal added in v0.5.3

func (entity *FinancialCard) Marshal() Payload

Marshal to payload structure

func (*FinancialCard) Save added in v0.5.3

func (entity *FinancialCard) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialCard) SetID added in v0.5.3

func (entity *FinancialCard) SetID(id int)

SetID sets the entity identifier.

func (*FinancialCard) Unmarshal added in v0.5.3

func (entity *FinancialCard) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialCard) Valid added in v0.5.3

func (entity *FinancialCard) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialComments added in v0.5.3

type FinancialComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

FinancialComments represents the payload for the financial comments section.

func (*FinancialComments) Delete added in v0.5.3

func (entity *FinancialComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialComments) Find added in v0.5.3

func (entity *FinancialComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*FinancialComments) Get added in v0.5.3

func (entity *FinancialComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialComments) GetID added in v0.5.3

func (entity *FinancialComments) GetID() int

GetID returns the entity identifier.

func (*FinancialComments) Marshal added in v0.5.3

func (entity *FinancialComments) Marshal() Payload

Marshal to payload structure

func (*FinancialComments) Save added in v0.5.3

func (entity *FinancialComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialComments) SetID added in v0.5.3

func (entity *FinancialComments) SetID(id int)

SetID sets the entity identifier.

func (*FinancialComments) Unmarshal added in v0.5.3

func (entity *FinancialComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialComments) Valid added in v0.5.3

func (entity *FinancialComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialCredit added in v0.5.3

type FinancialCredit struct {
	PayloadHasCreditCounseling Payload `json:"HasCreditCounseling" sql:"-"`
	PayloadList                Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasCreditCounseling *Branch     `json:"-"`
	List                *Collection `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	HasCreditCounselingID int `json:"-" pg:", fk:HasCreditCounseling"`
	ListID                int `json:"-" pg:", fk:List"`
}

FinancialCredit represents the payload for the financial credit section.

func (*FinancialCredit) Delete added in v0.5.3

func (entity *FinancialCredit) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialCredit) Find added in v0.5.3

func (entity *FinancialCredit) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*FinancialCredit) Get added in v0.5.3

func (entity *FinancialCredit) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialCredit) GetID added in v0.5.3

func (entity *FinancialCredit) GetID() int

GetID returns the entity identifier.

func (*FinancialCredit) Marshal added in v0.5.3

func (entity *FinancialCredit) Marshal() Payload

Marshal to payload structure

func (*FinancialCredit) Save added in v0.5.3

func (entity *FinancialCredit) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialCredit) SetID added in v0.5.3

func (entity *FinancialCredit) SetID(id int)

SetID sets the entity identifier.

func (*FinancialCredit) Unmarshal added in v0.5.3

func (entity *FinancialCredit) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialCredit) Valid added in v0.5.3

func (entity *FinancialCredit) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialDelinquent added in v0.5.3

type FinancialDelinquent struct {
	PayloadHasDelinquent Payload `json:"HasDelinquent" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDelinquent *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasDelinquentID int `json:"-" pg:", fk:HasDelinquent"`
	ListID          int `json:"-" pg:", fk:List"`
}

FinancialDelinquent represents the payload for the financial delinquent section.

func (*FinancialDelinquent) Delete added in v0.5.3

func (entity *FinancialDelinquent) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialDelinquent) Find added in v0.5.3

func (entity *FinancialDelinquent) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*FinancialDelinquent) Get added in v0.5.3

func (entity *FinancialDelinquent) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialDelinquent) GetID added in v0.5.3

func (entity *FinancialDelinquent) GetID() int

GetID returns the entity identifier.

func (*FinancialDelinquent) Marshal added in v0.5.3

func (entity *FinancialDelinquent) Marshal() Payload

Marshal to payload structure

func (*FinancialDelinquent) Save added in v0.5.3

func (entity *FinancialDelinquent) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialDelinquent) SetID added in v0.5.3

func (entity *FinancialDelinquent) SetID(id int)

SetID sets the entity identifier.

func (*FinancialDelinquent) Unmarshal added in v0.5.3

func (entity *FinancialDelinquent) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialDelinquent) Valid added in v0.5.3

func (entity *FinancialDelinquent) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialGambling added in v0.5.3

type FinancialGambling struct {
	PayloadHasGamblingDebt Payload `json:"HasGamblingDebt" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasGamblingDebt *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasGamblingDebtID int `json:"-" pg:", fk:HasGamblingDebt"`
	ListID            int `json:"-" pg:", fk:List"`
}

FinancialGambling represents the payload for the financial gambling section.

func (*FinancialGambling) Delete added in v0.5.3

func (entity *FinancialGambling) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialGambling) Find added in v0.5.3

func (entity *FinancialGambling) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*FinancialGambling) Get added in v0.5.3

func (entity *FinancialGambling) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialGambling) GetID added in v0.5.3

func (entity *FinancialGambling) GetID() int

GetID returns the entity identifier.

func (*FinancialGambling) Marshal added in v0.5.3

func (entity *FinancialGambling) Marshal() Payload

Marshal to payload structure

func (*FinancialGambling) Save added in v0.5.3

func (entity *FinancialGambling) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialGambling) SetID added in v0.5.3

func (entity *FinancialGambling) SetID(id int)

SetID sets the entity identifier.

func (*FinancialGambling) Unmarshal added in v0.5.3

func (entity *FinancialGambling) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialGambling) Valid added in v0.5.3

func (entity *FinancialGambling) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialNonpayment added in v0.5.3

type FinancialNonpayment struct {
	PayloadHasNonpayment Payload `json:"HasNonpayment" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasNonpayment *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasNonpaymentID int `json:"-" pg:", fk:HasNonpayment"`
	ListID          int `json:"-" pg:", fk:List"`
}

FinancialNonpayment represents the payload for the financial nonpayment section.

func (*FinancialNonpayment) Delete added in v0.5.3

func (entity *FinancialNonpayment) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialNonpayment) Find added in v0.5.3

func (entity *FinancialNonpayment) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*FinancialNonpayment) Get added in v0.5.3

func (entity *FinancialNonpayment) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialNonpayment) GetID added in v0.5.3

func (entity *FinancialNonpayment) GetID() int

GetID returns the entity identifier.

func (*FinancialNonpayment) Marshal added in v0.5.3

func (entity *FinancialNonpayment) Marshal() Payload

Marshal to payload structure

func (*FinancialNonpayment) Save added in v0.5.3

func (entity *FinancialNonpayment) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialNonpayment) SetID added in v0.5.3

func (entity *FinancialNonpayment) SetID(id int)

SetID sets the entity identifier.

func (*FinancialNonpayment) Unmarshal added in v0.5.3

func (entity *FinancialNonpayment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialNonpayment) Valid added in v0.5.3

func (entity *FinancialNonpayment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FinancialTaxes added in v0.5.3

type FinancialTaxes struct {
	PayloadHasTaxes Payload `json:"HasTaxes" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasTaxes *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	HasTaxesID int `json:"-" pg:", fk:HasTaxes"`
	ListID     int `json:"-" pg:", fk:List"`
}

FinancialTaxes represents the payload for the financial taxes section.

func (*FinancialTaxes) Delete added in v0.5.3

func (entity *FinancialTaxes) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*FinancialTaxes) Find added in v0.5.3

func (entity *FinancialTaxes) Find(context DatabaseService) error

Find is not used for attachments. Please use the `Get` method.

func (*FinancialTaxes) Get added in v0.5.3

func (entity *FinancialTaxes) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*FinancialTaxes) GetID added in v0.5.3

func (entity *FinancialTaxes) GetID() int

GetID returns the entity identifier.

func (*FinancialTaxes) Marshal added in v0.5.3

func (entity *FinancialTaxes) Marshal() Payload

Marshal to payload structure

func (*FinancialTaxes) Save added in v0.5.3

func (entity *FinancialTaxes) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*FinancialTaxes) SetID added in v0.5.3

func (entity *FinancialTaxes) SetID(id int)

SetID sets the entity identifier.

func (*FinancialTaxes) Unmarshal added in v0.5.3

func (entity *FinancialTaxes) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*FinancialTaxes) Valid added in v0.5.3

func (entity *FinancialTaxes) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Finder added in v0.5.3

type Finder interface {
	Find(context DatabaseService) error
}

Finder interface provides common functionality for finding persisted data using properties other than the primary key.

type ForeignActivitiesBenefits added in v0.5.3

type ForeignActivitiesBenefits struct {
	PayloadHasBenefits Payload `json:"HasBenefits" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasBenefits *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasBenefitsID int `json:"-" pg:", fk:HasBenefits"`
	ListID        int `json:"-" pg:", fk:List"`
}

ForeignActivitiesBenefits represents the payload for the foreign activities benefits section.

func (*ForeignActivitiesBenefits) Delete added in v0.5.3

func (entity *ForeignActivitiesBenefits) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesBenefits) Find added in v0.5.3

func (entity *ForeignActivitiesBenefits) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignActivitiesBenefits) Get added in v0.5.3

func (entity *ForeignActivitiesBenefits) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesBenefits) GetID added in v0.5.3

func (entity *ForeignActivitiesBenefits) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesBenefits) Marshal added in v0.5.3

func (entity *ForeignActivitiesBenefits) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesBenefits) Save added in v0.5.3

func (entity *ForeignActivitiesBenefits) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesBenefits) SetID added in v0.5.3

func (entity *ForeignActivitiesBenefits) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesBenefits) Unmarshal added in v0.5.3

func (entity *ForeignActivitiesBenefits) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesBenefits) Valid added in v0.5.3

func (entity *ForeignActivitiesBenefits) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesDirect added in v0.5.3

type ForeignActivitiesDirect struct {
	PayloadHasInterests Payload `json:"HasInterests" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasInterests *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasInterestsID int `json:"-" pg:", fk:HasInterests"`
	ListID         int `json:"-" pg:", fk:List"`
}

ForeignActivitiesDirect represents the payload for the foreign activities direct section.

func (*ForeignActivitiesDirect) Delete added in v0.5.3

func (entity *ForeignActivitiesDirect) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesDirect) Find added in v0.5.3

func (entity *ForeignActivitiesDirect) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignActivitiesDirect) Get added in v0.5.3

func (entity *ForeignActivitiesDirect) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesDirect) GetID added in v0.5.3

func (entity *ForeignActivitiesDirect) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesDirect) Marshal added in v0.5.3

func (entity *ForeignActivitiesDirect) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesDirect) Save added in v0.5.3

func (entity *ForeignActivitiesDirect) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesDirect) SetID added in v0.5.3

func (entity *ForeignActivitiesDirect) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesDirect) Unmarshal added in v0.5.3

func (entity *ForeignActivitiesDirect) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesDirect) Valid added in v0.5.3

func (entity *ForeignActivitiesDirect) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesIndirect added in v0.5.3

type ForeignActivitiesIndirect struct {
	PayloadHasInterests Payload `json:"HasInterests" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasInterests *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasInterestsID int `json:"-" pg:", fk:HasInterests"`
	ListID         int `json:"-" pg:", fk:List"`
}

ForeignActivitiesIndirect represents the payload for the foreign activities indirect section.

func (*ForeignActivitiesIndirect) Delete added in v0.5.3

func (entity *ForeignActivitiesIndirect) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesIndirect) Find added in v0.5.3

func (entity *ForeignActivitiesIndirect) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignActivitiesIndirect) Get added in v0.5.3

func (entity *ForeignActivitiesIndirect) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesIndirect) GetID added in v0.5.3

func (entity *ForeignActivitiesIndirect) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesIndirect) Marshal added in v0.5.3

func (entity *ForeignActivitiesIndirect) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesIndirect) Save added in v0.5.3

func (entity *ForeignActivitiesIndirect) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesIndirect) SetID added in v0.5.3

func (entity *ForeignActivitiesIndirect) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesIndirect) Unmarshal added in v0.5.3

func (entity *ForeignActivitiesIndirect) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesIndirect) Valid added in v0.5.3

func (entity *ForeignActivitiesIndirect) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesRealEstate added in v0.5.3

type ForeignActivitiesRealEstate struct {
	PayloadHasInterests Payload `json:"HasInterests" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasInterests *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasInterestsID int `json:"-" pg:", fk:HasInterests"`
	ListID         int `json:"-" pg:", fk:List"`
}

ForeignActivitiesRealEstate represents the payload for the foreign activities real estate section.

func (*ForeignActivitiesRealEstate) Delete added in v0.5.3

func (entity *ForeignActivitiesRealEstate) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesRealEstate) Find added in v0.5.3

func (entity *ForeignActivitiesRealEstate) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignActivitiesRealEstate) Get added in v0.5.3

func (entity *ForeignActivitiesRealEstate) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesRealEstate) GetID added in v0.5.3

func (entity *ForeignActivitiesRealEstate) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesRealEstate) Marshal added in v0.5.3

func (entity *ForeignActivitiesRealEstate) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesRealEstate) Save added in v0.5.3

func (entity *ForeignActivitiesRealEstate) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesRealEstate) SetID added in v0.5.3

func (entity *ForeignActivitiesRealEstate) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesRealEstate) Unmarshal added in v0.5.3

func (entity *ForeignActivitiesRealEstate) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesRealEstate) Valid added in v0.5.3

func (entity *ForeignActivitiesRealEstate) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignActivitiesSupport added in v0.5.3

type ForeignActivitiesSupport struct {
	PayloadHasForeignSupport Payload `json:"HasForeignSupport" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignSupport *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	HasForeignSupportID int `json:"-" pg:", fk:HasForeignSupport"`
	ListID              int `json:"-" pg:", fk:List"`
}

ForeignActivitiesSupport represents the payload for the foreign activities support section.

func (*ForeignActivitiesSupport) Delete added in v0.5.3

func (entity *ForeignActivitiesSupport) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignActivitiesSupport) Find added in v0.5.3

func (entity *ForeignActivitiesSupport) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignActivitiesSupport) Get added in v0.5.3

func (entity *ForeignActivitiesSupport) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignActivitiesSupport) GetID added in v0.5.3

func (entity *ForeignActivitiesSupport) GetID() int

GetID returns the entity identifier.

func (*ForeignActivitiesSupport) Marshal added in v0.5.3

func (entity *ForeignActivitiesSupport) Marshal() Payload

Marshal to payload structure

func (*ForeignActivitiesSupport) Save added in v0.5.3

func (entity *ForeignActivitiesSupport) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignActivitiesSupport) SetID added in v0.5.3

func (entity *ForeignActivitiesSupport) SetID(id int)

SetID sets the entity identifier.

func (*ForeignActivitiesSupport) Unmarshal added in v0.5.3

func (entity *ForeignActivitiesSupport) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignActivitiesSupport) Valid added in v0.5.3

func (entity *ForeignActivitiesSupport) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBornDocument added in v0.5.3

type ForeignBornDocument struct {
	PayloadDocumentType                    Payload `json:"DocumentType" sql:"-"`
	PayloadOtherExplanation                Payload `json:"OtherExplanation" sql:"-"`
	PayloadDocumentNumber                  Payload `json:"DocumentNumber" sql:"-"`
	PayloadDocumentExpiration              Payload `json:"DocumentExpiration" sql:"-"`
	PayloadDocumentExpirationNotApplicable Payload `json:"DocumentExpirationNotApplicable" sql:"-"`

	// Validator specific fields
	DocumentType                    *Radio         `json:"-"`
	OtherExplanation                *Textarea      `json:"-"`
	DocumentNumber                  *Text          `json:"-"`
	DocumentExpiration              *DateControl   `json:"-"`
	DocumentExpirationNotApplicable *NotApplicable `json:"-"`

	// Persister specific fields
	ID                                int `json:"-"`
	AccountID                         int `json:"-"`
	DocumentTypeID                    int `json:"-"`
	OtherExplanationID                int `json:"-"`
	DocumentNumberID                  int `json:"-"`
	DocumentExpirationID              int `json:"-"`
	DocumentExpirationNotApplicableID int `json:"-"`
}

ForeignBornDocument is a basic input.

func (*ForeignBornDocument) Delete added in v0.5.3

func (entity *ForeignBornDocument) Delete(context DatabaseService, account int) (int, error)

Delete the ForeignBornDocument entity.

func (*ForeignBornDocument) Find added in v0.5.3

func (entity *ForeignBornDocument) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBornDocument) Get added in v0.5.3

func (entity *ForeignBornDocument) Get(context DatabaseService, account int) (int, error)

Get the ForeignBornDocument entity.

func (*ForeignBornDocument) GetID added in v0.5.3

func (entity *ForeignBornDocument) GetID() int

GetID returns the entity identifier.

func (*ForeignBornDocument) Marshal added in v0.5.3

func (entity *ForeignBornDocument) Marshal() Payload

Marshal to payload structure

func (*ForeignBornDocument) Save added in v0.5.3

func (entity *ForeignBornDocument) Save(context DatabaseService, account int) (int, error)

Save the ForeignBornDocument entity.

func (*ForeignBornDocument) SetID added in v0.5.3

func (entity *ForeignBornDocument) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBornDocument) Unmarshal added in v0.5.3

func (entity *ForeignBornDocument) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBornDocument) Valid added in v0.5.3

func (entity *ForeignBornDocument) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessAdvice added in v0.5.3

type ForeignBusinessAdvice struct {
	PayloadHasForeignAdvice Payload `json:"HasForeignAdvice" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignAdvice *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasForeignAdviceID int `json:"-" pg:", fk:HasForeignAdvice"`
	ListID             int `json:"-" pg:", fk:List"`
}

ForeignBusinessAdvice represents the payload for the foreign business advice section.

func (*ForeignBusinessAdvice) Delete added in v0.5.3

func (entity *ForeignBusinessAdvice) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessAdvice) Find added in v0.5.3

func (entity *ForeignBusinessAdvice) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessAdvice) Get added in v0.5.3

func (entity *ForeignBusinessAdvice) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessAdvice) GetID added in v0.5.3

func (entity *ForeignBusinessAdvice) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessAdvice) Marshal added in v0.5.3

func (entity *ForeignBusinessAdvice) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessAdvice) Save added in v0.5.3

func (entity *ForeignBusinessAdvice) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessAdvice) SetID added in v0.5.3

func (entity *ForeignBusinessAdvice) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessAdvice) Unmarshal added in v0.5.3

func (entity *ForeignBusinessAdvice) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessAdvice) Valid added in v0.5.3

func (entity *ForeignBusinessAdvice) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessConferences added in v0.5.3

type ForeignBusinessConferences struct {
	PayloadHasForeignConferences Payload `json:"HasForeignConferences" sql:"-"`
	PayloadList                  Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignConferences *Branch     `json:"-"`
	List                  *Collection `json:"-"`

	// Persister specific fields
	ID                      int `json:"-"`
	HasForeignConferencesID int `json:"-" pg:", fk:HasForeignConferences"`
	ListID                  int `json:"-" pg:", fk:List"`
}

ForeignBusinessConferences represents the payload for the foreign business conferences section.

func (*ForeignBusinessConferences) Delete added in v0.5.3

func (entity *ForeignBusinessConferences) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessConferences) Find added in v0.5.3

func (entity *ForeignBusinessConferences) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessConferences) Get added in v0.5.3

func (entity *ForeignBusinessConferences) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessConferences) GetID added in v0.5.3

func (entity *ForeignBusinessConferences) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessConferences) Marshal added in v0.5.3

func (entity *ForeignBusinessConferences) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessConferences) Save added in v0.5.3

func (entity *ForeignBusinessConferences) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessConferences) SetID added in v0.5.3

func (entity *ForeignBusinessConferences) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessConferences) Unmarshal added in v0.5.3

func (entity *ForeignBusinessConferences) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessConferences) Valid added in v0.5.3

func (entity *ForeignBusinessConferences) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessContact added in v0.5.3

type ForeignBusinessContact struct {
	PayloadHasForeignContact Payload `json:"HasForeignContact" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignContact *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	HasForeignContactID int `json:"-" pg:", fk:HasForeignContact"`
	ListID              int `json:"-" pg:", fk:List"`
}

ForeignBusinessContact represents the payload for the foreign business contact section.

func (*ForeignBusinessContact) Delete added in v0.5.3

func (entity *ForeignBusinessContact) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessContact) Find added in v0.5.3

func (entity *ForeignBusinessContact) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessContact) Get added in v0.5.3

func (entity *ForeignBusinessContact) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessContact) GetID added in v0.5.3

func (entity *ForeignBusinessContact) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessContact) Marshal added in v0.5.3

func (entity *ForeignBusinessContact) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessContact) Save added in v0.5.3

func (entity *ForeignBusinessContact) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessContact) SetID added in v0.5.3

func (entity *ForeignBusinessContact) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessContact) Unmarshal added in v0.5.3

func (entity *ForeignBusinessContact) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessContact) Valid added in v0.5.3

func (entity *ForeignBusinessContact) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessEmployment added in v0.5.3

type ForeignBusinessEmployment struct {
	PayloadHasForeignEmployment Payload `json:"HasForeignEmployment" sql:"-"`
	PayloadList                 Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignEmployment *Branch     `json:"-"`
	List                 *Collection `json:"-"`

	// Persister specific fields
	ID                     int `json:"-"`
	HasForeignEmploymentID int `json:"-" pg:", fk:HasForeignEmployment"`
	ListID                 int `json:"-" pg:", fk:List"`
}

ForeignBusinessEmployment represents the payload for the foreign business employment section.

func (*ForeignBusinessEmployment) Delete added in v0.5.3

func (entity *ForeignBusinessEmployment) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessEmployment) Find added in v0.5.3

func (entity *ForeignBusinessEmployment) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessEmployment) Get added in v0.5.3

func (entity *ForeignBusinessEmployment) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessEmployment) GetID added in v0.5.3

func (entity *ForeignBusinessEmployment) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessEmployment) Marshal added in v0.5.3

func (entity *ForeignBusinessEmployment) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessEmployment) Save added in v0.5.3

func (entity *ForeignBusinessEmployment) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessEmployment) SetID added in v0.5.3

func (entity *ForeignBusinessEmployment) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessEmployment) Unmarshal added in v0.5.3

func (entity *ForeignBusinessEmployment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessEmployment) Valid added in v0.5.3

func (entity *ForeignBusinessEmployment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessFamily added in v0.5.3

type ForeignBusinessFamily struct {
	PayloadHasForeignFamily Payload `json:"HasForeignFamily" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignFamily *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasForeignFamilyID int `json:"-" pg:", fk:HasForeignFamily"`
	ListID             int `json:"-" pg:", fk:List"`
}

ForeignBusinessFamily represents the payload for the foreign business family section.

func (*ForeignBusinessFamily) Delete added in v0.5.3

func (entity *ForeignBusinessFamily) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessFamily) Find added in v0.5.3

func (entity *ForeignBusinessFamily) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessFamily) Get added in v0.5.3

func (entity *ForeignBusinessFamily) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessFamily) GetID added in v0.5.3

func (entity *ForeignBusinessFamily) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessFamily) Marshal added in v0.5.3

func (entity *ForeignBusinessFamily) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessFamily) Save added in v0.5.3

func (entity *ForeignBusinessFamily) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessFamily) SetID added in v0.5.3

func (entity *ForeignBusinessFamily) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessFamily) Unmarshal added in v0.5.3

func (entity *ForeignBusinessFamily) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessFamily) Valid added in v0.5.3

func (entity *ForeignBusinessFamily) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessPolitical added in v0.5.3

type ForeignBusinessPolitical struct {
	PayloadHasForeignPolitical Payload `json:"HasForeignPolitical" sql:"-"`
	PayloadList                Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignPolitical *Branch     `json:"-"`
	List                *Collection `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	HasForeignPoliticalID int `json:"-" pg:", fk:HasForeignPolitical"`
	ListID                int `json:"-" pg:", fk:List"`
}

ForeignBusinessPolitical represents the payload for the foreign business political section.

func (*ForeignBusinessPolitical) Delete added in v0.5.3

func (entity *ForeignBusinessPolitical) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessPolitical) Find added in v0.5.3

func (entity *ForeignBusinessPolitical) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessPolitical) Get added in v0.5.3

func (entity *ForeignBusinessPolitical) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessPolitical) GetID added in v0.5.3

func (entity *ForeignBusinessPolitical) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessPolitical) Marshal added in v0.5.3

func (entity *ForeignBusinessPolitical) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessPolitical) Save added in v0.5.3

func (entity *ForeignBusinessPolitical) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessPolitical) SetID added in v0.5.3

func (entity *ForeignBusinessPolitical) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessPolitical) Unmarshal added in v0.5.3

func (entity *ForeignBusinessPolitical) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessPolitical) Valid added in v0.5.3

func (entity *ForeignBusinessPolitical) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessSponsorship added in v0.5.3

type ForeignBusinessSponsorship struct {
	PayloadHasForeignSponsorship Payload `json:"HasForeignSponsorship" sql:"-"`
	PayloadList                  Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignSponsorship *Branch     `json:"-"`
	List                  *Collection `json:"-"`

	// Persister specific fields
	ID                      int `json:"-"`
	HasForeignSponsorshipID int `json:"-" pg:", fk:HasForeignSponsorship"`
	ListID                  int `json:"-" pg:", fk:List"`
}

ForeignBusinessSponsorship represents the payload for the foreign business sponsorship section.

func (*ForeignBusinessSponsorship) Delete added in v0.5.3

func (entity *ForeignBusinessSponsorship) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessSponsorship) Find added in v0.5.3

func (entity *ForeignBusinessSponsorship) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessSponsorship) Get added in v0.5.3

func (entity *ForeignBusinessSponsorship) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessSponsorship) GetID added in v0.5.3

func (entity *ForeignBusinessSponsorship) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessSponsorship) Marshal added in v0.5.3

func (entity *ForeignBusinessSponsorship) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessSponsorship) Save added in v0.5.3

func (entity *ForeignBusinessSponsorship) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessSponsorship) SetID added in v0.5.3

func (entity *ForeignBusinessSponsorship) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessSponsorship) Unmarshal added in v0.5.3

func (entity *ForeignBusinessSponsorship) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessSponsorship) Valid added in v0.5.3

func (entity *ForeignBusinessSponsorship) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessVentures added in v0.5.3

type ForeignBusinessVentures struct {
	PayloadHasForeignVentures Payload `json:"HasForeignVentures" sql:"-"`
	PayloadList               Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignVentures *Branch     `json:"-"`
	List               *Collection `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	HasForeignVenturesID int `json:"-" pg:", fk:HasForeignVentures"`
	ListID               int `json:"-" pg:", fk:List"`
}

ForeignBusinessVentures represents the payload for the foreign business ventures section.

func (*ForeignBusinessVentures) Delete added in v0.5.3

func (entity *ForeignBusinessVentures) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessVentures) Find added in v0.5.3

func (entity *ForeignBusinessVentures) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessVentures) Get added in v0.5.3

func (entity *ForeignBusinessVentures) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessVentures) GetID added in v0.5.3

func (entity *ForeignBusinessVentures) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessVentures) Marshal added in v0.5.3

func (entity *ForeignBusinessVentures) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessVentures) Save added in v0.5.3

func (entity *ForeignBusinessVentures) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessVentures) SetID added in v0.5.3

func (entity *ForeignBusinessVentures) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessVentures) Unmarshal added in v0.5.3

func (entity *ForeignBusinessVentures) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessVentures) Valid added in v0.5.3

func (entity *ForeignBusinessVentures) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignBusinessVoting added in v0.5.3

type ForeignBusinessVoting struct {
	PayloadHasForeignVoting Payload `json:"HasForeignVoting" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignVoting *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasForeignVotingID int `json:"-" pg:", fk:HasForeignVoting"`
	ListID             int `json:"-" pg:", fk:List"`
}

ForeignBusinessVoting represents the payload for the foreign business voting section.

func (*ForeignBusinessVoting) Delete added in v0.5.3

func (entity *ForeignBusinessVoting) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignBusinessVoting) Find added in v0.5.3

func (entity *ForeignBusinessVoting) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignBusinessVoting) Get added in v0.5.3

func (entity *ForeignBusinessVoting) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignBusinessVoting) GetID added in v0.5.3

func (entity *ForeignBusinessVoting) GetID() int

GetID returns the entity identifier.

func (*ForeignBusinessVoting) Marshal added in v0.5.3

func (entity *ForeignBusinessVoting) Marshal() Payload

Marshal to payload structure

func (*ForeignBusinessVoting) Save added in v0.5.3

func (entity *ForeignBusinessVoting) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignBusinessVoting) SetID added in v0.5.3

func (entity *ForeignBusinessVoting) SetID(id int)

SetID sets the entity identifier.

func (*ForeignBusinessVoting) Unmarshal added in v0.5.3

func (entity *ForeignBusinessVoting) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignBusinessVoting) Valid added in v0.5.3

func (entity *ForeignBusinessVoting) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignComments added in v0.5.3

type ForeignComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

ForeignComments represents the payload for the foreign comments section.

func (*ForeignComments) Delete added in v0.5.3

func (entity *ForeignComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignComments) Find added in v0.5.3

func (entity *ForeignComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignComments) Get added in v0.5.3

func (entity *ForeignComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignComments) GetID added in v0.5.3

func (entity *ForeignComments) GetID() int

GetID returns the entity identifier.

func (*ForeignComments) Marshal added in v0.5.3

func (entity *ForeignComments) Marshal() Payload

Marshal to payload structure

func (*ForeignComments) Save added in v0.5.3

func (entity *ForeignComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignComments) SetID added in v0.5.3

func (entity *ForeignComments) SetID(id int)

SetID sets the entity identifier.

func (*ForeignComments) Unmarshal added in v0.5.3

func (entity *ForeignComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignComments) Valid added in v0.5.3

func (entity *ForeignComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignContacts added in v0.5.3

type ForeignContacts struct {
	PayloadHasForeignContacts Payload `json:"HasForeignContacts" sql:"-"`
	PayloadList               Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignContacts *Branch     `json:"-"`
	List               *Collection `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	HasForeignContactsID int `json:"-" pg:", fk:HasForeignContacts"`
	ListID               int `json:"-" pg:", fk:List"`
}

ForeignContacts represents the payload for the foreign contacts section.

func (*ForeignContacts) Delete added in v0.5.3

func (entity *ForeignContacts) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignContacts) Find added in v0.5.3

func (entity *ForeignContacts) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignContacts) Get added in v0.5.3

func (entity *ForeignContacts) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignContacts) GetID added in v0.5.3

func (entity *ForeignContacts) GetID() int

GetID returns the entity identifier.

func (*ForeignContacts) Marshal added in v0.5.3

func (entity *ForeignContacts) Marshal() Payload

Marshal to payload structure

func (*ForeignContacts) Save added in v0.5.3

func (entity *ForeignContacts) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignContacts) SetID added in v0.5.3

func (entity *ForeignContacts) SetID(id int)

SetID sets the entity identifier.

func (*ForeignContacts) Unmarshal added in v0.5.3

func (entity *ForeignContacts) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignContacts) Valid added in v0.5.3

func (entity *ForeignContacts) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignPassport added in v0.5.3

type ForeignPassport struct {
	PayloadHasPassports Payload `json:"HasPassports" sql:"-"`
	PayloadName         Payload `json:"Name" sql:"-"`
	PayloadCard         Payload `json:"Card" sql:"-"`
	PayloadNumber       Payload `json:"Number" sql:"-"`
	PayloadIssued       Payload `json:"Issued" sql:"-"`
	PayloadExpiration   Payload `json:"Expiration" sql:"-"`
	PayloadComments     Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	HasPassports *Branch      `json:"-"`
	Name         *Name        `json:"-"`
	Card         *Radio       `json:"-"`
	Number       *Text        `json:"-"`
	Issued       *DateControl `json:"-"`
	Expiration   *DateControl `json:"-"`
	Comments     *Textarea    `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasPassportsID int `json:"-" pg:",fk:HasPassports"`
	NameID         int `json:"-" pg:",fk:Name"`
	CardID         int `json:"-" pg:",fk:Card"`
	NumberID       int `json:"-" pg:",fk:Number"`
	IssuedID       int `json:"-" pg:",fk:Issued"`
	ExpirationID   int `json:"-" pg:",fk:Expiration"`
	CommentsID     int `json:"-" pg:",fk:Comments"`
}

ForeignPassport represents the payload for the foreign passport section.

func (*ForeignPassport) Delete added in v0.5.3

func (entity *ForeignPassport) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignPassport) Find added in v0.5.3

func (entity *ForeignPassport) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignPassport) Get added in v0.5.3

func (entity *ForeignPassport) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignPassport) GetID added in v0.5.3

func (entity *ForeignPassport) GetID() int

GetID returns the entity identifier.

func (*ForeignPassport) Marshal added in v0.5.3

func (entity *ForeignPassport) Marshal() Payload

Marshal to payload structure

func (*ForeignPassport) Save added in v0.5.3

func (entity *ForeignPassport) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignPassport) SetID added in v0.5.3

func (entity *ForeignPassport) SetID(id int)

SetID sets the entity identifier.

func (*ForeignPassport) Unmarshal added in v0.5.3

func (entity *ForeignPassport) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignPassport) Valid added in v0.5.3

func (entity *ForeignPassport) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ForeignTravel added in v0.5.3

type ForeignTravel struct {
	PayloadHasForeignTravelOutside  Payload `json:"HasForeignTravelOutside" sql:"-"`
	PayloadHasForeignTravelOfficial Payload `json:"HasForeignTravelOfficial" sql:"-"`
	PayloadList                     Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasForeignTravelOutside  *Branch     `json:"-"`
	HasForeignTravelOfficial *Branch     `json:"-"`
	List                     *Collection `json:"-"`

	// Persister specific fields
	ID                         int `json:"-"`
	HasForeignTravelOutsideID  int `json:"-" pg:", fk:HasForeignTravelOutside"`
	HasForeignTravelOfficialID int `json:"-" pg:", fk:HasForeignTravelOfficial"`
	ListID                     int `json:"-" pg:", fk:List"`
}

ForeignTravel represents the payload for the foreign travel section.

func (*ForeignTravel) Delete added in v0.5.3

func (entity *ForeignTravel) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*ForeignTravel) Find added in v0.5.3

func (entity *ForeignTravel) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ForeignTravel) Get added in v0.5.3

func (entity *ForeignTravel) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*ForeignTravel) GetID added in v0.5.3

func (entity *ForeignTravel) GetID() int

GetID returns the entity identifier.

func (*ForeignTravel) Marshal added in v0.5.3

func (entity *ForeignTravel) Marshal() Payload

Marshal to payload structure

func (*ForeignTravel) Save added in v0.5.3

func (entity *ForeignTravel) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*ForeignTravel) SetID added in v0.5.3

func (entity *ForeignTravel) SetID(id int)

SetID sets the entity identifier.

func (*ForeignTravel) Unmarshal added in v0.5.3

func (entity *ForeignTravel) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ForeignTravel) Valid added in v0.5.3

func (entity *ForeignTravel) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type FormMetadata added in v0.5.3

type FormMetadata struct {
	Locked bool
	Hash   string
}

FormMetadata represents extra information associated with the application regarding its current state.

type GeocodeResult added in v0.5.3

type GeocodeResult struct {
	Street    string
	Street2   string
	City      string
	State     string
	County    string
	Country   string
	Zipcode   string
	Formatted string
	Partial   bool
	Error     string
}

GeocodeResult represents geocoded information that has been transformed from the original source. All Geocoders should convert their location information into a GeocodeResult struct.

func (GeocodeResult) String added in v0.5.3

func (r GeocodeResult) String() string

String returns a friendly representation of a GeocodeResult.

type GeocodeResults added in v0.5.3

type GeocodeResults []GeocodeResult

GeocodeResults contains a list of found Result. It contains helper methods to determine if partial matches were found.

func (GeocodeResults) Empty added in v0.5.3

func (r GeocodeResults) Empty() bool

Empty determines if any results are available.

func (GeocodeResults) HasErrors added in v0.5.3

func (r GeocodeResults) HasErrors() bool

HasErrors checks if any of the results contains error information.

func (GeocodeResults) HasPartial added in v0.5.3

func (r GeocodeResults) HasPartial() bool

HasPartial determines if any of the matches is partial.

type GeocodeValues added in v0.5.3

type GeocodeValues struct {
	Street  string
	Street2 string
	City    string
	State   string
	Zipcode string
	County  string
	Country string
}

GeocodeValues stores generic geospatial related query parameters.

type Geocoder added in v0.5.3

type Geocoder interface {
	Validate(GeocodeValues) (GeocodeResults, error)
}

Geocoder is an interface for geocoding implementations.

var (
	// Geocode is the geocoder to be used by the application. It points to an interface so that the
	// underlying implementation can be easily swapped out.
	Geocode Geocoder

	// ErrNoResultsFound is a generic error when results are not found but a request was valid.
	ErrNoResultsFound = errors.New("No geolocation results were found")
)

type Height added in v0.5.3

type Height struct {
	ID     int `json:"-"`
	Feet   int `json:"feet"`
	Inches int `json:"inches"`
}

Height is a basic input.

func (*Height) Delete added in v0.5.3

func (entity *Height) Delete(context DatabaseService, account int) (int, error)

Delete the height from data storage.

func (*Height) Find added in v0.5.3

func (entity *Height) Find(context DatabaseService) error

Find is not used for heights. Please use the `Get` method.

func (*Height) Get added in v0.5.3

func (entity *Height) Get(context DatabaseService, account int) (int, error)

Get the height from data storage.

func (*Height) GetID added in v0.5.3

func (entity *Height) GetID() int

GetID returns the entity identifier.

func (*Height) Marshal added in v0.5.3

func (entity *Height) Marshal() Payload

Marshal to payload structure

func (*Height) Save added in v0.5.3

func (entity *Height) Save(context DatabaseService, account int) (int, error)

Save the height to data storage.

func (*Height) SetID added in v0.5.3

func (entity *Height) SetID(id int)

SetID sets the entity identifier.

func (*Height) Unmarshal added in v0.5.3

func (entity *Height) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Height) Valid added in v0.5.3

func (entity *Height) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryComments added in v0.5.3

type HistoryComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

HistoryComments represents the payload for the history comments section.

func (*HistoryComments) Delete added in v0.5.3

func (entity *HistoryComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryComments) Find added in v0.5.3

func (entity *HistoryComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*HistoryComments) Get added in v0.5.3

func (entity *HistoryComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryComments) GetID added in v0.5.3

func (entity *HistoryComments) GetID() int

GetID returns the entity identifier.

func (*HistoryComments) Marshal added in v0.5.3

func (entity *HistoryComments) Marshal() Payload

Marshal to payload structure

func (*HistoryComments) Save added in v0.5.3

func (entity *HistoryComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*HistoryComments) SetID added in v0.5.3

func (entity *HistoryComments) SetID(id int)

SetID sets the entity identifier.

func (*HistoryComments) Unmarshal added in v0.5.3

func (entity *HistoryComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryComments) Valid added in v0.5.3

func (entity *HistoryComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryEducation added in v0.5.3

type HistoryEducation struct {
	PayloadHasAttended Payload `json:"HasAttended" sql:"-"`
	PayloadHasDegree10 Payload `json:"HasDegree10" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasAttended *Branch     `json:"-" sql:"-"`
	HasDegree10 *Branch     `json:"-" sql:"-"`
	List        *Collection `json:"-" sql:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasAttendedID int `json:"-" pg:", fk:HasAttended"`
	HasDegree10ID int `json:"-" pg:", fk:HasDegree10" sql:"has_degree10_id"`
	ListID        int `json:"-" pg:", fk:List"`
}

HistoryEducation represents the payload for the history education section.

func (*HistoryEducation) Delete added in v0.5.3

func (entity *HistoryEducation) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryEducation) Find added in v0.5.3

func (entity *HistoryEducation) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*HistoryEducation) Get added in v0.5.3

func (entity *HistoryEducation) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryEducation) GetID added in v0.5.3

func (entity *HistoryEducation) GetID() int

GetID returns the entity identifier.

func (*HistoryEducation) Marshal added in v0.5.3

func (entity *HistoryEducation) Marshal() Payload

Marshal to payload structure

func (*HistoryEducation) Save added in v0.5.3

func (entity *HistoryEducation) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*HistoryEducation) SetID added in v0.5.3

func (entity *HistoryEducation) SetID(id int)

SetID sets the entity identifier.

func (*HistoryEducation) Unmarshal added in v0.5.3

func (entity *HistoryEducation) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryEducation) Valid added in v0.5.3

func (entity *HistoryEducation) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryEmployment added in v0.5.3

type HistoryEmployment struct {
	PayloadList             Payload `json:"List" sql:"-"`
	PayloadEmploymentRecord Payload `json:"EmploymentRecord" sql:"-"`

	// Validator specific fields
	List             *Collection `json:"-"`
	EmploymentRecord *Branch     `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	ListID             int `json:"-" pg:", fk:List"`
	EmploymentRecordID int `json:"-"`
}

HistoryEmployment represents the payload for the history employment section.

func (*HistoryEmployment) Delete added in v0.5.3

func (entity *HistoryEmployment) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryEmployment) Find added in v0.5.3

func (entity *HistoryEmployment) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*HistoryEmployment) Get added in v0.5.3

func (entity *HistoryEmployment) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryEmployment) GetID added in v0.5.3

func (entity *HistoryEmployment) GetID() int

GetID returns the entity identifier.

func (*HistoryEmployment) Marshal added in v0.5.3

func (entity *HistoryEmployment) Marshal() Payload

Marshal to payload structure

func (*HistoryEmployment) Save added in v0.5.3

func (entity *HistoryEmployment) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*HistoryEmployment) SetID added in v0.5.3

func (entity *HistoryEmployment) SetID(id int)

SetID sets the entity identifier.

func (*HistoryEmployment) Unmarshal added in v0.5.3

func (entity *HistoryEmployment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryEmployment) Valid added in v0.5.3

func (entity *HistoryEmployment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryFederal added in v0.5.3

type HistoryFederal struct {
	PayloadHasFederalService Payload `json:"HasFederalService" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasFederalService *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	HasFederalServiceID int `json:"-" pg:", fk:HasFederalService"`
	ListID              int `json:"-" pg:", fk:List"`
}

HistoryFederal represents the payload for the history federal section.

func (*HistoryFederal) Delete added in v0.5.3

func (entity *HistoryFederal) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryFederal) Find added in v0.5.3

func (entity *HistoryFederal) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*HistoryFederal) Get added in v0.5.3

func (entity *HistoryFederal) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryFederal) GetID added in v0.5.3

func (entity *HistoryFederal) GetID() int

GetID returns the entity identifier.

func (*HistoryFederal) Marshal added in v0.5.3

func (entity *HistoryFederal) Marshal() Payload

Marshal to payload structure

func (*HistoryFederal) Save added in v0.5.3

func (entity *HistoryFederal) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*HistoryFederal) SetID added in v0.5.3

func (entity *HistoryFederal) SetID(id int)

SetID sets the entity identifier.

func (*HistoryFederal) Unmarshal added in v0.5.3

func (entity *HistoryFederal) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryFederal) Valid added in v0.5.3

func (entity *HistoryFederal) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type HistoryResidence added in v0.5.3

type HistoryResidence struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

HistoryResidence represents the payload for the history residence section.

func (*HistoryResidence) Delete added in v0.5.3

func (entity *HistoryResidence) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*HistoryResidence) Find added in v0.5.3

func (entity *HistoryResidence) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*HistoryResidence) Get added in v0.5.3

func (entity *HistoryResidence) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*HistoryResidence) GetID added in v0.5.3

func (entity *HistoryResidence) GetID() int

GetID returns the entity identifier.

func (*HistoryResidence) Marshal added in v0.5.3

func (entity *HistoryResidence) Marshal() Payload

Marshal to payload structure

func (*HistoryResidence) Save added in v0.5.3

func (entity *HistoryResidence) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*HistoryResidence) SetID added in v0.5.3

func (entity *HistoryResidence) SetID(id int)

SetID sets the entity identifier.

func (*HistoryResidence) Unmarshal added in v0.5.3

func (entity *HistoryResidence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*HistoryResidence) Valid added in v0.5.3

func (entity *HistoryResidence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationBirthDate added in v0.5.3

type IdentificationBirthDate struct {
	PayloadDate      Payload `json:"Date" sql:"-"`
	PayloadConfirmed Payload `json:"Confirmed" sql:"-"`

	// Validator specific fields
	Date      *DateControl `json:"-"`
	Confirmed *Checkbox    `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	DateID      int `json:"-" pg:", fk:Date"`
	ConfirmedID int `json:"-"`
}

IdentificationBirthDate represents the payload for the identification birth date section.

func (*IdentificationBirthDate) Delete added in v0.5.3

func (entity *IdentificationBirthDate) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationBirthDate) Find added in v0.5.3

func (entity *IdentificationBirthDate) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationBirthDate) Get added in v0.5.3

func (entity *IdentificationBirthDate) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationBirthDate) GetID added in v0.5.3

func (entity *IdentificationBirthDate) GetID() int

GetID returns the entity identifier.

func (*IdentificationBirthDate) Marshal added in v0.5.3

func (entity *IdentificationBirthDate) Marshal() Payload

Marshal to payload structure

func (*IdentificationBirthDate) Save added in v0.5.3

func (entity *IdentificationBirthDate) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationBirthDate) SetID added in v0.5.3

func (entity *IdentificationBirthDate) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationBirthDate) Unmarshal added in v0.5.3

func (entity *IdentificationBirthDate) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationBirthDate) Valid added in v0.5.3

func (entity *IdentificationBirthDate) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationBirthPlace added in v0.5.3

type IdentificationBirthPlace struct {
	Payload Payload `json:"Location" sql:"-"`

	// Validator specific fields
	Location *Location `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	LocationID int `json:"-" pg:", fk:Location"`
}

IdentificationBirthPlace represents the payload for the identification birth place section.

func (*IdentificationBirthPlace) Delete added in v0.5.3

func (entity *IdentificationBirthPlace) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationBirthPlace) Find added in v0.5.3

func (entity *IdentificationBirthPlace) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationBirthPlace) Get added in v0.5.3

func (entity *IdentificationBirthPlace) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationBirthPlace) GetID added in v0.5.3

func (entity *IdentificationBirthPlace) GetID() int

GetID returns the entity identifier.

func (*IdentificationBirthPlace) Marshal added in v0.5.3

func (entity *IdentificationBirthPlace) Marshal() Payload

Marshal to payload structure

func (*IdentificationBirthPlace) Save added in v0.5.3

func (entity *IdentificationBirthPlace) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationBirthPlace) SetID added in v0.5.3

func (entity *IdentificationBirthPlace) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationBirthPlace) Unmarshal added in v0.5.3

func (entity *IdentificationBirthPlace) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationBirthPlace) Valid added in v0.5.3

func (entity *IdentificationBirthPlace) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationComments added in v0.5.3

type IdentificationComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

IdentificationComments represents the payload for the identification comments section.

func (*IdentificationComments) Delete added in v0.5.3

func (entity *IdentificationComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationComments) Find added in v0.5.3

func (entity *IdentificationComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationComments) Get added in v0.5.3

func (entity *IdentificationComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationComments) GetID added in v0.5.3

func (entity *IdentificationComments) GetID() int

GetID returns the entity identifier.

func (*IdentificationComments) Marshal added in v0.5.3

func (entity *IdentificationComments) Marshal() Payload

Marshal to payload structure

func (*IdentificationComments) Save added in v0.5.3

func (entity *IdentificationComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationComments) SetID added in v0.5.3

func (entity *IdentificationComments) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationComments) Unmarshal added in v0.5.3

func (entity *IdentificationComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationComments) Valid added in v0.5.3

func (entity *IdentificationComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationContacts added in v0.5.3

type IdentificationContacts struct {
	PayloadHomeEmail    Payload `json:"HomeEmail" sql:"-"`
	PayloadWorkEmail    Payload `json:"WorkEmail" sql:"-"`
	PayloadPhoneNumbers Payload `json:"PhoneNumbers" sql:"-"`

	// Validator specific fields
	HomeEmail    *Email      `json:"-"`
	WorkEmail    *Email      `json:"-"`
	PhoneNumbers *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HomeEmailID    int `json:"-" pg:", fk:HomeEmail"`
	WorkEmailID    int `json:"-" pg:", fk:WorkEmail"`
	PhoneNumbersID int `json:"-" pg:", fk:PhoneNumbers"`
}

IdentificationContacts represents the payload for the identification contact information section.

func (*IdentificationContacts) Delete added in v0.5.3

func (entity *IdentificationContacts) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationContacts) Find added in v0.5.3

func (entity *IdentificationContacts) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationContacts) Get added in v0.5.3

func (entity *IdentificationContacts) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationContacts) GetID added in v0.5.3

func (entity *IdentificationContacts) GetID() int

GetID returns the entity identifier.

func (*IdentificationContacts) Marshal added in v0.5.3

func (entity *IdentificationContacts) Marshal() Payload

Marshal to payload structure

func (*IdentificationContacts) Save added in v0.5.3

func (entity *IdentificationContacts) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationContacts) SetID added in v0.5.3

func (entity *IdentificationContacts) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationContacts) Unmarshal added in v0.5.3

func (entity *IdentificationContacts) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationContacts) Valid added in v0.5.3

func (entity *IdentificationContacts) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationName added in v0.5.3

type IdentificationName struct {
	PayloadName Payload `json:"Name" sql:"-"`

	// Validator specific fields
	Name *Name `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	NameID int `json:"-" pg:", fk:Name"`
}

IdentificationName represents the payload for the identification name section.

func (*IdentificationName) Delete added in v0.5.3

func (entity *IdentificationName) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationName) Find added in v0.5.3

func (entity *IdentificationName) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationName) Get added in v0.5.3

func (entity *IdentificationName) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationName) GetID added in v0.5.3

func (entity *IdentificationName) GetID() int

GetID returns the entity identifier.

func (*IdentificationName) Marshal added in v0.5.3

func (entity *IdentificationName) Marshal() Payload

Marshal to payload structure

func (*IdentificationName) Save added in v0.5.3

func (entity *IdentificationName) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationName) SetID added in v0.5.3

func (entity *IdentificationName) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationName) Unmarshal added in v0.5.3

func (entity *IdentificationName) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationName) Valid added in v0.5.3

func (entity *IdentificationName) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationOtherNames added in v0.5.3

type IdentificationOtherNames struct {
	PayloadHasOtherNames Payload `json:"HasOtherNames" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOtherNames *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasOtherNamesID int `json:"-" pg:", fk:HasOtherNames"`
	ListID          int `json:"-" pg:", fk:List"`
}

IdentificationOtherNames represents the payload for the identification other names section.

func (*IdentificationOtherNames) Delete added in v0.5.3

func (entity *IdentificationOtherNames) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationOtherNames) Find added in v0.5.3

func (entity *IdentificationOtherNames) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationOtherNames) Get added in v0.5.3

func (entity *IdentificationOtherNames) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationOtherNames) GetID added in v0.5.3

func (entity *IdentificationOtherNames) GetID() int

GetID returns the entity identifier.

func (*IdentificationOtherNames) Marshal added in v0.5.3

func (entity *IdentificationOtherNames) Marshal() Payload

Marshal to payload structure

func (*IdentificationOtherNames) Save added in v0.5.3

func (entity *IdentificationOtherNames) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationOtherNames) SetID added in v0.5.3

func (entity *IdentificationOtherNames) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationOtherNames) Unmarshal added in v0.5.3

func (entity *IdentificationOtherNames) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationOtherNames) Valid added in v0.5.3

func (entity *IdentificationOtherNames) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationPhysical added in v0.5.3

type IdentificationPhysical struct {
	PayloadComments  Payload `json:"Comments" sql:"-"`
	PayloadEyeColor  Payload `json:"EyeColor" sql:"-"`
	PayloadHairColor Payload `json:"HairColor" sql:"-"`
	PayloadHeight    Payload `json:"Height" sql:"-"`
	PayloadSex       Payload `json:"Sex" sql:"-"`
	PayloadWeight    Payload `json:"Weight" sql:"-"`

	// Validator specific fields
	Comments  *Textarea `json:"-"`
	EyeColor  *Text     `json:"-"`
	HairColor *Text     `json:"-"`
	Sex       *Text     `json:"-"`
	Height    *Height   `json:"-"`
	Weight    *Number   `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	CommentsID  int `json:"-" pg:", fk:Comments"`
	EyeColorID  int `json:"-" pg:", fk:EyeColor"`
	HairColorID int `json:"-" pg:", fk:HairColor"`
	SexID       int `json:"-" pg:", fk:Sex"`
	HeightID    int `json:"-" pg:", fk:Height"`
	WeightID    int `json:"-" pg:", fk:Weight"`
}

IdentificationPhysical represents the payload for the identification physical traits section.

func (*IdentificationPhysical) Delete added in v0.5.3

func (entity *IdentificationPhysical) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationPhysical) Find added in v0.5.3

func (entity *IdentificationPhysical) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationPhysical) Get added in v0.5.3

func (entity *IdentificationPhysical) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationPhysical) GetID added in v0.5.3

func (entity *IdentificationPhysical) GetID() int

GetID returns the entity identifier.

func (*IdentificationPhysical) Marshal added in v0.5.3

func (entity *IdentificationPhysical) Marshal() Payload

Marshal to payload structure

func (*IdentificationPhysical) Save added in v0.5.3

func (entity *IdentificationPhysical) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationPhysical) SetID added in v0.5.3

func (entity *IdentificationPhysical) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationPhysical) Unmarshal added in v0.5.3

func (entity *IdentificationPhysical) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationPhysical) Valid added in v0.5.3

func (entity *IdentificationPhysical) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type IdentificationSSN added in v0.5.3

type IdentificationSSN struct {
	Payload Payload `json:"ssn" sql:"-"`

	// Validator specific fields
	Verified bool `json:"verified"`
	SSN      *SSN `json:"-" sql:"-"`

	// Persister specific fields
	ID    int `json:"-"`
	SSNID int `json:"-" pg:", fk:SSN"`
}

IdentificationSSN represents the payload for the identification SSN section.

func (*IdentificationSSN) Delete added in v0.5.3

func (entity *IdentificationSSN) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*IdentificationSSN) Find added in v0.5.3

func (entity *IdentificationSSN) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*IdentificationSSN) Get added in v0.5.3

func (entity *IdentificationSSN) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*IdentificationSSN) GetID added in v0.5.3

func (entity *IdentificationSSN) GetID() int

GetID returns the entity identifier.

func (*IdentificationSSN) Marshal added in v0.5.3

func (entity *IdentificationSSN) Marshal() Payload

Marshal to payload structure

func (*IdentificationSSN) Save added in v0.5.3

func (entity *IdentificationSSN) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*IdentificationSSN) SetID added in v0.5.3

func (entity *IdentificationSSN) SetID(id int)

SetID sets the entity identifier.

func (*IdentificationSSN) Unmarshal added in v0.5.3

func (entity *IdentificationSSN) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*IdentificationSSN) Valid added in v0.5.3

func (entity *IdentificationSSN) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Identifier added in v0.5.3

type Identifier interface {
	GetID() int
	SetID(id int)
}

Identifier allows for entities to be tagged with an ID

type LegalAssociationsActivitiesToOverthrow added in v0.5.3

type LegalAssociationsActivitiesToOverthrow struct {
	PayloadHasActivities Payload `json:"HasActivities" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasActivities *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	HasActivitiesID int `json:"-" pg:", fk:HasActivities"`
	ListID          int `json:"-" pg:", fk:List"`
}

LegalAssociationsActivitiesToOverthrow represents the payload for the legal associations activities to overthrow section.

func (*LegalAssociationsActivitiesToOverthrow) Delete added in v0.5.3

func (entity *LegalAssociationsActivitiesToOverthrow) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsActivitiesToOverthrow) Find added in v0.5.3

Find the previous entity stored if one is available.

func (*LegalAssociationsActivitiesToOverthrow) Get added in v0.5.3

func (entity *LegalAssociationsActivitiesToOverthrow) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsActivitiesToOverthrow) GetID added in v0.5.3

GetID returns the entity identifier.

func (*LegalAssociationsActivitiesToOverthrow) Marshal added in v0.5.3

Marshal to payload structure

func (*LegalAssociationsActivitiesToOverthrow) Save added in v0.5.3

func (entity *LegalAssociationsActivitiesToOverthrow) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsActivitiesToOverthrow) SetID added in v0.5.3

func (entity *LegalAssociationsActivitiesToOverthrow) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsActivitiesToOverthrow) Unmarshal added in v0.5.3

func (entity *LegalAssociationsActivitiesToOverthrow) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsActivitiesToOverthrow) Valid added in v0.5.3

Valid checks the value(s) against an battery of tests.

type LegalAssociationsAdvocating added in v0.5.3

type LegalAssociationsAdvocating struct {
	PayloadHasAdvocated Payload `json:"HasAdvocated" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasAdvocated *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasAdvocatedID int `json:"-" pg:", fk:HasAdvocated"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalAssociationsAdvocating represents the payload for the legal associations advocating section.

func (*LegalAssociationsAdvocating) Delete added in v0.5.3

func (entity *LegalAssociationsAdvocating) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsAdvocating) Find added in v0.5.3

func (entity *LegalAssociationsAdvocating) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalAssociationsAdvocating) Get added in v0.5.3

func (entity *LegalAssociationsAdvocating) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsAdvocating) GetID added in v0.5.3

func (entity *LegalAssociationsAdvocating) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsAdvocating) Marshal added in v0.5.3

func (entity *LegalAssociationsAdvocating) Marshal() Payload

Marshal to payload structure

func (*LegalAssociationsAdvocating) Save added in v0.5.3

func (entity *LegalAssociationsAdvocating) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsAdvocating) SetID added in v0.5.3

func (entity *LegalAssociationsAdvocating) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsAdvocating) Unmarshal added in v0.5.3

func (entity *LegalAssociationsAdvocating) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsAdvocating) Valid added in v0.5.3

func (entity *LegalAssociationsAdvocating) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsEngagedInTerrorism added in v0.5.3

type LegalAssociationsEngagedInTerrorism struct {
	PayloadHasEngaged Payload `json:"HasEngaged" sql:"-"`
	PayloadList       Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasEngaged *Branch     `json:"-"`
	List       *Collection `json:"-"`

	// Persister specific fields
	ID           int `json:"-"`
	HasEngagedID int `json:"-" pg:", fk:HasEngaged"`
	ListID       int `json:"-" pg:", fk:List"`
}

LegalAssociationsEngagedInTerrorism represents the payload for the legal associations engaged in terrorism section.

func (*LegalAssociationsEngagedInTerrorism) Delete added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsEngagedInTerrorism) Find added in v0.5.3

Find the previous entity stored if one is available.

func (*LegalAssociationsEngagedInTerrorism) Get added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsEngagedInTerrorism) GetID added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsEngagedInTerrorism) Marshal added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) Marshal() Payload

Marshal to payload structure

func (*LegalAssociationsEngagedInTerrorism) Save added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsEngagedInTerrorism) SetID added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsEngagedInTerrorism) Unmarshal added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsEngagedInTerrorism) Valid added in v0.5.3

func (entity *LegalAssociationsEngagedInTerrorism) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsMembershipOverthrow added in v0.5.3

type LegalAssociationsMembershipOverthrow struct {
	PayloadHasOverthrow Payload `json:"HasOverthrow" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOverthrow *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasOverthrowID int `json:"-" pg:", fk:HasOverthrow"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalAssociationsMembershipOverthrow represents the payload for the legal associations membership to overthrow government section.

func (*LegalAssociationsMembershipOverthrow) Delete added in v0.5.3

func (entity *LegalAssociationsMembershipOverthrow) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsMembershipOverthrow) Find added in v0.5.3

Find the previous entity stored if one is available.

func (*LegalAssociationsMembershipOverthrow) Get added in v0.5.3

func (entity *LegalAssociationsMembershipOverthrow) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsMembershipOverthrow) GetID added in v0.5.3

func (entity *LegalAssociationsMembershipOverthrow) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsMembershipOverthrow) Marshal added in v0.5.3

Marshal to payload structure

func (*LegalAssociationsMembershipOverthrow) Save added in v0.5.3

func (entity *LegalAssociationsMembershipOverthrow) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsMembershipOverthrow) SetID added in v0.5.3

func (entity *LegalAssociationsMembershipOverthrow) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsMembershipOverthrow) Unmarshal added in v0.5.3

func (entity *LegalAssociationsMembershipOverthrow) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsMembershipOverthrow) Valid added in v0.5.3

func (entity *LegalAssociationsMembershipOverthrow) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsMembershipViolence added in v0.5.3

type LegalAssociationsMembershipViolence struct {
	PayloadHasViolence Payload `json:"HasViolence" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasViolence *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasViolenceID int `json:"-" pg:", fk:HasViolence"`
	ListID        int `json:"-" pg:", fk:List"`
}

LegalAssociationsMembershipViolence represents the payload for the legal associations memberhisp advocating violence section.

func (*LegalAssociationsMembershipViolence) Delete added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsMembershipViolence) Find added in v0.5.3

Find the previous entity stored if one is available.

func (*LegalAssociationsMembershipViolence) Get added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsMembershipViolence) GetID added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) GetID() int

GetID returns the entity identifier.

func (*LegalAssociationsMembershipViolence) Marshal added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) Marshal() Payload

Marshal to payload structure

func (*LegalAssociationsMembershipViolence) Save added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsMembershipViolence) SetID added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsMembershipViolence) Unmarshal added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsMembershipViolence) Valid added in v0.5.3

func (entity *LegalAssociationsMembershipViolence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalAssociationsTerrorismAssociation added in v0.5.3

type LegalAssociationsTerrorismAssociation struct {
	PayloadHasTerrorism Payload `json:"HasTerrorism" sql:"-"`
	PayloadExplanation  Payload `json:"Explanation" sql:"-"`

	// Validator specific fields
	HasTerrorism *Branch   `json:"-"`
	Explanation  *Textarea `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasTerrorismID int `json:"-" pg:", fk:HasTerrorism"`
	ExplanationID  int `json:"-" pg:", fk:Explanation"`
}

LegalAssociationsTerrorismAssociation represents the payload for the legal associations with terrorism section.

func (*LegalAssociationsTerrorismAssociation) Delete added in v0.5.3

func (entity *LegalAssociationsTerrorismAssociation) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsTerrorismAssociation) Find added in v0.5.3

Find the previous entity stored if one is available.

func (*LegalAssociationsTerrorismAssociation) Get added in v0.5.3

func (entity *LegalAssociationsTerrorismAssociation) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsTerrorismAssociation) GetID added in v0.5.3

GetID returns the entity identifier.

func (*LegalAssociationsTerrorismAssociation) Marshal added in v0.5.3

Marshal to payload structure

func (*LegalAssociationsTerrorismAssociation) Save added in v0.5.3

func (entity *LegalAssociationsTerrorismAssociation) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsTerrorismAssociation) SetID added in v0.5.3

func (entity *LegalAssociationsTerrorismAssociation) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsTerrorismAssociation) Unmarshal added in v0.5.3

func (entity *LegalAssociationsTerrorismAssociation) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsTerrorismAssociation) Valid added in v0.5.3

Valid checks the value(s) against an battery of tests.

type LegalAssociationsTerroristOrganization added in v0.5.3

type LegalAssociationsTerroristOrganization struct {
	PayloadHasTerrorist Payload `json:"HasTerrorist" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasTerrorist *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasTerroristID int `json:"-" pg:", fk:HasTerrorist"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalAssociationsTerroristOrganization represents the payload for the legal associations with terrorist organizations section.

func (*LegalAssociationsTerroristOrganization) Delete added in v0.5.3

func (entity *LegalAssociationsTerroristOrganization) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalAssociationsTerroristOrganization) Find added in v0.5.3

Find the previous entity stored if one is available.

func (*LegalAssociationsTerroristOrganization) Get added in v0.5.3

func (entity *LegalAssociationsTerroristOrganization) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalAssociationsTerroristOrganization) GetID added in v0.5.3

GetID returns the entity identifier.

func (*LegalAssociationsTerroristOrganization) Marshal added in v0.5.3

Marshal to payload structure

func (*LegalAssociationsTerroristOrganization) Save added in v0.5.3

func (entity *LegalAssociationsTerroristOrganization) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalAssociationsTerroristOrganization) SetID added in v0.5.3

func (entity *LegalAssociationsTerroristOrganization) SetID(id int)

SetID sets the entity identifier.

func (*LegalAssociationsTerroristOrganization) Unmarshal added in v0.5.3

func (entity *LegalAssociationsTerroristOrganization) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalAssociationsTerroristOrganization) Valid added in v0.5.3

Valid checks the value(s) against an battery of tests.

type LegalComments added in v0.5.3

type LegalComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

LegalComments represents the payload for the legal comments section.

func (*LegalComments) Delete added in v0.5.3

func (entity *LegalComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalComments) Find added in v0.5.3

func (entity *LegalComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalComments) Get added in v0.5.3

func (entity *LegalComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalComments) GetID added in v0.5.3

func (entity *LegalComments) GetID() int

GetID returns the entity identifier.

func (*LegalComments) Marshal added in v0.5.3

func (entity *LegalComments) Marshal() Payload

Marshal to payload structure

func (*LegalComments) Save added in v0.5.3

func (entity *LegalComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalComments) SetID added in v0.5.3

func (entity *LegalComments) SetID(id int)

SetID sets the entity identifier.

func (*LegalComments) Unmarshal added in v0.5.3

func (entity *LegalComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalComments) Valid added in v0.5.3

func (entity *LegalComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalCourt added in v0.5.3

type LegalCourt struct {
	PayloadHasCourtActions Payload `json:"HasCourtActions" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasCourtActions *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasCourtActionsID int `json:"-" pg:", fk:HasCourtActions"`
	ListID            int `json:"-" pg:", fk:List"`
}

LegalCourt represents the payload for the legal noncriminal court section.

func (*LegalCourt) Delete added in v0.5.3

func (entity *LegalCourt) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalCourt) Find added in v0.5.3

func (entity *LegalCourt) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalCourt) Get added in v0.5.3

func (entity *LegalCourt) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalCourt) GetID added in v0.5.3

func (entity *LegalCourt) GetID() int

GetID returns the entity identifier.

func (*LegalCourt) Marshal added in v0.5.3

func (entity *LegalCourt) Marshal() Payload

Marshal to payload structure

func (*LegalCourt) Save added in v0.5.3

func (entity *LegalCourt) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalCourt) SetID added in v0.5.3

func (entity *LegalCourt) SetID(id int)

SetID sets the entity identifier.

func (*LegalCourt) Unmarshal added in v0.5.3

func (entity *LegalCourt) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalCourt) Valid added in v0.5.3

func (entity *LegalCourt) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalInvestigationsDebarred added in v0.5.3

type LegalInvestigationsDebarred struct {
	PayloadHasDebarment Payload `json:"HasDebarment" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDebarment *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HasDebarmentID int `json:"-" pg:", fk:HasDebarment"`
	ListID         int `json:"-" pg:", fk:List"`
}

LegalInvestigationsDebarred represents the payload for the legal investigations debarred section.

func (*LegalInvestigationsDebarred) Delete added in v0.5.3

func (entity *LegalInvestigationsDebarred) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalInvestigationsDebarred) Find added in v0.5.3

func (entity *LegalInvestigationsDebarred) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalInvestigationsDebarred) Get added in v0.5.3

func (entity *LegalInvestigationsDebarred) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the (int, database).

func (*LegalInvestigationsDebarred) GetID added in v0.5.3

func (entity *LegalInvestigationsDebarred) GetID() int

GetID returns the entity identifier.

func (*LegalInvestigationsDebarred) Marshal added in v0.5.3

func (entity *LegalInvestigationsDebarred) Marshal() Payload

Marshal to payload structure

func (*LegalInvestigationsDebarred) Save added in v0.5.3

func (entity *LegalInvestigationsDebarred) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalInvestigationsDebarred) SetID added in v0.5.3

func (entity *LegalInvestigationsDebarred) SetID(id int)

SetID sets the entity identifier.

func (*LegalInvestigationsDebarred) Unmarshal added in v0.5.3

func (entity *LegalInvestigationsDebarred) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalInvestigationsDebarred) Valid added in v0.5.3

func (entity *LegalInvestigationsDebarred) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalInvestigationsHistory added in v0.5.3

type LegalInvestigationsHistory struct {
	PayloadHasHistory Payload `json:"HasHistory" sql:"-"`
	PayloadList       Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasHistory *Branch     `json:"-"`
	List       *Collection `json:"-"`

	// Persister specific fields
	ID           int `json:"-"`
	HasHistoryID int `json:"-" pg:", fk:HasHistory"`
	ListID       int `json:"-" pg:", fk:List"`
}

LegalInvestigationsHistory represents the payload for the legal investigations history section.

func (*LegalInvestigationsHistory) Delete added in v0.5.3

func (entity *LegalInvestigationsHistory) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalInvestigationsHistory) Find added in v0.5.3

func (entity *LegalInvestigationsHistory) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalInvestigationsHistory) Get added in v0.5.3

func (entity *LegalInvestigationsHistory) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalInvestigationsHistory) GetID added in v0.5.3

func (entity *LegalInvestigationsHistory) GetID() int

GetID returns the entity identifier.

func (*LegalInvestigationsHistory) Marshal added in v0.5.3

func (entity *LegalInvestigationsHistory) Marshal() Payload

Marshal to payload structure

func (*LegalInvestigationsHistory) Save added in v0.5.3

func (entity *LegalInvestigationsHistory) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalInvestigationsHistory) SetID added in v0.5.3

func (entity *LegalInvestigationsHistory) SetID(id int)

SetID sets the entity identifier.

func (*LegalInvestigationsHistory) Unmarshal added in v0.5.3

func (entity *LegalInvestigationsHistory) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalInvestigationsHistory) Valid added in v0.5.3

func (entity *LegalInvestigationsHistory) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalInvestigationsRevoked added in v0.5.3

type LegalInvestigationsRevoked struct {
	PayloadHasRevocations Payload `json:"HasRevocations" sql:"-"`
	PayloadList           Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasRevocations *Branch     `json:"-"`
	List           *Collection `json:"-"`

	// Persister specific fields
	ID               int `json:"-"`
	HasRevocationsID int `json:"-" pg:", fk:HasRevocations"`
	ListID           int `json:"-" pg:", fk:List"`
}

LegalInvestigationsRevoked represents the payload for the legal investigatinos revoked section.

func (*LegalInvestigationsRevoked) Delete added in v0.5.3

func (entity *LegalInvestigationsRevoked) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalInvestigationsRevoked) Find added in v0.5.3

func (entity *LegalInvestigationsRevoked) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalInvestigationsRevoked) Get added in v0.5.3

func (entity *LegalInvestigationsRevoked) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalInvestigationsRevoked) GetID added in v0.5.3

func (entity *LegalInvestigationsRevoked) GetID() int

GetID returns the entity identifier.

func (*LegalInvestigationsRevoked) Marshal added in v0.5.3

func (entity *LegalInvestigationsRevoked) Marshal() Payload

Marshal to payload structure

func (*LegalInvestigationsRevoked) Save added in v0.5.3

func (entity *LegalInvestigationsRevoked) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalInvestigationsRevoked) SetID added in v0.5.3

func (entity *LegalInvestigationsRevoked) SetID(id int)

SetID sets the entity identifier.

func (*LegalInvestigationsRevoked) Unmarshal added in v0.5.3

func (entity *LegalInvestigationsRevoked) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalInvestigationsRevoked) Valid added in v0.5.3

func (entity *LegalInvestigationsRevoked) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalPoliceAdditionalOffenses added in v0.5.3

type LegalPoliceAdditionalOffenses struct {
	PayloadHasOtherOffenses Payload `json:"HasOtherOffenses" sql:"-"`
	PayloadList             Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOtherOffenses *Branch     `json:"-"`
	List             *Collection `json:"-"`

	// Persister specific fields
	ID                 int `json:"-"`
	HasOtherOffensesID int `json:"-" pg:", fk:HasOtherOffenses"`
	ListID             int `json:"-" pg:", fk:List"`
}

LegalPoliceAdditionalOffenses represents the payload for the legal police additional offenses section.

func (*LegalPoliceAdditionalOffenses) Delete added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalPoliceAdditionalOffenses) Find added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalPoliceAdditionalOffenses) Get added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalPoliceAdditionalOffenses) GetID added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) GetID() int

GetID returns the entity identifier.

func (*LegalPoliceAdditionalOffenses) Marshal added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) Marshal() Payload

Marshal to payload structure

func (*LegalPoliceAdditionalOffenses) Save added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalPoliceAdditionalOffenses) SetID added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) SetID(id int)

SetID sets the entity identifier.

func (*LegalPoliceAdditionalOffenses) Unmarshal added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalPoliceAdditionalOffenses) Valid added in v0.5.3

func (entity *LegalPoliceAdditionalOffenses) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalPoliceDomesticViolence added in v0.5.3

type LegalPoliceDomesticViolence struct {
	PayloadHasDomesticViolence Payload `json:"HasDomesticViolence" sql:"-"`
	PayloadList                Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDomesticViolence *Branch     `json:"-"`
	List                *Collection `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	HasDomesticViolenceID int `json:"-"`
	ListID                int `json:"-" pg:", fk:List"`
}

LegalPoliceDomesticViolence represents the payload for the legal police domestic violence section.

func (*LegalPoliceDomesticViolence) Delete added in v0.5.3

func (entity *LegalPoliceDomesticViolence) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalPoliceDomesticViolence) Find added in v0.5.3

func (entity *LegalPoliceDomesticViolence) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalPoliceDomesticViolence) Get added in v0.5.3

func (entity *LegalPoliceDomesticViolence) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalPoliceDomesticViolence) GetID added in v0.5.3

func (entity *LegalPoliceDomesticViolence) GetID() int

GetID returns the entity identifier.

func (*LegalPoliceDomesticViolence) Marshal added in v0.5.3

func (entity *LegalPoliceDomesticViolence) Marshal() Payload

Marshal to payload structure

func (*LegalPoliceDomesticViolence) Save added in v0.5.3

func (entity *LegalPoliceDomesticViolence) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalPoliceDomesticViolence) SetID added in v0.5.3

func (entity *LegalPoliceDomesticViolence) SetID(id int)

SetID sets the entity identifier.

func (*LegalPoliceDomesticViolence) Unmarshal added in v0.5.3

func (entity *LegalPoliceDomesticViolence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalPoliceDomesticViolence) Valid added in v0.5.3

func (entity *LegalPoliceDomesticViolence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalPoliceOffenses added in v0.5.3

type LegalPoliceOffenses struct {
	PayloadHasOffenses Payload `json:"HasOffenses" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasOffenses *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasOffensesID int `json:"-" pg:", fk:HasOffenses"`
	ListID        int `json:"-" pg:", fk:List"`
}

LegalPoliceOffenses represents the payload for the legal police offenses section.

func (*LegalPoliceOffenses) Delete added in v0.5.3

func (entity *LegalPoliceOffenses) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalPoliceOffenses) Find added in v0.5.3

func (entity *LegalPoliceOffenses) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalPoliceOffenses) Get added in v0.5.3

func (entity *LegalPoliceOffenses) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalPoliceOffenses) GetID added in v0.5.3

func (entity *LegalPoliceOffenses) GetID() int

GetID returns the entity identifier.

func (*LegalPoliceOffenses) Marshal added in v0.5.3

func (entity *LegalPoliceOffenses) Marshal() Payload

Marshal to payload structure

func (*LegalPoliceOffenses) Save added in v0.5.3

func (entity *LegalPoliceOffenses) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalPoliceOffenses) SetID added in v0.5.3

func (entity *LegalPoliceOffenses) SetID(id int)

SetID sets the entity identifier.

func (*LegalPoliceOffenses) Unmarshal added in v0.5.3

func (entity *LegalPoliceOffenses) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalPoliceOffenses) Valid added in v0.5.3

func (entity *LegalPoliceOffenses) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalTechnologyManipulating added in v0.5.3

type LegalTechnologyManipulating struct {
	PayloadHasManipulating Payload `json:"HasManipulating" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasManipulating *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasManipulatingID int `json:"-" pg:", fk:HasManipulating"`
	ListID            int `json:"-" pg:", fk:List"`
}

LegalTechnologyManipulating represents the payload for the legal technology manipulating section.

func (*LegalTechnologyManipulating) Delete added in v0.5.3

func (entity *LegalTechnologyManipulating) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalTechnologyManipulating) Find added in v0.5.3

func (entity *LegalTechnologyManipulating) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalTechnologyManipulating) Get added in v0.5.3

func (entity *LegalTechnologyManipulating) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalTechnologyManipulating) GetID added in v0.5.3

func (entity *LegalTechnologyManipulating) GetID() int

GetID returns the entity identifier.

func (*LegalTechnologyManipulating) Marshal added in v0.5.3

func (entity *LegalTechnologyManipulating) Marshal() Payload

Marshal to payload structure

func (*LegalTechnologyManipulating) Save added in v0.5.3

func (entity *LegalTechnologyManipulating) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalTechnologyManipulating) SetID added in v0.5.3

func (entity *LegalTechnologyManipulating) SetID(id int)

SetID sets the entity identifier.

func (*LegalTechnologyManipulating) Unmarshal added in v0.5.3

func (entity *LegalTechnologyManipulating) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalTechnologyManipulating) Valid added in v0.5.3

func (entity *LegalTechnologyManipulating) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalTechnologyUnauthorized added in v0.5.3

type LegalTechnologyUnauthorized struct {
	PayloadHasUnauthorized Payload `json:"HasUnauthorized" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasUnauthorized *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasUnauthorizedID int `json:"-" pg:", fk:HasUnauthorized"`
	ListID            int `json:"-" pg:", fk:List"`
}

LegalTechnologyUnauthorized represents the payload for the legal technology unauthorized access section.

func (*LegalTechnologyUnauthorized) Delete added in v0.5.3

func (entity *LegalTechnologyUnauthorized) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalTechnologyUnauthorized) Find added in v0.5.3

func (entity *LegalTechnologyUnauthorized) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalTechnologyUnauthorized) Get added in v0.5.3

func (entity *LegalTechnologyUnauthorized) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalTechnologyUnauthorized) GetID added in v0.5.3

func (entity *LegalTechnologyUnauthorized) GetID() int

GetID returns the entity identifier.

func (*LegalTechnologyUnauthorized) Marshal added in v0.5.3

func (entity *LegalTechnologyUnauthorized) Marshal() Payload

Marshal to payload structure

func (*LegalTechnologyUnauthorized) Save added in v0.5.3

func (entity *LegalTechnologyUnauthorized) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalTechnologyUnauthorized) SetID added in v0.5.3

func (entity *LegalTechnologyUnauthorized) SetID(id int)

SetID sets the entity identifier.

func (*LegalTechnologyUnauthorized) Unmarshal added in v0.5.3

func (entity *LegalTechnologyUnauthorized) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalTechnologyUnauthorized) Valid added in v0.5.3

func (entity *LegalTechnologyUnauthorized) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LegalTechnologyUnlawful added in v0.5.3

type LegalTechnologyUnlawful struct {
	PayloadHasUnlawful Payload `json:"HasUnlawful" sql:"-"`
	PayloadList        Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasUnlawful *Branch     `json:"-"`
	List        *Collection `json:"-"`

	// Persister specific fields
	ID            int `json:"-"`
	HasUnlawfulID int `json:"-" pg:", fk:HasUnlawful"`
	ListID        int `json:"-" pg:", fk:List"`
}

LegalTechnologyUnlawful represents the payload for the legal technology unlawful use section.

func (*LegalTechnologyUnlawful) Delete added in v0.5.3

func (entity *LegalTechnologyUnlawful) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*LegalTechnologyUnlawful) Find added in v0.5.3

func (entity *LegalTechnologyUnlawful) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*LegalTechnologyUnlawful) Get added in v0.5.3

func (entity *LegalTechnologyUnlawful) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*LegalTechnologyUnlawful) GetID added in v0.5.3

func (entity *LegalTechnologyUnlawful) GetID() int

GetID returns the entity identifier.

func (*LegalTechnologyUnlawful) Marshal added in v0.5.3

func (entity *LegalTechnologyUnlawful) Marshal() Payload

Marshal to payload structure

func (*LegalTechnologyUnlawful) Save added in v0.5.3

func (entity *LegalTechnologyUnlawful) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*LegalTechnologyUnlawful) SetID added in v0.5.3

func (entity *LegalTechnologyUnlawful) SetID(id int)

SetID sets the entity identifier.

func (*LegalTechnologyUnlawful) Unmarshal added in v0.5.3

func (entity *LegalTechnologyUnlawful) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*LegalTechnologyUnlawful) Valid added in v0.5.3

func (entity *LegalTechnologyUnlawful) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Location added in v0.5.3

type Location struct {
	ID              int    `json:"-"`
	Layout          string `json:"layout"`
	Street1         string `json:"street,omitempty"`
	Street2         string `json:"street2,omitempty"`
	City            string `json:"city,omitempty"`
	State           string `json:"state,omitempty"`
	Zipcode         string `json:"zipcode,omitempty"`
	County          string `json:"county,omitempty"`
	Country         string `json:"country,omitempty"`
	CountryComments string `json:"countryComments,omitempty"`
	Validated       bool   `json:"validated,omitempty"`
}

Location is a basic input.

func (*Location) Delete added in v0.5.3

func (entity *Location) Delete(context DatabaseService, account int) (int, error)

Delete the location from data storage.

func (*Location) Find added in v0.5.3

func (entity *Location) Find(context DatabaseService) error

Find is not used for locations. Please use the `Get` method.

func (*Location) Get added in v0.5.3

func (entity *Location) Get(context DatabaseService, account int) (int, error)

Get the location from data storage.

func (*Location) GetID added in v0.5.3

func (entity *Location) GetID() int

GetID returns the entity identifier.

func (*Location) IsDomestic added in v0.5.3

func (entity *Location) IsDomestic() bool

IsDomestic returns whether the location is in the United States.

func (*Location) IsInternational added in v0.5.3

func (entity *Location) IsInternational() bool

IsInternational returns whether the location is outside the United States and not a postal address.

func (*Location) IsPostOffice added in v0.5.3

func (entity *Location) IsPostOffice() bool

IsPostOffice returns whether the location is APO, FPO, or DPO.

func (*Location) Marshal added in v0.5.3

func (entity *Location) Marshal() Payload

Marshal to payload structure

func (*Location) Save added in v0.5.3

func (entity *Location) Save(context DatabaseService, account int) (int, error)

Save the location to data storage.

func (*Location) SetID added in v0.5.3

func (entity *Location) SetID(id int)

SetID sets the entity identifier.

func (*Location) Unmarshal added in v0.5.3

func (entity *Location) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Location) Valid added in v0.5.3

func (entity *Location) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type LogFields added in v0.5.3

type LogFields map[string]interface{}

LogFields are named keys to hold additional information to be reported in the log messages.

type LogService added in v0.5.3

type LogService interface {
	AddField(name string, value interface{})
	Print(message string, fields LogFields)
	PrintError(message string, err error, fields LogFields)
	Debug(message string, fields LogFields)
	DebugError(message string, err error, fields LogFields)
	Warn(message string, fields LogFields)
	WarnError(message string, err error, fields LogFields)
	Info(message string, fields LogFields)
	InfoError(message string, err error, fields LogFields)
	Fatal(message string, fields LogFields)
	FatalError(message string, err error, fields LogFields)
	Panic(message string, fields LogFields)
	PanicError(message string, err error, fields LogFields)
}

LogService represents common methods for a logging service.

type Marshaller added in v0.5.3

type Marshaller interface {
	Unmarshal([]byte) error
	Marshal() Payload
}

Marshaller is structure which can marshal and unmarshal JSON.

type Migration added in v0.5.3

type Migration struct {
	Env Settings
}

Migration is a service used for data storage migrations.

func (Migration) CurrentVersion added in v0.5.3

func (service Migration) CurrentVersion(directory, environment, schema string) (int64, error)

CurrentVersion gets the database current version according to the migration status

func (Migration) Up added in v0.5.3

func (service Migration) Up(directory, environment, schema string) error

Up attempts to push any pending updates to the database

type MilitaryComments added in v0.5.3

type MilitaryComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

MilitaryComments represents the payload for the military comments section.

func (*MilitaryComments) Delete added in v0.5.3

func (entity *MilitaryComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryComments) Find added in v0.5.3

func (entity *MilitaryComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*MilitaryComments) Get added in v0.5.3

func (entity *MilitaryComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryComments) GetID added in v0.5.3

func (entity *MilitaryComments) GetID() int

GetID returns the entity identifier.

func (*MilitaryComments) Marshal added in v0.5.3

func (entity *MilitaryComments) Marshal() Payload

Marshal to payload structure

func (*MilitaryComments) Save added in v0.5.3

func (entity *MilitaryComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*MilitaryComments) SetID added in v0.5.3

func (entity *MilitaryComments) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryComments) Unmarshal added in v0.5.3

func (entity *MilitaryComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryComments) Valid added in v0.5.3

func (entity *MilitaryComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitaryDisciplinary added in v0.5.3

type MilitaryDisciplinary struct {
	PayloadHasDisciplinary Payload `json:"HasDisciplinary" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasDisciplinary *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	HasDisciplinaryID int `json:"-" pg:", fk:HasDisciplinary"`
	ListID            int `json:"-" pg:", fk:List"`
}

MilitaryDisciplinary represents the payload for the military disposition section.

func (*MilitaryDisciplinary) Delete added in v0.5.3

func (entity *MilitaryDisciplinary) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryDisciplinary) Find added in v0.5.3

func (entity *MilitaryDisciplinary) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*MilitaryDisciplinary) Get added in v0.5.3

func (entity *MilitaryDisciplinary) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryDisciplinary) GetID added in v0.5.3

func (entity *MilitaryDisciplinary) GetID() int

GetID returns the entity identifier.

func (*MilitaryDisciplinary) Marshal added in v0.5.3

func (entity *MilitaryDisciplinary) Marshal() Payload

Marshal to payload structure

func (*MilitaryDisciplinary) Save added in v0.5.3

func (entity *MilitaryDisciplinary) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*MilitaryDisciplinary) SetID added in v0.5.3

func (entity *MilitaryDisciplinary) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryDisciplinary) Unmarshal added in v0.5.3

func (entity *MilitaryDisciplinary) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryDisciplinary) Valid added in v0.5.3

func (entity *MilitaryDisciplinary) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitaryForeign added in v0.5.3

type MilitaryForeign struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

MilitaryForeign represents the payload for the military foreign section.

func (*MilitaryForeign) Delete added in v0.5.3

func (entity *MilitaryForeign) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryForeign) Find added in v0.5.3

func (entity *MilitaryForeign) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*MilitaryForeign) Get added in v0.5.3

func (entity *MilitaryForeign) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryForeign) GetID added in v0.5.3

func (entity *MilitaryForeign) GetID() int

GetID returns the entity identifier.

func (*MilitaryForeign) Marshal added in v0.5.3

func (entity *MilitaryForeign) Marshal() Payload

Marshal to payload structure

func (*MilitaryForeign) Save added in v0.5.3

func (entity *MilitaryForeign) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*MilitaryForeign) SetID added in v0.5.3

func (entity *MilitaryForeign) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryForeign) Unmarshal added in v0.5.3

func (entity *MilitaryForeign) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryForeign) Valid added in v0.5.3

func (entity *MilitaryForeign) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitaryHistory added in v0.5.3

type MilitaryHistory struct {
	PayloadHasServed Payload `json:"HasServed" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasServed *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	HasServedID int `json:"-" pg:", fk:HasServed"`
	ListID      int `json:"-" pg:", fk:List"`
}

MilitaryHistory represents the payload for the military history section.

func (*MilitaryHistory) Delete added in v0.5.3

func (entity *MilitaryHistory) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitaryHistory) Find added in v0.5.3

func (entity *MilitaryHistory) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*MilitaryHistory) Get added in v0.5.3

func (entity *MilitaryHistory) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitaryHistory) GetID added in v0.5.3

func (entity *MilitaryHistory) GetID() int

GetID returns the entity identifier.

func (*MilitaryHistory) Marshal added in v0.5.3

func (entity *MilitaryHistory) Marshal() Payload

Marshal to payload structure

func (*MilitaryHistory) Save added in v0.5.3

func (entity *MilitaryHistory) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*MilitaryHistory) SetID added in v0.5.3

func (entity *MilitaryHistory) SetID(id int)

SetID sets the entity identifier.

func (*MilitaryHistory) Unmarshal added in v0.5.3

func (entity *MilitaryHistory) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitaryHistory) Valid added in v0.5.3

func (entity *MilitaryHistory) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type MilitarySelective added in v0.5.3

type MilitarySelective struct {
	PayloadWasBornAfter       Payload `json:"WasBornAfter" sql:"-"`
	PayloadHasRegistered      Payload `json:"HasRegistered" sql:"-"`
	PayloadRegistrationNumber Payload `json:"RegistrationNumber" sql:"-"`
	PayloadExplanation        Payload `json:"Explanation" sql:"-"`

	// Validator specific fields
	WasBornAfter       *Branch   `json:"-"`
	HasRegistered      *Branch   `json:"-"`
	RegistrationNumber *Text     `json:"-"`
	Explanation        *Textarea `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	WasBornAfterID       int `json:"-" pg:", fk:WasBornAfter"`
	HasRegisteredID      int `json:"-" pg:", fk:HasRegistered"`
	RegistrationNumberID int `json:"-" pg:", fk:RegistrationNumber"`
	ExplanationID        int `json:"-" pg:", fk:Explanation"`
}

MilitarySelective represents the payload for the military service section.

func (*MilitarySelective) Delete added in v0.5.3

func (entity *MilitarySelective) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*MilitarySelective) Find added in v0.5.3

func (entity *MilitarySelective) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*MilitarySelective) Get added in v0.5.3

func (entity *MilitarySelective) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*MilitarySelective) GetID added in v0.5.3

func (entity *MilitarySelective) GetID() int

GetID returns the entity identifier.

func (*MilitarySelective) Marshal added in v0.5.3

func (entity *MilitarySelective) Marshal() Payload

Marshal to payload structure

func (*MilitarySelective) Save added in v0.5.3

func (entity *MilitarySelective) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*MilitarySelective) SetID added in v0.5.3

func (entity *MilitarySelective) SetID(id int)

SetID sets the entity identifier.

func (*MilitarySelective) Unmarshal added in v0.5.3

func (entity *MilitarySelective) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*MilitarySelective) Valid added in v0.5.3

func (entity *MilitarySelective) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Name added in v0.5.3

type Name struct {
	ID                int    `json:"-"`
	First             string `json:"first"`
	FirstInitialOnly  bool   `json:"firstInitialOnly"`
	Middle            string `json:"middle"`
	MiddleInitialOnly bool   `json:"middleInitialOnly"`
	NoMiddleName      bool   `json:"noMiddleName"`
	Last              string `json:"last"`
	LastInitialOnly   bool   `json:"lastInitialOnly"`
	Suffix            string `json:"suffix"`
	SuffixOther       string `json:"suffixOther"`
}

Name is a basic input.

func (*Name) Delete added in v0.5.3

func (entity *Name) Delete(context DatabaseService, account int) (int, error)

Delete the name from data storage.

func (*Name) Find added in v0.5.3

func (entity *Name) Find(context DatabaseService) error

Find is not used for names. Please use the `Get` method.

func (*Name) Get added in v0.5.3

func (entity *Name) Get(context DatabaseService, account int) (int, error)

Get the name from data storage.

func (*Name) GetID added in v0.5.3

func (entity *Name) GetID() int

GetID returns the entity identifier.

func (*Name) Marshal added in v0.5.3

func (entity *Name) Marshal() Payload

Marshal to payload structure

func (*Name) Save added in v0.5.3

func (entity *Name) Save(context DatabaseService, account int) (int, error)

Save the name to data storage.

func (*Name) SetID added in v0.5.3

func (entity *Name) SetID(id int)

SetID sets the entity identifier.

func (*Name) Unmarshal added in v0.5.3

func (entity *Name) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Name) Valid added in v0.5.3

func (entity *Name) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type NotApplicable added in v0.5.3

type NotApplicable struct {
	ID         int  `json:"-"`
	Applicable bool `json:"applicable"`
}

NotApplicable is a basic input.

func (*NotApplicable) Delete added in v0.5.3

func (entity *NotApplicable) Delete(context DatabaseService, account int) (int, error)

Delete the entity from data storage.

func (*NotApplicable) Find added in v0.5.3

func (entity *NotApplicable) Find(context DatabaseService) error

Find is not used for not applicable values. Please use the `Get` method.

func (*NotApplicable) Get added in v0.5.3

func (entity *NotApplicable) Get(context DatabaseService, account int) (int, error)

Get the entity from data storage.

func (*NotApplicable) GetID added in v0.5.3

func (entity *NotApplicable) GetID() int

GetID returns the entity identifier.

func (*NotApplicable) Marshal added in v0.5.3

func (entity *NotApplicable) Marshal() Payload

Marshal to payload structure

func (*NotApplicable) Save added in v0.5.3

func (entity *NotApplicable) Save(context DatabaseService, account int) (int, error)

Save the entity to data storage.

func (*NotApplicable) SetID added in v0.5.3

func (entity *NotApplicable) SetID(id int)

SetID sets the entity identifier.

func (*NotApplicable) Unmarshal added in v0.5.3

func (entity *NotApplicable) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*NotApplicable) Valid added in v0.5.3

func (entity *NotApplicable) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Number added in v0.5.3

type Number struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Number is a basic input.

func (*Number) Delete added in v0.5.3

func (entity *Number) Delete(context DatabaseService, account int) (int, error)

Delete the number from data storage.

func (*Number) Find added in v0.5.3

func (entity *Number) Find(context DatabaseService) error

Find is not used for numbers. Please use the `Get` method.

func (*Number) Get added in v0.5.3

func (entity *Number) Get(context DatabaseService, account int) (int, error)

Get the number from data storage.

func (*Number) GetID added in v0.5.3

func (entity *Number) GetID() int

GetID returns the entity identifier.

func (*Number) Marshal added in v0.5.3

func (entity *Number) Marshal() Payload

Marshal to payload structure

func (*Number) Save added in v0.5.3

func (entity *Number) Save(context DatabaseService, account int) (int, error)

Save the number to data storage.

func (*Number) SetID added in v0.5.3

func (entity *Number) SetID(id int)

SetID sets the entity identifier.

func (*Number) Unmarshal added in v0.5.3

func (entity *Number) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Number) Valid added in v0.5.3

func (entity *Number) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Payload added in v0.5.3

type Payload struct {
	Type  string          `json:"type"`
	Props json.RawMessage `json:"props,omitempty"`
}

Payload is a basic structure to encapsulate a generic structure.

func MarshalPayloadEntity added in v0.5.3

func MarshalPayloadEntity(typeName string, entity Entity) Payload

MarshalPayloadEntity basic payload structure with an entity.

func (Payload) Entity added in v0.5.3

func (payload Payload) Entity() (Entity, error)

Entity returns the appropriate entity as an interface based on its type.

func (Payload) SafeEntity added in v0.5.3

func (payload Payload) SafeEntity() (Entity, error)

SafeEntity returns the appropriate entity as an interface based on its type and is at the section level.

func (*Payload) Unmarshal added in v0.5.3

func (payload *Payload) Unmarshal(raw []byte) error

Unmarshal basic payload structure.

func (Payload) UnmarshalEntity added in v0.5.3

func (payload Payload) UnmarshalEntity(raw []byte) (Entity, error)

UnmarshalEntity returns the appropriate entity as an interface based on its type.

func (Payload) Valid added in v0.5.3

func (payload Payload) Valid() (bool, error)

Valid return whether the entity validates.

type PayloadProperties added in v0.5.3

type PayloadProperties map[string]Payload

PayloadProperties is a structure of JSON where it is an object of named properties which each value being that of a Payload.

func (*PayloadProperties) Delete added in v0.5.3

func (entity *PayloadProperties) Delete(context DatabaseService, account int) (int, error)

Delete the entity from data storage.

func (*PayloadProperties) Get added in v0.5.3

func (entity *PayloadProperties) Get(context DatabaseService, account int) (int, error)

Get the entity from data storage.

func (*PayloadProperties) Save added in v0.5.3

func (entity *PayloadProperties) Save(context DatabaseService, account int) (int, error)

Save the entity to data storage.

type PdfService added in v0.5.6

type PdfService interface {
	CreatePdf(application map[string]interface{}, pdfType ArchivalPdf, hash string) ([]byte, error)
	SignatureAvailable(application map[string]interface{}, pdfType ArchivalPdf) (*time.Time, bool)
}

PdfService declares operations to create and query archival PDFs.

type Persister added in v0.5.3

type Persister interface {
	Save(context DatabaseService, account int) (int, error)
	Delete(context DatabaseService, account int) (int, error)
	Get(context DatabaseService, account int) (int, error)
}

Persister interface provides common functionality for persisting data to storage.

type PhysicalAddress added in v0.5.3

type PhysicalAddress struct {
	PayloadHasDifferentAddress Payload `json:"HasDifferentAddress" sql:"-"`
	PayloadAddress             Payload `json:"Address" sql:"-"`
	PayloadTelephone           Payload `json:"Telephone" sql:"-"`

	// Validator specific fields
	HasDifferentAddress *Branch    `json:"-"`
	Address             *Location  `json:"-"`
	Telephone           *Telephone `json:"-"`

	// Persister specific fields
	ID                    int `json:"-"`
	AccountID             int `json:"-"`
	HasDifferentAddressID int `json:"-" pg:"fk:HasDifferentAddress"`
	AddressID             int `json:"-" pg:"fk:Address"`
	TelephoneID           int `json:"-" pg:"fk:Telephone"`
}

PhysicalAddress is a basic input.

func (*PhysicalAddress) Delete added in v0.5.3

func (entity *PhysicalAddress) Delete(context DatabaseService, account int) (int, error)

Delete the PhysicalAddress entity.

func (*PhysicalAddress) Find added in v0.5.3

func (entity *PhysicalAddress) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*PhysicalAddress) Get added in v0.5.3

func (entity *PhysicalAddress) Get(context DatabaseService, account int) (int, error)

Get the PhysicalAddress entity.

func (*PhysicalAddress) GetID added in v0.5.3

func (entity *PhysicalAddress) GetID() int

GetID returns the entity identifier.

func (*PhysicalAddress) Marshal added in v0.5.3

func (entity *PhysicalAddress) Marshal() Payload

Marshal to payload structure

func (*PhysicalAddress) Save added in v0.5.3

func (entity *PhysicalAddress) Save(context DatabaseService, account int) (int, error)

Save the PhysicalAddress entity.

func (*PhysicalAddress) SetID added in v0.5.3

func (entity *PhysicalAddress) SetID(id int)

SetID sets the entity identifier.

func (*PhysicalAddress) Unmarshal added in v0.5.3

func (entity *PhysicalAddress) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PhysicalAddress) Valid added in v0.5.3

func (entity *PhysicalAddress) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalComments added in v0.5.3

type PsychologicalComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

PsychologicalComments represents the payload for the psychological comments section.

func (*PsychologicalComments) Delete added in v0.5.3

func (entity *PsychologicalComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalComments) Find added in v0.5.3

func (entity *PsychologicalComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*PsychologicalComments) Get added in v0.5.3

func (entity *PsychologicalComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalComments) GetID added in v0.5.3

func (entity *PsychologicalComments) GetID() int

GetID returns the entity identifier.

func (*PsychologicalComments) Marshal added in v0.5.3

func (entity *PsychologicalComments) Marshal() Payload

Marshal to payload structure

func (*PsychologicalComments) Save added in v0.5.3

func (entity *PsychologicalComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*PsychologicalComments) SetID added in v0.5.3

func (entity *PsychologicalComments) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalComments) Unmarshal added in v0.5.3

func (entity *PsychologicalComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalComments) Valid added in v0.5.3

func (entity *PsychologicalComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalCompetence added in v0.5.3

type PsychologicalCompetence struct {
	PayloadIsIncompetent Payload `json:"IsIncompetent" sql:"-"`
	PayloadList          Payload `json:"List" sql:"-"`

	// Validator specific fields
	IsIncompetent *Branch     `json:"-"`
	List          *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	IsIncompetentID int `json:"-" pg:", fk:IsIncompetent"`
	ListID          int `json:"-" pg:", fk:List"`
}

PsychologicalCompetence represents the payload for the psychological competence section.

func (*PsychologicalCompetence) Delete added in v0.5.3

func (entity *PsychologicalCompetence) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalCompetence) Find added in v0.5.3

func (entity *PsychologicalCompetence) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*PsychologicalCompetence) Get added in v0.5.3

func (entity *PsychologicalCompetence) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalCompetence) GetID added in v0.5.3

func (entity *PsychologicalCompetence) GetID() int

GetID returns the entity identifier.

func (*PsychologicalCompetence) Marshal added in v0.5.3

func (entity *PsychologicalCompetence) Marshal() Payload

Marshal to payload structure

func (*PsychologicalCompetence) Save added in v0.5.3

func (entity *PsychologicalCompetence) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*PsychologicalCompetence) SetID added in v0.5.3

func (entity *PsychologicalCompetence) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalCompetence) Unmarshal added in v0.5.3

func (entity *PsychologicalCompetence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalCompetence) Valid added in v0.5.3

func (entity *PsychologicalCompetence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalConsultations added in v0.5.3

type PsychologicalConsultations struct {
	PayloadConsulted Payload `json:"Consulted" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	Consulted *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	ConsultedID int `json:"-" pg:", fk:Consulted"`
	ListID      int `json:"-" pg:", fk:List"`
}

PsychologicalConsultations represents the payload for the psychological consultations section.

func (*PsychologicalConsultations) Delete added in v0.5.3

func (entity *PsychologicalConsultations) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalConsultations) Find added in v0.5.3

func (entity *PsychologicalConsultations) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*PsychologicalConsultations) Get added in v0.5.3

func (entity *PsychologicalConsultations) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalConsultations) GetID added in v0.5.3

func (entity *PsychologicalConsultations) GetID() int

GetID returns the entity identifier.

func (*PsychologicalConsultations) Marshal added in v0.5.3

func (entity *PsychologicalConsultations) Marshal() Payload

Marshal to payload structure

func (*PsychologicalConsultations) Save added in v0.5.3

func (entity *PsychologicalConsultations) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*PsychologicalConsultations) SetID added in v0.5.3

func (entity *PsychologicalConsultations) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalConsultations) Unmarshal added in v0.5.3

func (entity *PsychologicalConsultations) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalConsultations) Valid added in v0.5.3

func (entity *PsychologicalConsultations) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalDiagnoses added in v0.5.3

type PsychologicalDiagnoses struct {
	PayloadDiagnosed     Payload `json:"Diagnosed" sql:"-"`
	PayloadDidNotConsult Payload `json:"DidNotConsult" sql:"-"`
	PayloadDiagnosisList Payload `json:"DiagnosisList" sql:"-"`
	PayloadInTreatment   Payload `json:"InTreatment" sql:"-"`
	PayloadTreatmentList Payload `json:"TreatmentList" sql:"-"`

	// Validator specific fields
	Diagnosed     *Branch     `json:"-"`
	DidNotConsult *Branch     `json:"-"`
	DiagnosisList *Collection `json:"-"`
	InTreatment   *Branch     `json:"-"`
	TreatmentList *Collection `json:"-"`

	// Persister specific fields
	ID              int `json:"-"`
	DiagnosedID     int `json:"-" pg:", fk:Diagnosed"`
	DidNotConsultID int `json:"-" pg:", fk:DidNotConsult"`
	DiagnosisListID int `json:"-" pg:", fk:DiagnosisList"`
	InTreatmentID   int `json:"-" pg:", fk:InTreatment"`
	TreatmentListID int `json:"-" pg:", fk:TreatmentList"`
}

PsychologicalDiagnoses represents the payload for the psychological diagnosis section.

func (*PsychologicalDiagnoses) Delete added in v0.5.3

func (entity *PsychologicalDiagnoses) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalDiagnoses) Find added in v0.5.3

func (entity *PsychologicalDiagnoses) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*PsychologicalDiagnoses) Get added in v0.5.3

func (entity *PsychologicalDiagnoses) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalDiagnoses) GetID added in v0.5.3

func (entity *PsychologicalDiagnoses) GetID() int

GetID returns the entity identifier.

func (*PsychologicalDiagnoses) Marshal added in v0.5.3

func (entity *PsychologicalDiagnoses) Marshal() Payload

Marshal to payload structure

func (*PsychologicalDiagnoses) Save added in v0.5.3

func (entity *PsychologicalDiagnoses) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*PsychologicalDiagnoses) SetID added in v0.5.3

func (entity *PsychologicalDiagnoses) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalDiagnoses) Unmarshal added in v0.5.3

func (entity *PsychologicalDiagnoses) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalDiagnoses) Valid added in v0.5.3

func (entity *PsychologicalDiagnoses) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalExisting added in v0.5.3

type PsychologicalExisting struct {
	PayloadHasCondition            Payload `json:"HasCondition" sql:"-"`
	PayloadReceivedTreatment       Payload `json:"ReceivedTreatment" sql:"-"`
	PayloadExplanation             Payload `json:"Explanation" sql:"-"`
	PayloadTreatmentList           Payload `json:"TreatmentList" sql:"-"`
	PayloadDidNotFollow            Payload `json:"DidNotFollow" sql:"-"`
	PayloadDidNotFollowExplanation Payload `json:"DidNotFollowExplanation" sql:"-"`

	// Validator specific fields
	HasCondition            *Branch     `json:"-"`
	ReceivedTreatment       *Radio      `json:"-"`
	Explanation             *Textarea   `json:"-"`
	TreatmentList           *Collection `json:"-"`
	DidNotFollow            *Branch     `json:"-"`
	DidNotFollowExplanation *Textarea   `json:"-"`

	// Persister specific fields
	ID                        int `json:"-"`
	HasConditionID            int `json:"-" pg:", fk:HasCondition"`
	ReceivedTreatmentID       int `json:"-" pg:", fk:ReceivedTreatment"`
	ExplanationID             int `json:"-" pg:", fk:Explanation"`
	TreatmentListID           int `json:"-" pg:", fk:TreatmentList"`
	DidNotFollowID            int `json:"-" pg:", fk:DidNotFollow"`
	DidNotFollowExplanationID int `json:"-" pg:", fk:DidNotFollowExplanation"`
}

PsychologicalExisting represents the payload for the psychological existing conditions section.

func (*PsychologicalExisting) Delete added in v0.5.3

func (entity *PsychologicalExisting) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalExisting) Find added in v0.5.3

func (entity *PsychologicalExisting) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*PsychologicalExisting) Get added in v0.5.3

func (entity *PsychologicalExisting) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalExisting) GetID added in v0.5.3

func (entity *PsychologicalExisting) GetID() int

GetID returns the entity identifier.

func (*PsychologicalExisting) Marshal added in v0.5.3

func (entity *PsychologicalExisting) Marshal() Payload

Marshal to payload structure

func (*PsychologicalExisting) Save added in v0.5.3

func (entity *PsychologicalExisting) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*PsychologicalExisting) SetID added in v0.5.3

func (entity *PsychologicalExisting) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalExisting) Unmarshal added in v0.5.3

func (entity *PsychologicalExisting) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalExisting) Valid added in v0.5.3

func (entity *PsychologicalExisting) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type PsychologicalHospitalizations added in v0.5.3

type PsychologicalHospitalizations struct {
	PayloadHospitalized Payload `json:"Hospitalized" sql:"-"`
	PayloadList         Payload `json:"List" sql:"-"`

	// Validator specific fields
	Hospitalized *Branch     `json:"-"`
	List         *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	HospitalizedID int `json:"-" pg:", fk:Hospitalized"`
	ListID         int `json:"-" pg:", fk:List"`
}

PsychologicalHospitalizations represents the payload for the psychological hospitalizations section.

func (*PsychologicalHospitalizations) Delete added in v0.5.3

func (entity *PsychologicalHospitalizations) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*PsychologicalHospitalizations) Find added in v0.5.3

func (entity *PsychologicalHospitalizations) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*PsychologicalHospitalizations) Get added in v0.5.3

func (entity *PsychologicalHospitalizations) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*PsychologicalHospitalizations) GetID added in v0.5.3

func (entity *PsychologicalHospitalizations) GetID() int

GetID returns the entity identifier.

func (*PsychologicalHospitalizations) Marshal added in v0.5.3

func (entity *PsychologicalHospitalizations) Marshal() Payload

Marshal to payload structure

func (*PsychologicalHospitalizations) Save added in v0.5.3

func (entity *PsychologicalHospitalizations) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*PsychologicalHospitalizations) SetID added in v0.5.3

func (entity *PsychologicalHospitalizations) SetID(id int)

SetID sets the entity identifier.

func (*PsychologicalHospitalizations) Unmarshal added in v0.5.3

func (entity *PsychologicalHospitalizations) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*PsychologicalHospitalizations) Valid added in v0.5.3

func (entity *PsychologicalHospitalizations) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Radio added in v0.5.3

type Radio struct {
	ID      int    `json:"-"`
	Value   string `json:"value"`
	Checked bool   `json:"checked,omitempty"`
}

Radio is a basic input.

func (*Radio) Delete added in v0.5.3

func (entity *Radio) Delete(context DatabaseService, account int) (int, error)

Delete the radio from data storage.

func (*Radio) Find added in v0.5.3

func (entity *Radio) Find(context DatabaseService) error

Find is not used for radios. Please use the `Get` method.

func (*Radio) Get added in v0.5.3

func (entity *Radio) Get(context DatabaseService, account int) (int, error)

Get the radio from data storage.

func (*Radio) GetID added in v0.5.3

func (entity *Radio) GetID() int

GetID returns the entity identifier.

func (*Radio) Marshal added in v0.5.3

func (entity *Radio) Marshal() Payload

Marshal to payload structure

func (*Radio) Save added in v0.5.3

func (entity *Radio) Save(context DatabaseService, account int) (int, error)

Save the radio to data storage.

func (*Radio) SetID added in v0.5.3

func (entity *Radio) SetID(id int)

SetID sets the entity identifier.

func (*Radio) Unmarshal added in v0.5.3

func (entity *Radio) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Radio) Valid added in v0.5.3

func (entity *Radio) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ReasonLeft added in v0.5.3

type ReasonLeft struct {
	PayloadComments          Payload `json:"Comments" sql:"-"`
	PayloadReasons           Payload `json:"Reasons" sql:"-"`
	PayloadReasonDescription Payload `json:"ReasonDescription" sql:"-"`

	// Validator specific fields
	Comments          *Textarea   `json:"-"`
	Reasons           *Collection `json:"-"`
	ReasonDescription *Textarea   `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	AccountID           int `json:"-"`
	CommentsID          int `json:"-"`
	ReasonsID           int `json:"-"`
	ReasonDescriptionID int `json:"-"`
}

ReasonLeft is a basic input.

func (*ReasonLeft) Delete added in v0.5.3

func (entity *ReasonLeft) Delete(context DatabaseService, account int) (int, error)

Delete the ReasonLeft entity.

func (*ReasonLeft) Find added in v0.5.3

func (entity *ReasonLeft) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*ReasonLeft) Get added in v0.5.3

func (entity *ReasonLeft) Get(context DatabaseService, account int) (int, error)

Get the ReasonLeft entity.

func (*ReasonLeft) GetID added in v0.5.3

func (entity *ReasonLeft) GetID() int

GetID returns the entity identifier.

func (*ReasonLeft) Marshal added in v0.5.3

func (entity *ReasonLeft) Marshal() Payload

Marshal to payload structure

func (*ReasonLeft) Save added in v0.5.3

func (entity *ReasonLeft) Save(context DatabaseService, account int) (int, error)

Save the ReasonLeft entity.

func (*ReasonLeft) SetID added in v0.5.3

func (entity *ReasonLeft) SetID(id int)

SetID sets the entity identifier.

func (*ReasonLeft) Unmarshal added in v0.5.3

func (entity *ReasonLeft) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*ReasonLeft) Valid added in v0.5.3

func (entity *ReasonLeft) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsCohabitants added in v0.5.3

type RelationshipsCohabitants struct {
	PayloadHasCohabitant  Payload `json:"HasCohabitant" sql:"-"`
	PayloadCohabitantList Payload `json:"CohabitantList" sql:"-"`

	// Validator specific fields
	HasCohabitant  *Branch     `json:"-"`
	CohabitantList *Collection `json:"-"`

	// Persister specific fields
	ID               int `json:"-"`
	HasCohabitantID  int `json:"-" pg:", fk:HasCohabitant"`
	CohabitantListID int `json:"-" pg:", fk:CohabitantList"`
}

RelationshipsCohabitants represents the payload for the relationships cohabitants section.

func (*RelationshipsCohabitants) Delete added in v0.5.3

func (entity *RelationshipsCohabitants) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsCohabitants) Find added in v0.5.3

func (entity *RelationshipsCohabitants) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*RelationshipsCohabitants) Get added in v0.5.3

func (entity *RelationshipsCohabitants) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsCohabitants) GetID added in v0.5.3

func (entity *RelationshipsCohabitants) GetID() int

GetID returns the entity identifier.

func (*RelationshipsCohabitants) Marshal added in v0.5.3

func (entity *RelationshipsCohabitants) Marshal() Payload

Marshal to payload structure

func (*RelationshipsCohabitants) Save added in v0.5.3

func (entity *RelationshipsCohabitants) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*RelationshipsCohabitants) SetID added in v0.5.3

func (entity *RelationshipsCohabitants) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsCohabitants) Unmarshal added in v0.5.3

func (entity *RelationshipsCohabitants) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsCohabitants) Valid added in v0.5.3

func (entity *RelationshipsCohabitants) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsComments added in v0.5.3

type RelationshipsComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

RelationshipsComments represents the payload for the relationships comments section.

func (*RelationshipsComments) Delete added in v0.5.3

func (entity *RelationshipsComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsComments) Find added in v0.5.3

func (entity *RelationshipsComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*RelationshipsComments) Get added in v0.5.3

func (entity *RelationshipsComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsComments) GetID added in v0.5.3

func (entity *RelationshipsComments) GetID() int

GetID returns the entity identifier.

func (*RelationshipsComments) Marshal added in v0.5.3

func (entity *RelationshipsComments) Marshal() Payload

Marshal to payload structure

func (*RelationshipsComments) Save added in v0.5.3

func (entity *RelationshipsComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*RelationshipsComments) SetID added in v0.5.3

func (entity *RelationshipsComments) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsComments) Unmarshal added in v0.5.3

func (entity *RelationshipsComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsComments) Valid added in v0.5.3

func (entity *RelationshipsComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsMarital added in v0.5.3

type RelationshipsMarital struct {
	PayloadStatus       Payload `json:"Status" sql:"-"`
	PayloadCivilUnion   Payload `json:"CivilUnion" sql:"-"`
	PayloadDivorcedList Payload `json:"DivorcedList" sql:"-"`

	// Validator specific fields
	Status       *Radio      `json:"-"`
	CivilUnion   *CivilUnion `json:"-"`
	DivorcedList *Collection `json:"-"`

	// Persister specific fields
	ID             int `json:"-"`
	StatusID       int `json:"-" pg:", fk:Status"`
	CivilUnionID   int `json:"-" pg:", fk:CivilUnion"`
	DivorcedListID int `json:"-" pg:", fk:DivorcedList"`
}

RelationshipsMarital represents the payload for the relationships marital section.

func (*RelationshipsMarital) Delete added in v0.5.3

func (entity *RelationshipsMarital) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsMarital) Find added in v0.5.3

func (entity *RelationshipsMarital) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*RelationshipsMarital) Get added in v0.5.3

func (entity *RelationshipsMarital) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsMarital) GetID added in v0.5.3

func (entity *RelationshipsMarital) GetID() int

GetID returns the entity identifier.

func (*RelationshipsMarital) Marshal added in v0.5.3

func (entity *RelationshipsMarital) Marshal() Payload

Marshal to payload structure

func (*RelationshipsMarital) Save added in v0.5.3

func (entity *RelationshipsMarital) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*RelationshipsMarital) SetID added in v0.5.3

func (entity *RelationshipsMarital) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsMarital) Unmarshal added in v0.5.3

func (entity *RelationshipsMarital) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsMarital) Valid added in v0.5.3

func (entity *RelationshipsMarital) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsPeople added in v0.5.3

type RelationshipsPeople struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

RelationshipsPeople represents the payload for the relationships people section.

func (*RelationshipsPeople) Delete added in v0.5.3

func (entity *RelationshipsPeople) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsPeople) Find added in v0.5.3

func (entity *RelationshipsPeople) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*RelationshipsPeople) Get added in v0.5.3

func (entity *RelationshipsPeople) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsPeople) GetID added in v0.5.3

func (entity *RelationshipsPeople) GetID() int

GetID returns the entity identifier.

func (*RelationshipsPeople) Marshal added in v0.5.3

func (entity *RelationshipsPeople) Marshal() Payload

Marshal to payload structure

func (*RelationshipsPeople) Save added in v0.5.3

func (entity *RelationshipsPeople) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*RelationshipsPeople) SetID added in v0.5.3

func (entity *RelationshipsPeople) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsPeople) Unmarshal added in v0.5.3

func (entity *RelationshipsPeople) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsPeople) Valid added in v0.5.3

func (entity *RelationshipsPeople) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type RelationshipsRelatives added in v0.5.3

type RelationshipsRelatives struct {
	PayloadList Payload `json:"List" sql:"-"`

	// Validator specific fields
	List *Collection `json:"-"`

	// Persister specific fields
	ID     int `json:"-"`
	ListID int `json:"-" pg:", fk:List"`
}

RelationshipsRelatives represents the payload for the relationships relatives section.

func (*RelationshipsRelatives) Delete added in v0.5.3

func (entity *RelationshipsRelatives) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*RelationshipsRelatives) Find added in v0.5.3

func (entity *RelationshipsRelatives) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*RelationshipsRelatives) Get added in v0.5.3

func (entity *RelationshipsRelatives) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*RelationshipsRelatives) GetID added in v0.5.3

func (entity *RelationshipsRelatives) GetID() int

GetID returns the entity identifier.

func (*RelationshipsRelatives) Marshal added in v0.5.3

func (entity *RelationshipsRelatives) Marshal() Payload

Marshal to payload structure

func (*RelationshipsRelatives) Save added in v0.5.3

func (entity *RelationshipsRelatives) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*RelationshipsRelatives) SetID added in v0.5.3

func (entity *RelationshipsRelatives) SetID(id int)

SetID sets the entity identifier.

func (*RelationshipsRelatives) Unmarshal added in v0.5.3

func (entity *RelationshipsRelatives) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*RelationshipsRelatives) Valid added in v0.5.3

func (entity *RelationshipsRelatives) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SSN added in v0.5.3

type SSN struct {
	ID            int    `json:"-"`
	First         string `json:"first"`
	Middle        string `json:"middle"`
	Last          string `json:"last"`
	NotApplicable bool   `json:"notApplicable"`
}

SSN is a basic input.

func (*SSN) Delete added in v0.5.3

func (entity *SSN) Delete(context DatabaseService, account int) (int, error)

Delete the SSN from data storage.

func (*SSN) Find added in v0.5.3

func (entity *SSN) Find(context DatabaseService) error

Find is not used for SSNs. Please use the `Get` method.

func (*SSN) Get added in v0.5.3

func (entity *SSN) Get(context DatabaseService, account int) (int, error)

Get the SSN from data storage.

func (*SSN) GetID added in v0.5.3

func (entity *SSN) GetID() int

GetID returns the entity identifier.

func (*SSN) Marshal added in v0.5.3

func (entity *SSN) Marshal() Payload

Marshal to payload structure

func (*SSN) Save added in v0.5.3

func (entity *SSN) Save(context DatabaseService, account int) (int, error)

Save the SSN to data storage.

func (*SSN) SetID added in v0.5.3

func (entity *SSN) SetID(id int)

SetID sets the entity identifier.

func (*SSN) Unmarshal added in v0.5.3

func (entity *SSN) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SSN) Valid added in v0.5.3

func (entity *SSN) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SamlService added in v0.5.3

type SamlService interface {
	CreateAuthenticationRequest() (string, string, error)
	ValidateAuthenticationResponse(encoded string) (string, error)
}

SamlService represents a service to request and validate SAML responses.

type SectionInformation added in v0.5.6

type SectionInformation struct {
	Name       string
	Subsection string
	Payload    string
	// contains filtered or unexported fields
}

SectionInformation represents a structure to quickly organize the different sections and subsections with the payload type(s).

func Catalogue added in v0.5.6

func Catalogue() []SectionInformation

Catalogue eturns an array of the sub-sections of the form

type Sentence added in v0.5.3

type Sentence struct {
	PayloadDescription          Payload `json:"Description" sql:"-"`
	PayloadExceedsYear          Payload `json:"ExceedsYear" sql:"-"`
	PayloadIncarcerated         Payload `json:"Incarcerated" sql:"-"`
	PayloadIncarcerationDates   Payload `json:"IncarcerationDates" sql:"-"`
	PayloadIncarcerationDatesNA Payload `json:"IncarcerationDatesNA" sql:"-"`
	PayloadProbationDates       Payload `json:"ProbationDates" sql:"-"`
	PayloadProbationDatesNA     Payload `json:"ProbationDatesNA" sql:"-"`

	// Validator specific fields
	Description          *Textarea      `json:"-" sql:"-"`
	ExceedsYear          *Branch        `json:"-" sql:"-"`
	Incarcerated         *Branch        `json:"-" sql:"-"`
	IncarcerationDates   *DateRange     `json:"-" sql:"-"`
	IncarcerationDatesNA *NotApplicable `json:"-" sql:"-"`
	ProbationDates       *DateRange     `json:"-" sql:"-"`
	ProbationDatesNA     *NotApplicable `json:"-" sql:"-"`

	// Persister specific fields
	ID                     int `json:"-"`
	AccountID              int `json:"-"`
	DescriptionID          int `json:"-"`
	ExceedsYearID          int `json:"-"`
	IncarceratedID         int `json:"-"`
	IncarcerationDatesID   int `json:"-"`
	IncarcerationDatesNAID int `json:"-"`
	ProbationDatesID       int `json:"-"`
	ProbationDatesNAID     int `json:"-"`
}

Sentence is a basic input.

func (*Sentence) Delete added in v0.5.3

func (entity *Sentence) Delete(context DatabaseService, account int) (int, error)

Delete the Sentence entity.

func (*Sentence) Find added in v0.5.3

func (entity *Sentence) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Sentence) Get added in v0.5.3

func (entity *Sentence) Get(context DatabaseService, account int) (int, error)

Get the Sentence entity.

func (*Sentence) GetID added in v0.5.3

func (entity *Sentence) GetID() int

GetID returns the entity identifier.

func (*Sentence) Marshal added in v0.5.3

func (entity *Sentence) Marshal() Payload

Marshal to payload structure

func (*Sentence) Save added in v0.5.3

func (entity *Sentence) Save(context DatabaseService, account int) (int, error)

Save the Sentence entity.

func (*Sentence) SetID added in v0.5.3

func (entity *Sentence) SetID(id int)

SetID sets the entity identifier.

func (*Sentence) Unmarshal added in v0.5.3

func (entity *Sentence) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Sentence) Valid added in v0.5.3

func (entity *Sentence) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Settings added in v0.5.3

type Settings interface {
	Configure()
	Has(string) bool
	String(string) string
	True(string) bool
	Int(string) int
}

Settings represents environments settings to pull configuration information. This may be via environment variables or a specific environment like CloudFoundry.

type Signature added in v0.5.3

type Signature struct {
	PayloadName Payload `json:"Name" sql:"-"`
	PayloadDate Payload `json:"Date" sql:"-"`

	// Validator specific fields
	Name *Text        `json:"-" sql:"-"`
	Date *DateControl `json:"-" sql:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	AccountID int `json:"-"`
	NameID    int `json:"-"`
	DateID    int `json:"-"`
}

Signature is a basic input.

func (*Signature) Delete added in v0.5.3

func (entity *Signature) Delete(context DatabaseService, account int) (int, error)

Delete the signature from data storage.

func (*Signature) Find added in v0.5.3

func (entity *Signature) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Signature) Get added in v0.5.3

func (entity *Signature) Get(context DatabaseService, account int) (int, error)

Get the signature from data storage.

func (*Signature) GetID added in v0.5.3

func (entity *Signature) GetID() int

GetID returns the entity identifier.

func (*Signature) Marshal added in v0.5.3

func (entity *Signature) Marshal() Payload

Marshal to payload structure

func (*Signature) Save added in v0.5.3

func (entity *Signature) Save(context DatabaseService, account int) (int, error)

Save the signature to data storage.

func (*Signature) SetID added in v0.5.3

func (entity *Signature) SetID(id int)

SetID sets the entity identifier.

func (*Signature) Unmarshal added in v0.5.3

func (entity *Signature) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Signature) Valid added in v0.5.3

func (entity *Signature) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Submission added in v0.5.3

type Submission struct {
	PayloadAdditionalComments Payload `json:"AdditionalComments" sql:"-"`
	PayloadGeneral            Payload `json:"General" sql:"-"`
	PayloadMedical            Payload `json:"Medical" sql:"-"`
	PayloadCredit             Payload `json:"Credit" sql:"-"`
	PayloadAttachments        Payload `json:"Attachments" sql:"-"`

	// Validator specific fields
	AdditionalComments *SubmissionAdditionalComments `json:"-" sql:"-"`
	General            *SubmissionGeneral            `json:"-" sql:"-"`
	Medical            *SubmissionMedical            `json:"-" sql:"-"`
	Credit             *SubmissionCredit             `json:"-" sql:"-"`
	Attachments        *SubmissionAttachments        `json:"-" sql:"-"`

	// Persister specific fields
	ID                   int    `json:"-"`
	AdditionalCommentsID int    `json:"-"`
	GeneralID            int    `json:"-"`
	MedicalID            int    `json:"-"`
	CreditID             int    `json:"-"`
	AttachmentsID        int    `json:"-"`
	Hash                 string `json:"-"`
}

Submission represents the payload for the submission section.

func (*Submission) Delete added in v0.5.3

func (entity *Submission) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*Submission) Find added in v0.5.3

func (entity *Submission) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Submission) Get added in v0.5.3

func (entity *Submission) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*Submission) GetID added in v0.5.3

func (entity *Submission) GetID() int

GetID returns the entity identifier.

func (*Submission) Marshal added in v0.5.3

func (entity *Submission) Marshal() Payload

Marshal to payload structure

func (*Submission) Save added in v0.5.3

func (entity *Submission) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*Submission) SetID added in v0.5.3

func (entity *Submission) SetID(id int)

SetID sets the entity identifier.

func (*Submission) Unmarshal added in v0.5.3

func (entity *Submission) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Submission) Valid added in v0.5.3

func (entity *Submission) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionAdditionalComments added in v0.5.3

type SubmissionAdditionalComments struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

SubmissionAdditionalComments represents the payload for the submission additional comments section.

func (*SubmissionAdditionalComments) Delete added in v0.5.3

func (entity *SubmissionAdditionalComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionAdditionalComments) Find added in v0.5.3

func (entity *SubmissionAdditionalComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubmissionAdditionalComments) Get added in v0.5.3

func (entity *SubmissionAdditionalComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionAdditionalComments) GetID added in v0.5.3

func (entity *SubmissionAdditionalComments) GetID() int

GetID returns the entity identifier.

func (*SubmissionAdditionalComments) Marshal added in v0.5.3

func (entity *SubmissionAdditionalComments) Marshal() Payload

Marshal to payload structure

func (*SubmissionAdditionalComments) Save added in v0.5.3

func (entity *SubmissionAdditionalComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubmissionAdditionalComments) SetID added in v0.5.3

func (entity *SubmissionAdditionalComments) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionAdditionalComments) Unmarshal added in v0.5.3

func (entity *SubmissionAdditionalComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionAdditionalComments) Valid added in v0.5.3

func (entity *SubmissionAdditionalComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionAttachments added in v0.5.3

type SubmissionAttachments struct {
	PayloadMethod Payload `json:"Method" sql:"-"`

	// Validator specific fields
	Method *Text `json:"-" sql:"-"`

	// Persister specific fields
	ID       int `json:"-"`
	MethodID int `json:"-"`
}

SubmissionAttachments represents the payload for the submission attachments section.

func (*SubmissionAttachments) Delete added in v0.5.3

func (entity *SubmissionAttachments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionAttachments) Find added in v0.5.3

func (entity *SubmissionAttachments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubmissionAttachments) Get added in v0.5.3

func (entity *SubmissionAttachments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionAttachments) GetID added in v0.5.3

func (entity *SubmissionAttachments) GetID() int

GetID returns the entity identifier.

func (*SubmissionAttachments) Marshal added in v0.5.3

func (entity *SubmissionAttachments) Marshal() Payload

Marshal to payload structure

func (*SubmissionAttachments) Save added in v0.5.3

func (entity *SubmissionAttachments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubmissionAttachments) SetID added in v0.5.3

func (entity *SubmissionAttachments) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionAttachments) Unmarshal added in v0.5.3

func (entity *SubmissionAttachments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionAttachments) Valid added in v0.5.3

func (entity *SubmissionAttachments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionCredit added in v0.5.3

type SubmissionCredit struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

SubmissionCredit represents the payload for the submission credit release section.

func (*SubmissionCredit) Delete added in v0.5.3

func (entity *SubmissionCredit) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionCredit) Find added in v0.5.3

func (entity *SubmissionCredit) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubmissionCredit) Get added in v0.5.3

func (entity *SubmissionCredit) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionCredit) GetID added in v0.5.3

func (entity *SubmissionCredit) GetID() int

GetID returns the entity identifier.

func (*SubmissionCredit) Marshal added in v0.5.3

func (entity *SubmissionCredit) Marshal() Payload

Marshal to payload structure

func (*SubmissionCredit) Save added in v0.5.3

func (entity *SubmissionCredit) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubmissionCredit) SetID added in v0.5.3

func (entity *SubmissionCredit) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionCredit) Unmarshal added in v0.5.3

func (entity *SubmissionCredit) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionCredit) Valid added in v0.5.3

func (entity *SubmissionCredit) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionGeneral added in v0.5.3

type SubmissionGeneral struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

SubmissionGeneral represents the payload for the submission general release section.

func (*SubmissionGeneral) Delete added in v0.5.3

func (entity *SubmissionGeneral) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionGeneral) Find added in v0.5.3

func (entity *SubmissionGeneral) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubmissionGeneral) Get added in v0.5.3

func (entity *SubmissionGeneral) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionGeneral) GetID added in v0.5.3

func (entity *SubmissionGeneral) GetID() int

GetID returns the entity identifier.

func (*SubmissionGeneral) Marshal added in v0.5.3

func (entity *SubmissionGeneral) Marshal() Payload

Marshal to payload structure

func (*SubmissionGeneral) Save added in v0.5.3

func (entity *SubmissionGeneral) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubmissionGeneral) SetID added in v0.5.3

func (entity *SubmissionGeneral) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionGeneral) Unmarshal added in v0.5.3

func (entity *SubmissionGeneral) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionGeneral) Valid added in v0.5.3

func (entity *SubmissionGeneral) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubmissionMedical added in v0.5.3

type SubmissionMedical struct {
	PayloadSignature Payload `json:"Signature" sql:"-"`

	// Validator specific fields
	Signature *Signature `json:"-" sql:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	SignatureID int `json:"-"`
}

SubmissionMedical represents the payload for the submission medical release section.

func (*SubmissionMedical) Delete added in v0.5.3

func (entity *SubmissionMedical) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubmissionMedical) Find added in v0.5.3

func (entity *SubmissionMedical) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubmissionMedical) Get added in v0.5.3

func (entity *SubmissionMedical) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubmissionMedical) GetID added in v0.5.3

func (entity *SubmissionMedical) GetID() int

GetID returns the entity identifier.

func (*SubmissionMedical) Marshal added in v0.5.3

func (entity *SubmissionMedical) Marshal() Payload

Marshal to payload structure

func (*SubmissionMedical) Save added in v0.5.3

func (entity *SubmissionMedical) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubmissionMedical) SetID added in v0.5.3

func (entity *SubmissionMedical) SetID(id int)

SetID sets the entity identifier.

func (*SubmissionMedical) Unmarshal added in v0.5.3

func (entity *SubmissionMedical) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubmissionMedical) Valid added in v0.5.3

func (entity *SubmissionMedical) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholAdditional added in v0.5.3

type SubstanceAlcoholAdditional struct {
	PayloadReceivedTreatment Payload `json:"ReceivedTreatment" sql:"-"`
	PayloadList              Payload `json:"List" sql:"-"`

	// Validator specific fields
	ReceivedTreatment *Branch     `json:"-"`
	List              *Collection `json:"-"`

	// Persister specific fields
	ID                  int `json:"-"`
	ReceivedTreatmentID int `json:"-" pg:", fk:ReceivedTreatment"`
	ListID              int `json:"-" pg:", fk:List"`
}

SubstanceAlcoholAdditional represents the payload for the substance alcohol additional section.

func (*SubstanceAlcoholAdditional) Delete added in v0.5.3

func (entity *SubstanceAlcoholAdditional) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholAdditional) Find added in v0.5.3

func (entity *SubstanceAlcoholAdditional) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceAlcoholAdditional) Get added in v0.5.3

func (entity *SubstanceAlcoholAdditional) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholAdditional) GetID added in v0.5.3

func (entity *SubstanceAlcoholAdditional) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholAdditional) Marshal added in v0.5.3

func (entity *SubstanceAlcoholAdditional) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholAdditional) Save added in v0.5.3

func (entity *SubstanceAlcoholAdditional) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholAdditional) SetID added in v0.5.3

func (entity *SubstanceAlcoholAdditional) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholAdditional) Unmarshal added in v0.5.3

func (entity *SubstanceAlcoholAdditional) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholAdditional) Valid added in v0.5.3

func (entity *SubstanceAlcoholAdditional) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholNegative added in v0.5.3

type SubstanceAlcoholNegative struct {
	PayloadHasImpacts Payload `json:"HasImpacts" sql:"-"`
	PayloadList       Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasImpacts *Branch     `json:"-"`
	List       *Collection `json:"-"`

	// Persister specific fields
	ID           int `json:"-"`
	HasImpactsID int `json:"-" pg:", fk:HasImpacts"`
	ListID       int `json:"-" pg:", fk:List"`
}

SubstanceAlcoholNegative represents the payload for the substance alcohol negative section.

func (*SubstanceAlcoholNegative) Delete added in v0.5.3

func (entity *SubstanceAlcoholNegative) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholNegative) Find added in v0.5.3

func (entity *SubstanceAlcoholNegative) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceAlcoholNegative) Get added in v0.5.3

func (entity *SubstanceAlcoholNegative) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholNegative) GetID added in v0.5.3

func (entity *SubstanceAlcoholNegative) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholNegative) Marshal added in v0.5.3

func (entity *SubstanceAlcoholNegative) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholNegative) Save added in v0.5.3

func (entity *SubstanceAlcoholNegative) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholNegative) SetID added in v0.5.3

func (entity *SubstanceAlcoholNegative) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholNegative) Unmarshal added in v0.5.3

func (entity *SubstanceAlcoholNegative) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholNegative) Valid added in v0.5.3

func (entity *SubstanceAlcoholNegative) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholOrdered added in v0.5.3

type SubstanceAlcoholOrdered struct {
	PayloadHasBeenOrdered Payload `json:"HasBeenOrdered" sql:"-"`
	PayloadList           Payload `json:"List" sql:"-"`

	// Validator specific fields
	HasBeenOrdered *Branch     `json:"-"`
	List           *Collection `json:"-"`

	// Persister specific fields
	ID               int `json:"-"`
	HasBeenOrderedID int `json:"-" pg:", fk:HasBeenOrdered"`
	ListID           int `json:"-" pg:", fk:List"`
}

SubstanceAlcoholOrdered represents the payload for the substance alcholo ordered section.

func (*SubstanceAlcoholOrdered) Delete added in v0.5.3

func (entity *SubstanceAlcoholOrdered) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholOrdered) Find added in v0.5.3

func (entity *SubstanceAlcoholOrdered) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceAlcoholOrdered) Get added in v0.5.3

func (entity *SubstanceAlcoholOrdered) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholOrdered) GetID added in v0.5.3

func (entity *SubstanceAlcoholOrdered) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholOrdered) Marshal added in v0.5.3

func (entity *SubstanceAlcoholOrdered) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholOrdered) Save added in v0.5.3

func (entity *SubstanceAlcoholOrdered) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholOrdered) SetID added in v0.5.3

func (entity *SubstanceAlcoholOrdered) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholOrdered) Unmarshal added in v0.5.3

func (entity *SubstanceAlcoholOrdered) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholOrdered) Valid added in v0.5.3

func (entity *SubstanceAlcoholOrdered) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceAlcoholVoluntary added in v0.5.3

type SubstanceAlcoholVoluntary struct {
	PayloadSoughtTreatment Payload `json:"SoughtTreatment" sql:"-"`
	PayloadList            Payload `json:"List" sql:"-"`

	// Validator specific fields
	SoughtTreatment *Branch     `json:"-"`
	List            *Collection `json:"-"`

	// Persister specific fields
	ID                int `json:"-"`
	SoughtTreatmentID int `json:"-" pg:", fk:SoughtTreatment"`
	ListID            int `json:"-" pg:", fk:List"`
}

SubstanceAlcoholVoluntary represents the payload for the substance alcohol voluntary section.

func (*SubstanceAlcoholVoluntary) Delete added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceAlcoholVoluntary) Find added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceAlcoholVoluntary) Get added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceAlcoholVoluntary) GetID added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) GetID() int

GetID returns the entity identifier.

func (*SubstanceAlcoholVoluntary) Marshal added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) Marshal() Payload

Marshal to payload structure

func (*SubstanceAlcoholVoluntary) Save added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceAlcoholVoluntary) SetID added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceAlcoholVoluntary) Unmarshal added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceAlcoholVoluntary) Valid added in v0.5.3

func (entity *SubstanceAlcoholVoluntary) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceComments added in v0.5.3

type SubstanceComments struct {
	PayloadComments Payload `json:"Comments" sql:"-"`

	// Validator specific fields
	Comments *Text `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	CommentsID int `json:"-"`
}

SubstanceComments represents the payload for the substance comments section.

func (*SubstanceComments) Delete added in v0.5.3

func (entity *SubstanceComments) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceComments) Find added in v0.5.3

func (entity *SubstanceComments) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceComments) Get added in v0.5.3

func (entity *SubstanceComments) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceComments) GetID added in v0.5.3

func (entity *SubstanceComments) GetID() int

GetID returns the entity identifier.

func (*SubstanceComments) Marshal added in v0.5.3

func (entity *SubstanceComments) Marshal() Payload

Marshal to payload structure

func (*SubstanceComments) Save added in v0.5.3

func (entity *SubstanceComments) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceComments) SetID added in v0.5.3

func (entity *SubstanceComments) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceComments) Unmarshal added in v0.5.3

func (entity *SubstanceComments) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceComments) Valid added in v0.5.3

func (entity *SubstanceComments) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugClearance added in v0.5.3

type SubstanceDrugClearance struct {
	PayloadUsedDrugs Payload `json:"UsedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:UsedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

SubstanceDrugClearance represents the payload for the substance drug clearance section.

func (*SubstanceDrugClearance) Delete added in v0.5.3

func (entity *SubstanceDrugClearance) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugClearance) Find added in v0.5.3

func (entity *SubstanceDrugClearance) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceDrugClearance) Get added in v0.5.3

func (entity *SubstanceDrugClearance) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugClearance) GetID added in v0.5.3

func (entity *SubstanceDrugClearance) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugClearance) Marshal added in v0.5.3

func (entity *SubstanceDrugClearance) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugClearance) Save added in v0.5.3

func (entity *SubstanceDrugClearance) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugClearance) SetID added in v0.5.3

func (entity *SubstanceDrugClearance) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugClearance) Unmarshal added in v0.5.3

func (entity *SubstanceDrugClearance) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugClearance) Valid added in v0.5.3

func (entity *SubstanceDrugClearance) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugMisuse added in v0.5.3

type SubstanceDrugMisuse struct {
	PayloadUsedDrugs Payload `json:"MisusedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:MisusedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

SubstanceDrugMisuse represents the payload for the substance drug misuse section.

func (*SubstanceDrugMisuse) Delete added in v0.5.3

func (entity *SubstanceDrugMisuse) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugMisuse) Find added in v0.5.3

func (entity *SubstanceDrugMisuse) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceDrugMisuse) Get added in v0.5.3

func (entity *SubstanceDrugMisuse) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugMisuse) GetID added in v0.5.3

func (entity *SubstanceDrugMisuse) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugMisuse) Marshal added in v0.5.3

func (entity *SubstanceDrugMisuse) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugMisuse) Save added in v0.5.3

func (entity *SubstanceDrugMisuse) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugMisuse) SetID added in v0.5.3

func (entity *SubstanceDrugMisuse) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugMisuse) Unmarshal added in v0.5.3

func (entity *SubstanceDrugMisuse) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugMisuse) Valid added in v0.5.3

func (entity *SubstanceDrugMisuse) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugOrdered added in v0.5.3

type SubstanceDrugOrdered struct {
	PayloadInvolved Payload `json:"TreatmentOrdered" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	Involved *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	InvolvedID int `json:"-" pg:", fk:TreatmentOrdered"`
	ListID     int `json:"-" pg:", fk:List"`
}

SubstanceDrugOrdered represents the payload for the substance drug ordered section.

func (*SubstanceDrugOrdered) Delete added in v0.5.3

func (entity *SubstanceDrugOrdered) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugOrdered) Find added in v0.5.3

func (entity *SubstanceDrugOrdered) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceDrugOrdered) Get added in v0.5.3

func (entity *SubstanceDrugOrdered) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugOrdered) GetID added in v0.5.3

func (entity *SubstanceDrugOrdered) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugOrdered) Marshal added in v0.5.3

func (entity *SubstanceDrugOrdered) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugOrdered) Save added in v0.5.3

func (entity *SubstanceDrugOrdered) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugOrdered) SetID added in v0.5.3

func (entity *SubstanceDrugOrdered) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugOrdered) Unmarshal added in v0.5.3

func (entity *SubstanceDrugOrdered) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugOrdered) Valid added in v0.5.3

func (entity *SubstanceDrugOrdered) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugPublicSafety added in v0.5.3

type SubstanceDrugPublicSafety struct {
	PayloadUsedDrugs Payload `json:"UsedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:UsedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

SubstanceDrugPublicSafety represents the payload for the substance drug public safety section.

func (*SubstanceDrugPublicSafety) Delete added in v0.5.3

func (entity *SubstanceDrugPublicSafety) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugPublicSafety) Find added in v0.5.3

func (entity *SubstanceDrugPublicSafety) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceDrugPublicSafety) Get added in v0.5.3

func (entity *SubstanceDrugPublicSafety) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugPublicSafety) GetID added in v0.5.3

func (entity *SubstanceDrugPublicSafety) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugPublicSafety) Marshal added in v0.5.3

func (entity *SubstanceDrugPublicSafety) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugPublicSafety) Save added in v0.5.3

func (entity *SubstanceDrugPublicSafety) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugPublicSafety) SetID added in v0.5.3

func (entity *SubstanceDrugPublicSafety) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugPublicSafety) Unmarshal added in v0.5.3

func (entity *SubstanceDrugPublicSafety) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugPublicSafety) Valid added in v0.5.3

func (entity *SubstanceDrugPublicSafety) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugPurchase added in v0.5.3

type SubstanceDrugPurchase struct {
	PayloadInvolved Payload `json:"Involved" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	Involved *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	InvolvedID int `json:"-" pg:", fk:Involved"`
	ListID     int `json:"-" pg:", fk:List"`
}

SubstanceDrugPurchase represents the payload for the substance drug purchase section.

func (*SubstanceDrugPurchase) Delete added in v0.5.3

func (entity *SubstanceDrugPurchase) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugPurchase) Find added in v0.5.3

func (entity *SubstanceDrugPurchase) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceDrugPurchase) Get added in v0.5.3

func (entity *SubstanceDrugPurchase) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugPurchase) GetID added in v0.5.3

func (entity *SubstanceDrugPurchase) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugPurchase) Marshal added in v0.5.3

func (entity *SubstanceDrugPurchase) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugPurchase) Save added in v0.5.3

func (entity *SubstanceDrugPurchase) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugPurchase) SetID added in v0.5.3

func (entity *SubstanceDrugPurchase) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugPurchase) Unmarshal added in v0.5.3

func (entity *SubstanceDrugPurchase) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugPurchase) Valid added in v0.5.3

func (entity *SubstanceDrugPurchase) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugUsage added in v0.5.3

type SubstanceDrugUsage struct {
	PayloadUsedDrugs Payload `json:"UsedDrugs" sql:"-"`
	PayloadList      Payload `json:"List" sql:"-"`

	// Validator specific fields
	UsedDrugs *Branch     `json:"-"`
	List      *Collection `json:"-"`

	// Persister specific fields
	ID          int `json:"-"`
	UsedDrugsID int `json:"-" pg:", fk:UsedDrugs"`
	ListID      int `json:"-" pg:", fk:List"`
}

SubstanceDrugUsage represents the payload for the substance drug usage section.

func (*SubstanceDrugUsage) Delete added in v0.5.3

func (entity *SubstanceDrugUsage) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugUsage) Find added in v0.5.3

func (entity *SubstanceDrugUsage) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceDrugUsage) Get added in v0.5.3

func (entity *SubstanceDrugUsage) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugUsage) GetID added in v0.5.3

func (entity *SubstanceDrugUsage) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugUsage) Marshal added in v0.5.3

func (entity *SubstanceDrugUsage) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugUsage) Save added in v0.5.3

func (entity *SubstanceDrugUsage) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugUsage) SetID added in v0.5.3

func (entity *SubstanceDrugUsage) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugUsage) Unmarshal added in v0.5.3

func (entity *SubstanceDrugUsage) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugUsage) Valid added in v0.5.3

func (entity *SubstanceDrugUsage) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type SubstanceDrugVoluntary added in v0.5.3

type SubstanceDrugVoluntary struct {
	PayloadInvolved Payload `json:"TreatmentVoluntary" sql:"-"`
	PayloadList     Payload `json:"List" sql:"-"`

	// Validator specific fields
	Involved *Branch     `json:"-"`
	List     *Collection `json:"-"`

	// Persister specific fields
	ID         int `json:"-"`
	InvolvedID int `json:"-" pg:", fk:TreatmentVoluntary"`
	ListID     int `json:"-" pg:", fk:List"`
}

SubstanceDrugVoluntary represents the payload for the substance drug voluntary section.

func (*SubstanceDrugVoluntary) Delete added in v0.5.3

func (entity *SubstanceDrugVoluntary) Delete(context DatabaseService, account int) (int, error)

Delete will remove the entity from the database.

func (*SubstanceDrugVoluntary) Find added in v0.5.3

func (entity *SubstanceDrugVoluntary) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*SubstanceDrugVoluntary) Get added in v0.5.3

func (entity *SubstanceDrugVoluntary) Get(context DatabaseService, account int) (int, error)

Get will retrieve the entity from the database.

func (*SubstanceDrugVoluntary) GetID added in v0.5.3

func (entity *SubstanceDrugVoluntary) GetID() int

GetID returns the entity identifier.

func (*SubstanceDrugVoluntary) Marshal added in v0.5.3

func (entity *SubstanceDrugVoluntary) Marshal() Payload

Marshal to payload structure

func (*SubstanceDrugVoluntary) Save added in v0.5.3

func (entity *SubstanceDrugVoluntary) Save(context DatabaseService, account int) (int, error)

Save will create or update the database.

func (*SubstanceDrugVoluntary) SetID added in v0.5.3

func (entity *SubstanceDrugVoluntary) SetID(id int)

SetID sets the entity identifier.

func (*SubstanceDrugVoluntary) Unmarshal added in v0.5.3

func (entity *SubstanceDrugVoluntary) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*SubstanceDrugVoluntary) Valid added in v0.5.3

func (entity *SubstanceDrugVoluntary) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Supervisor added in v0.5.3

type Supervisor struct {
	PayloadSupervisorName     Payload `json:"SupervisorName" sql:"-"`
	PayloadTitle              Payload `json:"Title" sql:"-"`
	PayloadEmail              Payload `json:"Email" sql:"-"`
	PayloadEmailNotApplicable Payload `json:"EmailNotApplicable" sql:"-"`
	PayloadAddress            Payload `json:"Address" sql:"-"`
	PayloadTelephone          Payload `json:"Telephone" sql:"-"`

	// Validator specific fields
	SupervisorName     *Text          `json:"-"`
	Title              *Text          `json:"-"`
	Email              *Email         `json:"-"`
	EmailNotApplicable *NotApplicable `json:"-"`
	Address            *Location      `json:"-"`
	Telephone          *Telephone     `json:"-"`

	// Persister specific fields
	ID                   int `json:"-"`
	AccountID            int `json:"-"`
	SupervisorNameID     int `json:"-"`
	TitleID              int `json:"-"`
	EmailID              int `json:"-"`
	EmailNotApplicableID int `json:"-"`
	AddressID            int `json:"-"`
	TelephoneID          int `json:"-"`
}

Supervisor is a basic input.

func (*Supervisor) Delete added in v0.5.3

func (entity *Supervisor) Delete(context DatabaseService, account int) (int, error)

Delete the Supervisor entity.

func (*Supervisor) Find added in v0.5.3

func (entity *Supervisor) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Supervisor) Get added in v0.5.3

func (entity *Supervisor) Get(context DatabaseService, account int) (int, error)

Get the Supervisor entity.

func (*Supervisor) GetID added in v0.5.3

func (entity *Supervisor) GetID() int

GetID returns the entity identifier.

func (*Supervisor) Marshal added in v0.5.3

func (entity *Supervisor) Marshal() Payload

Marshal to payload structure

func (*Supervisor) Save added in v0.5.3

func (entity *Supervisor) Save(context DatabaseService, account int) (int, error)

Save the Supervisor entity.

func (*Supervisor) SetID added in v0.5.3

func (entity *Supervisor) SetID(id int)

SetID sets the entity identifier.

func (*Supervisor) Unmarshal added in v0.5.3

func (entity *Supervisor) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Supervisor) Valid added in v0.5.3

func (entity *Supervisor) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Telephone added in v0.5.3

type Telephone struct {
	ID         int    `json:"-"`
	TimeOfDay  string `json:"timeOfDay"`
	Type       string `json:"type"`
	NumberType string `json:"numberType"`
	Number     string `json:"number"`
	Extension  string `json:"extension"`
	NoNumber   bool   `json:"noNumber"`
}

Telephone is a basic input.

func (*Telephone) Delete added in v0.5.3

func (entity *Telephone) Delete(context DatabaseService, account int) (int, error)

Delete the telephone from data storage.

func (*Telephone) Find added in v0.5.3

func (entity *Telephone) Find(context DatabaseService) error

Find is not used for telephones. Please use the `Get` method.

func (*Telephone) Get added in v0.5.3

func (entity *Telephone) Get(context DatabaseService, account int) (int, error)

Get the telephone from data storage.

func (*Telephone) GetID added in v0.5.3

func (entity *Telephone) GetID() int

GetID returns the entity identifier.

func (*Telephone) Marshal added in v0.5.3

func (entity *Telephone) Marshal() Payload

Marshal to payload structure

func (*Telephone) Save added in v0.5.3

func (entity *Telephone) Save(context DatabaseService, account int) (int, error)

Save the telephone to data storage.

func (*Telephone) SetID added in v0.5.3

func (entity *Telephone) SetID(id int)

SetID sets the entity identifier.

func (*Telephone) Unmarshal added in v0.5.3

func (entity *Telephone) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Telephone) Valid added in v0.5.3

func (entity *Telephone) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Text added in v0.5.3

type Text struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Text is a basic input.

func (*Text) Delete added in v0.5.3

func (entity *Text) Delete(context DatabaseService, account int) (int, error)

Delete the text from data storage.

func (*Text) Find added in v0.5.3

func (entity *Text) Find(context DatabaseService) error

Find is not used for text. Please use the `Get` method.

func (*Text) Get added in v0.5.3

func (entity *Text) Get(context DatabaseService, account int) (int, error)

Get the text from data storage.

func (*Text) GetID added in v0.5.3

func (entity *Text) GetID() int

GetID returns the entity identifier.

func (*Text) Marshal added in v0.5.3

func (entity *Text) Marshal() Payload

Marshal to payload structure

func (*Text) Save added in v0.5.3

func (entity *Text) Save(context DatabaseService, account int) (int, error)

Save the text to data storage.

func (*Text) SetID added in v0.5.3

func (entity *Text) SetID(id int)

SetID sets the entity identifier.

func (*Text) Unmarshal added in v0.5.3

func (entity *Text) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Text) Valid added in v0.5.3

func (entity *Text) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type Textarea added in v0.5.3

type Textarea struct {
	ID    int    `json:"-"`
	Value string `json:"value"`
}

Textarea is a basic input.

func (*Textarea) Delete added in v0.5.3

func (entity *Textarea) Delete(context DatabaseService, account int) (int, error)

Delete the textarea from data storage.

func (*Textarea) Find added in v0.5.3

func (entity *Textarea) Find(context DatabaseService) error

Find is not used for attachments. Please use the `Get` method.

func (*Textarea) Get added in v0.5.3

func (entity *Textarea) Get(context DatabaseService, account int) (int, error)

Get the textarea from data storage.

func (*Textarea) GetID added in v0.5.3

func (entity *Textarea) GetID() int

GetID returns the entity identifier.

func (*Textarea) Marshal added in v0.5.3

func (entity *Textarea) Marshal() Payload

Marshal to payload structure

func (*Textarea) Save added in v0.5.3

func (entity *Textarea) Save(context DatabaseService, account int) (int, error)

Save the textarea to data storage.

func (*Textarea) SetID added in v0.5.3

func (entity *Textarea) SetID(id int)

SetID sets the entity identifier.

func (*Textarea) Unmarshal added in v0.5.3

func (entity *Textarea) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Textarea) Valid added in v0.5.3

func (entity *Textarea) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type TokenService added in v0.5.3

type TokenService interface {
	CheckToken(request *http.Request) (string, int, error)
	ExtractToken(request *http.Request) string
	CurrentAudience(request *http.Request) string
	NewToken(id int, audience string) (string, time.Time, error)
	Timeout() time.Duration
	Secret() []byte
	ConfigureEnvironment(size int) error
	TargetAudiences() []string
}

TokenService represents a service providing Javascript Web Tokens.

type Transmission added in v0.5.3

type Transmission struct {
	ID         int
	AccountID  int
	Raw        []byte
	RequestKey string
	AgencyKey  int
	Status     string
	Created    time.Time
	Modified   time.Time
}

Transmission record of application being sent to external system for additional processing.

func (*Transmission) Find added in v0.5.3

func (transmission *Transmission) Find(context DatabaseService) error

Find is not used for transmissions. Please use the `Get` method.

func (*Transmission) Get added in v0.5.3

func (transmission *Transmission) Get(context DatabaseService) error

Get transmission record from the database.

func (*Transmission) Save added in v0.5.3

func (transmission *Transmission) Save(context DatabaseService) error

Save transmission record to the database.

type Treatment added in v0.5.3

type Treatment struct {
	PayloadName    Payload `json:"Name" sql:"-"`
	PayloadPhone   Payload `json:"Phone" sql:"-"`
	PayloadAddress Payload `json:"Address" sql:"-"`

	// Validator specific fields
	Name    *Text      `json:"-"`
	Phone   *Telephone `json:"-"`
	Address *Location  `json:"-"`

	// Persister specific fields
	ID        int `json:"-"`
	NameID    int `json:"-" pg:", fk:Name"`
	PhoneID   int `json:"-" pg:", fk:Phone"`
	AddressID int `json:"-" pg:", fk:Address"`
}

Treatment is a basic structure.

func (*Treatment) Delete added in v0.5.3

func (entity *Treatment) Delete(context DatabaseService, account int) (int, error)

Delete the treatment from data storage.

func (*Treatment) Find added in v0.5.3

func (entity *Treatment) Find(context DatabaseService) error

Find the previous entity stored if one is available.

func (*Treatment) Get added in v0.5.3

func (entity *Treatment) Get(context DatabaseService, account int) (int, error)

Get the treatment from data storage.

func (*Treatment) GetID added in v0.5.3

func (entity *Treatment) GetID() int

GetID returns the entity identifier.

func (*Treatment) Marshal added in v0.5.3

func (entity *Treatment) Marshal() Payload

Marshal to payload structure

func (*Treatment) Save added in v0.5.3

func (entity *Treatment) Save(context DatabaseService, account int) (int, error)

Save the treatment to data storage.

func (*Treatment) SetID added in v0.5.3

func (entity *Treatment) SetID(id int)

SetID sets the entity identifier.

func (*Treatment) Unmarshal added in v0.5.3

func (entity *Treatment) Unmarshal(raw []byte) error

Unmarshal bytes in to the entity properties.

func (*Treatment) Valid added in v0.5.3

func (entity *Treatment) Valid() (bool, error)

Valid checks the value(s) against an battery of tests.

type ValidationResult added in v0.5.3

type ValidationResult interface {
	Result(fieldname string) interface{}
}

ValidationResult is an interface to be used by errors that return a properly formatted struct to be used to send for client-side validation requests.

type Validator added in v0.5.3

type Validator interface {
	Valid() (bool, error)
}

Validator interface entities which allow validating properties.

type XMLService added in v0.5.3

type XMLService interface {
	DefaultTemplate(templateName string, data map[string]interface{}) (template.HTML, error)
}

XMLService represents a basic interface to XML related functionality.

Jump to

Keyboard shortcuts

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