domain

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goal

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

Goal ...

func NewGoal

func NewGoal(creator, aim, reason, details, typ string, tags []string) *Goal

NewGoal creates a new Goal!

type Journey

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

Journey ...

Jump to

Keyboard shortcuts

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