Documentation ¶
Overview ¶
Package domain is the package that holds the very basic domain objects
Package domain is the package that holds the very basic domain objects ¶
Package domain is the package that holds the very basic domain objects ¶
Package domain is the package that holds the very basic domain objects ¶
Package domain is the package that holds the very basic domain objects
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactDetails ¶
ContactDetails is the domain object for contact details
type Conversation ¶
type Conversation struct { TripID string RequestID string ConversationID string RequesterID string RequesterName string SupplierID string SupplierName string RequestedCapacity int RequesterApproved bool SupplierApproved bool RequesterContact ContactDetails SupplierContact ContactDetails Messages []Message }
Conversation is the domain object for a conversation
type Request ¶
type Request struct { ID string RequesterID string RequesterName string CountryID string Origin string Destination string RequestedSeats int Dates []time.Time State RequestState }
Request is the domain object for a request
type RequestState ¶
type RequestState int
RequestState is the state of a request
const ( // Requested is the initial state of a request, nothing has been done yet Requested RequestState = iota // BeingServed is the state of a request when one or more conversations are open BeingServed // Completed is the state of a request when at least one conversation has been completed Completed )
func (RequestState) String ¶
func (r RequestState) String() string
String returns the string representation of a RequestState
type Trip ¶
type Trip struct { ID string SupplierID string CountryID string Origin string Destination string Stops []string TripDate time.Time AvailableSeats int Note string }
Trip is the domain object for a trip
Click to show internal directories.
Click to hide internal directories.