pkg

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	StreetAddressLine1 string `json:"streetAddress1"`
	StreetAddressLine2 string `json:"streetAddress2"`
	PostalCode         string `json:"postalCode"`
	Province           string `json:"province"`
	Country            Country
	State              State
	City               City
}

Address is the address of a user

type Chat

type Chat struct {
	ID        string                       `json:"_id"`
	Messages  []UserMessage                `json:"messages"`
	Observers map[string]chan *UserMessage `json:"observers"`
	StartDate time.Time                    `json:"startdate"`
	EndDate   time.Time                    `json:"enddate"`
}

Chat ...is the same as chatroom

type City

type City struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

City struct

type Comment

type Comment struct {
	ID     string `json:"id"`
	UserID string `json:"userid"`
	Text   string `json:"text"`
}

Comment ...

type Contact

type Contact struct {
	LineNumber  string `json:"linenumber"`
	CountryCode string `json:"countrycode"`
	AreaCode    string `json:"areacode"`
	Premfix     string `json:"prefix"`
}

Contact is the data structure for storing contact information such as phone numbers (Contact)

type Country

type Country struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

Country struct

type File

type File struct {
	// ID     string `json:"id"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Size   int64  `json:"size"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
}

File ...

type Goal

type Goal struct {
	ID           string    `json:"id"`
	Creator      string    `json:"author"`
	Participants []string  `json:"managers"`
	Likes        []string  `json:"likes"`
	Watchers     []string  `json:"watchers"`
	Aim          string    `json:"aim"`
	Reason       string    `json:"reason"`
	Details      string    `json:"details"`
	Inspiration  string    `json:"inspiration"`
	Type         string    `json:"type"`
	Tags         []string  `json:"tags"`
	SimilarGoals []string  `json:"similarGoals"`
	Journey      Journey   `json:"journey"`
	IsAchieved   bool      `json:"isAchieved"`
	IsPrivate    bool      `json:"isPrivate"`
	Date         time.Time `json:"timestamp"`
}

Goal ...

type Group

type Group struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	People      []string  `json:"people"`
	Details     string    `json:"details"`
	Description string    `json:"description"`
	Type        string    `json:"type"`
	Date        time.Time `json:"timestamp"`
}

Group ...

type Image

type Image struct {
	// ID     string `json:"id"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Size   int64  `json:"size"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
}

Image ...

type Journey

type Journey struct {
	ID           string    `json:"id"`
	Details      string    `json:"details"`
	IsComplete   bool      `json:"isComplete"`
	IsInProgress bool      `json:"isInProgress"`
	IsStarted    bool      `json:"isStarted"`
	Type         string    `json:"type"`
	Steps        []string  `json:"steps"`
	Progress     int32     `json:"progress"`
	StartDate    time.Time `json:"startdate"`
	DueDate      time.Time `json:"duedate"`
}

Journey ...

type JourneyInput

type JourneyInput struct {
	Details      string   `json:"details"`
	IsComplete   bool     `json:"isComplete"`
	IsInProgress bool     `json:"isInProgress"`
	IsStarted    bool     `json:"isStarted"`
	Type         string   `json:"type"`
	Steps        []string `json:"steps"`
	Progress     *int     `json:"progress"`
}

type Language

type Language struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

Language is the name of a user's language spoken

type Location

type Location struct {
	ID        string  `json:"id"`
	Longitude float64 `json:"longitude"`
	Latitude  float64 `json:"latitude"`
}

Location ...

type LocationInput

type LocationInput struct {
	Longitude float64 `json:"longitude"`
	Latitude  float64 `json:"latitude"`
}

type Login

type Login struct {
	UserName string `json:"username"`
	Password string `json:"paswword"`
}

Login ...

type LoginInput

type LoginInput struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Match

type Match struct {
	ID           string    `json:"id"`
	PersonID     string    `json:"person_id"`
	Details      string    `json:"details"`
	Description  string    `json:"description"`
	Type         string    `json:"type"`
	Similarities []string  `json:"similarities"`
	Date         time.Time `json:"timestamp"`
}

Match ...

type MatchedUser

type MatchedUser struct {
	Name         string `json:"name"`
	Username     string `json:"username"`
	Firstname    string `json:"firstname"`
	Lastname     string `json:"lastname"`
	Status       string `json:"status"`
	Type         string `json:"account_type"`
	EmailAddress string `json:"emailaddress"`
	Gender       string `json:"gender"`
}

MatchedUser ...

type PaginationInput

type PaginationInput struct {
	Skip *int `json:"skip"`
	Take *int `json:"take"`
}

type PostGoalInput

type PostGoalInput struct {
	Creator      string        `json:"creator"`
	Aim          string        `json:"aim"`
	Participants []string      `json:"participants"`
	Likes        []string      `json:"likes"`
	Watchers     []string      `json:"watchers"`
	Reason       string        `json:"reason"`
	Inspiration  string        `json:"inspiration"`
	Details      string        `json:"details"`
	Type         string        `json:"type"`
	Tags         []string      `json:"tags"`
	SimilarGoals []string      `json:"similarGoals"`
	IsAchieved   bool          `json:"isAchieved"`
	IsPrivate    bool          `json:"isPrivate"`
	Journey      *JourneyInput `json:"journey"`
}

type PostGroupInput

type PostGroupInput struct {
	Title       string   `json:"title"`
	Details     string   `json:"details"`
	Description string   `json:"description"`
	Type        string   `json:"type"`
	People      []string `json:"people"`
}

type PostPostInput

type PostPostInput struct {
	Author           string  `json:"author"`
	Anonymous        *bool   `json:"anonymous"`
	Topic            string  `json:"topic"`
	Category         string  `json:"category"`
	ContentText      string  `json:"contentText"`
	Type             string  `json:"type"`
	Latitude         float64 `json:"latitude"`
	Longitude        float64 `json:"longitude"`
	ContentPhotoName string  `json:"contentPhotoName"`
	ContentFileName  string  `json:"contentFileName"`
}

type PostSpaceInput

type PostSpaceInput struct {
	Creator     string     `json:"creator"`
	Topic       string     `json:"topic"`
	Details     string     `json:"details"`
	Description string     `json:"description"`
	Type        string     `json:"type"`
	Tags        []string   `json:"tags"`
	Date        *time.Time `json:"date"`
	Managers    []string   `json:"managers"`
	Followers   []string   `json:"followers"`
}

type PostTaskInput

type PostTaskInput struct {
	Text string     `json:"text"`
	Date *time.Time `json:"date"`
}

type Profile

type Profile struct {
	ID              string            `json:"id"`
	UserID          string            `json:"userID"`
	Level           string            `json:"level"`
	Rings           int32             `json:"rings"`
	About           string            `json:"about"`
	ProfileImage    Image             `json:"profileImage"`
	BackgroundImage Image             `json:"backgroundImage"`
	Followers       []string          `json:"followers"`
	Following       []string          `json:"following"`
	SocialProfiles  map[string]string `json:"socialprofiles"`
	DateLastUpdated time.Time         `json:"dateLastUpdated"`
}

Profile ...

type Register

type Register struct {
	UserName     string `json:"username"`
	Password     string `json:"paswword"`
	FirstName    string `json:"firstname"`
	LastName     string `json:"lastname"`
	EmailAddress string `json:"emailAddress"`
	Gender       string `json:"gender"`
}

Register ...

type RegisterInput

type RegisterInput struct {
	Username     string `json:"username"`
	Password     string `json:"password"`
	Firstname    string `json:"firstname"`
	Lastname     string `json:"lastname"`
	EmailAddress string `json:"emailAddress"`
	Gender       string `json:"gender"`
}

type Share

type Share struct {
	Party string `json:"party"`
}

Share ...

type Space

type Space struct {
	ID          string    `json:"id"`
	Creator     string    `json:"author"`
	Managers    []string  `json:"managers"`
	Topic       string    `json:"topic"`
	Details     string    `json:"details"`
	Description string    `json:"description"`
	Type        string    `json:"type"`
	Tags        []string  `json:"tags"`
	Date        time.Time `json:"timestamp"`
	Followers   []string  `json:"followers"`
}

Space ...

type State

type State struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

State struct

type Task

type Task struct {
	ID   string `json:"id"`
	Text string `json:"text"`
}

Task ...

type UpdateGoalInput

type UpdateGoalInput struct {
	ID           string        `json:"id"`
	Creator      string        `json:"creator"`
	Aim          string        `json:"aim"`
	Participants []string      `json:"participants"`
	Likes        []string      `json:"likes"`
	Watchers     []string      `json:"watchers"`
	Reason       string        `json:"reason"`
	Inspiration  string        `json:"inspiration"`
	Details      string        `json:"details"`
	Type         string        `json:"type"`
	Tags         []string      `json:"tags"`
	SimilarGoals []string      `json:"similarGoals"`
	IsAchieved   bool          `json:"isAchieved"`
	IsPrivate    bool          `json:"isPrivate"`
	Journey      *JourneyInput `json:"journey"`
}

type UpdateGroupInput

type UpdateGroupInput struct {
	ID          string   `json:"id"`
	Title       string   `json:"title"`
	Details     string   `json:"details"`
	Description string   `json:"description"`
	Type        string   `json:"type"`
	People      []string `json:"people"`
}

type UpdatePostInput

type UpdatePostInput struct {
	ID               string  `json:"id"`
	Author           string  `json:"author"`
	Anonymous        *bool   `json:"anonymous"`
	Topic            string  `json:"topic"`
	Category         string  `json:"category"`
	ContentText      string  `json:"contentText"`
	Type             string  `json:"type"`
	Latitude         float64 `json:"latitude"`
	Longitude        float64 `json:"longitude"`
	ContentPhotoName string  `json:"contentPhotoName"`
	ContentFileName  string  `json:"contentFileName"`
}

type UpdateSpaceInput

type UpdateSpaceInput struct {
	ID          string     `json:"id"`
	Creator     string     `json:"creator"`
	Topic       string     `json:"topic"`
	Details     string     `json:"details"`
	Description string     `json:"description"`
	Type        string     `json:"type"`
	Tags        []string   `json:"tags"`
	Date        *time.Time `json:"date"`
	Managers    []string   `json:"managers"`
	Followers   []string   `json:"followers"`
}

type UpdateTaskInput

type UpdateTaskInput struct {
	ID   string     `json:"id"`
	Text string     `json:"text"`
	Date *time.Time `json:"date"`
}

type User

type User struct {
	ID                string     `json:"id"`
	Name              string     `json:"name"`
	Username          string     `json:"username"`
	Password          string     `json:"paswword"`
	Firstname         string     `json:"firstname"`
	Lastname          string     `json:"lastname"`
	Middlename        string     `json:"middlename"`
	Status            string     `json:"status"`
	Type              string     `json:"account_type"`
	EmailAddress      string     `json:"emailaddress"`
	Gender            string     `json:"gender"`
	BirthDate         time.Time  `json:"birthdate"`
	DateJoined        time.Time  `json:"datejoined"`
	MobilePhoneNumber Contact    `json:"mobile_phone_number"`
	BillingAddress    Address    `json:"billingAddress"`
	MailingAddress    Address    `json:"mailingAddress"`
	Languages         []Language `json:"languages"`
}

User ...

type UserMessage

type UserMessage struct {
	ID         string    `json:"_id"`
	Sender     string    `json:"sender"`
	Receiver   string    `json:"receiver"`
	Type       string    `json:"type"`
	Text       string    `json:"text"`
	IsSeen     bool      `json:"is_seen"`
	IsSent     bool      `json:"is_sent"`
	IsReceived bool      `json:"is_received"`
	Timestamp  time.Time `json:"timestamp"`
}

UserMessage ...

type UserPost

type UserPost struct {
	ID           string    `json:"id" `
	Author       string    `json:"author"`
	Anonymous    bool      `json:"anonymous"`
	Topic        string    `json:"topic"`
	Category     string    `json:"category"`
	ContentText  string    `json:"contentText"`
	Type         string    `json:"type"`
	Latitude     float64   `json:"latitude"`
	Longitude    float64   `json:"longitude"`
	Date         time.Time `json:"timestamp"`
	ContentPhoto Image     `json:"contentPhoto"`
	ContentFile  File      `json:"contentFile"`
	Likes        []string  `json:"likes"`
	Agreements   []string  `json:"agreements"`
	Followers    []string  `json:"followers"`
	Comments     []Comment `json:"comments"`
	Shares       []Share   `json:"shares"`
}

UserPost ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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