domain

package
v0.0.0-...-f73ca47 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidDataErr = errors.New("invalid contact data")
)

Functions

This section is empty.

Types

type AdvertDetails

type AdvertDetails struct {
	Title          MultilingualString
	Description    MultilingualString
	Type           AdvertType
	Views          int
	ContactDetails ContactDetails
}

type AdvertType

type AdvertType string
const (
	AdvertTypeTransport   AdvertType = "transport"
	AdvertTypeLawyer      AdvertType = "lawyer"
	AdvertTypePlaceToStay AdvertType = "place_to_stay"
	AdvertTypeJob         AdvertType = "job"
)

type ContactDetails

type ContactDetails struct {
	Mail        *string
	PhoneNumber *string
}

func NewContactDetails

func NewContactDetails(mail, phoneNumber string) (ContactDetails, error)

func (ContactDetails) IsEmpty

func (cd ContactDetails) IsEmpty() bool

type Person

type Person struct {
	FirstName string
	Surname   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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