Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountFilter ¶
type AccountSaver ¶
type AccountSaver interface {
Save(account RawAccount) error
}
type AccountStorage ¶
type AccountStorage interface { AccountSaver AccountFilter }
type Filter ¶
type Filter struct { Type FilterType Values []string }
type FilterType ¶
type FilterType string
const ( FilterEq FilterType = "eq" FilterNeq FilterType = "neq" FilterLt FilterType = "lt" FilterGt FilterType = "gt" FilterAny FilterType = "any" FilterNull FilterType = "null" FilterContains FilterType = "contains" FilterDomain FilterType = "domain" FilterStarts FilterType = "starts" FilterCode FilterType = "code" FilterYear FilterType = "year" FilterNow FilterType = "now" )
type MaritalStatus ¶
type MaritalStatus string
const ( StatusAvailable MaritalStatus = "свободны" StatusInRelationship MaritalStatus = "заняты" StatusComplicated MaritalStatus = "всё сложно" )
type RawAccount ¶
type RawAccount struct { ID int32 `json:"id"` EMail string `json:"email"` Firstname string `json:"fname"` Surname string `json:"sname"` Phone string `json:"phone"` Sex string `json:"sex"` BirthTimestamp int64 `json:"birth"` Country string `json:"country"` City string `json:"city"` JoinedTimestamp int64 `json:"joined"` Status MaritalStatus `json:"status"` Interests []string `json:"interests"` Premium struct { StartTimestamp int64 `json:"start"` FinishTimestamp int64 `json:"finish"` } Likes []struct { ID int32 `json:"id"` Timestamp int64 `json:"ts"` } }
Click to show internal directories.
Click to hide internal directories.