common

package
v0.0.0-...-a969eaa Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalSystem

type ExternalSystem struct {
	ExternalSystemId string     `json:"externalSystemId,omitempty"`
	ExternalUrl      string     `json:"externalUrl,omitempty"`
	ExternalId       string     `json:"externalId,omitempty"`
	ExternalIdSecond string     `json:"externalIdSecond,omitempty"`
	ExternalSource   string     `json:"externalSource,omitempty"`
	SyncDate         *time.Time `json:"syncDate,omitempty"`
}

func (*ExternalSystem) Available

func (e *ExternalSystem) Available() bool

func (*ExternalSystem) FromGrpc

func (e *ExternalSystem) FromGrpc(grpcExternalSystem *grpccommon.ExternalSystemFields)

func (*ExternalSystem) String

func (e *ExternalSystem) String() string

type Location

type Location struct {
	Name          string   `json:"name"`
	RawAddress    string   `json:"rawAddress"`
	Country       string   `json:"country"`
	CountryCodeA2 string   `json:"countryCodeA2"`
	CountryCodeA3 string   `json:"countryCodeA3"`
	Region        string   `json:"region"`
	District      string   `json:"district"`
	Locality      string   `json:"locality"`
	AddressLine1  string   `json:"addressLine1"`
	AddressLine2  string   `json:"addressLine2"`
	Street        string   `json:"street"`
	HouseNumber   string   `json:"houseNumber"`
	ZipCode       string   `json:"zipCode"`
	PostalCode    string   `json:"postalCode"`
	AddressType   string   `json:"addressType"`
	Commercial    bool     `json:"commercial"`
	Predirection  string   `json:"predirection"`
	PlusFour      string   `json:"plusFour"`
	TimeZone      string   `json:"timeZone"`
	UtcOffset     *float64 `json:"utcOffset"`
	Latitude      *float64 `json:"latitude"`
	Longitude     *float64 `json:"longitude"`
}

func (Location) IsEmpty

func (l Location) IsEmpty() bool

type Participant

type Participant struct {
	ID              string          `json:"id"`
	ParticipantType ParticipantType `json:"participantType"`
}

func (Participant) NodeLabel

func (p Participant) NodeLabel() string

type ParticipantType

type ParticipantType string
const (
	UserType         ParticipantType = "User"
	ContactType      ParticipantType = "Contact"
	OrganizationType ParticipantType = "Organization"
	JobRoleType      ParticipantType = "JobRole"
)

type Social

type Social struct {
	Url            string `json:"url"`
	Alias          string `json:"alias"`
	ExternalId     string `json:"externalId"`
	FollowersCount int64  `json:"followersCount"`
}

type Source

type Source struct {
	Source        string `json:"source"`
	SourceOfTruth string `json:"sourceOfTruth"`
	AppSource     string `json:"appSource"`
}

func SourceFromGrpc

func SourceFromGrpc(grpcSource *grpccommon.SourceFields) Source

func (*Source) Available

func (s *Source) Available() bool

func (*Source) FromGrpc

func (s *Source) FromGrpc(grpcSource *grpccommon.SourceFields)

func (*Source) SetDefaultValues

func (s *Source) SetDefaultValues()

func (*Source) String

func (s *Source) String() string

Jump to

Keyboard shortcuts

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