Documentation ¶
Index ¶
- Constants
- func NewEvent(clock Clock, author, title string, standup Standup) interface{}
- func NewFace(clock Clock, author, title string, standup Standup) interface{}
- func NewHelp(clock Clock, author, title string, standup Standup) interface{}
- func NewInteresting(clock Clock, author, title string, standup Standup) interface{}
- type Clock
- type Entry
- type EntryType
- type Event
- type Face
- type Help
- type Interesting
- type Item
- type RealClock
- type Standup
- type StandupItems
- type WhiteboardRequest
Constants ¶
View Source
const ( DATE_FORMAT = "2006-01-02" DATE_STRING_FORMAT = "02 Jan 2006" )
Variables ¶
This section is empty.
Functions ¶
func NewInteresting ¶
Types ¶
type Entry ¶
type Entry struct { Date string `json:"date"` Title string `json:"title"` Body string `json:"description"` Author string `json:"author"` Id string `json:"-"` StandupId int `json:"-"` ItemKind string `json:"-"` }
func (Entry) GetDateString ¶
func (Entry) MakeCreateRequest ¶
func (entry Entry) MakeCreateRequest() WhiteboardRequest
func (Entry) MakeUpdateRequest ¶
func (entry Entry) MakeUpdateRequest() WhiteboardRequest
type EntryType ¶
type EntryType interface { Validate() bool MakeCreateRequest() WhiteboardRequest MakeUpdateRequest() WhiteboardRequest String() string GetEntry() *Entry GetDateString() string }
type Face ¶
type Face struct{ *Entry }
func (Face) MakeCreateRequest ¶
func (face Face) MakeCreateRequest() (request WhiteboardRequest)
func (Face) MakeUpdateRequest ¶
func (face Face) MakeUpdateRequest() (request WhiteboardRequest)
type Interesting ¶
type Interesting struct{ *Entry }
func (Interesting) GetEntry ¶
func (interesting Interesting) GetEntry() *Entry
type StandupItems ¶
type StandupItems struct { Helps []Entry `json:"Help"` Interestings []Entry `json:"Interesting"` Faces []Entry `json:"New face"` Events []Entry `json:"Event"` }
func (StandupItems) Empty ¶
func (items StandupItems) Empty() bool
func (StandupItems) EventsString ¶
func (items StandupItems) EventsString() string
func (StandupItems) FacesString ¶
func (items StandupItems) FacesString() string
func (StandupItems) HelpsString ¶
func (items StandupItems) HelpsString() string
func (StandupItems) InterestingsString ¶
func (items StandupItems) InterestingsString() string
func (StandupItems) String ¶
func (items StandupItems) String() string
Click to show internal directories.
Click to hide internal directories.