Documentation ¶
Index ¶
- func UnflattenTimelineDetail(flatDetail *FlatTimelineDetail) (*tr.TimelineDetail, error)
- func UnflattenTimelineEvent(ftle *FlatTimeLineEvent) (*tr.TimeLineEvent, error)
- type FlatTimeLineEvent
- type FlatTimelineDetail
- type Timeline
- func (t *Timeline) AddTimelineDetails(currentTable *table.Table, td tr.TimelineDetail) error
- func (t *Timeline) AddTimelineEvent(currentTable *table.Table, te tr.TimeLineEvent) error
- func (t *Timeline) CheckIfTimelineDetailExists(currentTable *table.Table, td tr.TimelineDetail) bool
- func (t *Timeline) CheckIfTimelineEventExists(currentTable *table.Table, te tr.TimeLineEvent) bool
- func (t *Timeline) CreateDetailTable(tableName string) (*table.Table, error)
- func (t *Timeline) CreateTable(tableName string) (*table.Table, error)
- func (t *Timeline) DeleteTimelineDetails(currentTable *table.Table, td tr.TimelineDetail) error
- func (t *Timeline) DeleteTimelineEvent(currentTable *table.Table, te tr.TimeLineEvent) error
- func (t *Timeline) GetAllTimelineDetails(currentTable *table.Table) (*[]tr.TimelineDetail, error)
- func (t *Timeline) GetCompleteTimeline(currentTable *table.Table) (*[]tr.TimeLineEvent, error)
- func (t *Timeline) GetTimelineDetail(currentTable *table.Table, td tr.TimelineDetail) (*tr.TimelineDetail, error)
- func (t *Timeline) GetTimelineEvent(currentTable *table.Table, te tr.TimeLineEvent) (*tr.TimeLineEvent, error)
- func (t *Timeline) UpdateTimelineDetails(currentTable *table.Table, td tr.TimelineDetail) error
- func (t *Timeline) UpdateTimelineEvent(currentTable *table.Table, te tr.TimeLineEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnflattenTimelineDetail ¶
func UnflattenTimelineDetail(flatDetail *FlatTimelineDetail) (*tr.TimelineDetail, error)
func UnflattenTimelineEvent ¶
func UnflattenTimelineEvent(ftle *FlatTimeLineEvent) (*tr.TimeLineEvent, error)
Types ¶
type FlatTimeLineEvent ¶
type FlatTimeLineEvent struct { Type string `json:"type"` ID string `json:"id"` Timestamp int64 `json:"timestamp"` Icon string `json:"icon"` Title string `json:"title"` Body string `json:"body"` ActionType string `json:"action_type,omitempty"` ActionPayload string `json:"action_payload,omitempty"` ActionLabel string `json:"action_label,omitempty"` Attributes string `json:"attributes"` Month string `json:"month"` CashChangeAmount float64 `json:"cashChangeAmount,omitempty"` }
func FlattenTimelineEvent ¶
func FlattenTimelineEvent(tle *tr.TimeLineEvent) (*FlatTimeLineEvent, error)
type FlatTimelineDetail ¶
type FlatTimelineDetail struct { ID string `json:"id"` TitleText string `json:"title_text"` SubtitleText string `json:"subtitle_text"` Sections string `json:"sections"` }
func FlattenTimelineDetail ¶
func FlattenTimelineDetail(detail *tr.TimelineDetail) (*FlatTimelineDetail, error)
type Timeline ¶
func NewTimelineKeyspace ¶
func (*Timeline) AddTimelineDetails ¶
func (*Timeline) AddTimelineEvent ¶
func (*Timeline) CheckIfTimelineDetailExists ¶
func (*Timeline) CheckIfTimelineEventExists ¶
func (*Timeline) CreateDetailTable ¶
func (*Timeline) CreateTable ¶
func (*Timeline) DeleteTimelineDetails ¶
func (*Timeline) DeleteTimelineEvent ¶
func (*Timeline) GetAllTimelineDetails ¶
func (*Timeline) GetCompleteTimeline ¶
func (*Timeline) GetTimelineDetail ¶
func (t *Timeline) GetTimelineDetail(currentTable *table.Table, td tr.TimelineDetail) (*tr.TimelineDetail, error)
func (*Timeline) GetTimelineEvent ¶
func (t *Timeline) GetTimelineEvent(currentTable *table.Table, te tr.TimeLineEvent) (*tr.TimeLineEvent, error)
func (*Timeline) UpdateTimelineDetails ¶
func (*Timeline) UpdateTimelineEvent ¶
Click to show internal directories.
Click to hide internal directories.