Documentation
¶
Index ¶
- Variables
- type Journal
- func (j *Journal) AddEvent(e friend.Event) (friend.Event, error)
- func (j *Journal) AddFriend(f friend.Person)
- func (j *Journal) AddFriendContact(fID string, c friend.Contact) (friend.Contact, error)
- func (j *Journal) AddFriendDate(fID string, d friend.Date) (friend.Date, error)
- func (j *Journal) AddFriendWishlistItem(fID string, w friend.WishlistItem) (friend.WishlistItem, error)
- func (j *Journal) AddLocation(l friend.Location)
- func (j *Journal) AddTags(t []tag.Tag)
- func (j *Journal) GetEvent(t friend.EventType, q string) (friend.Event, error)
- func (j *Journal) GetFriend(q string) (friend.Person, error)
- func (j *Journal) GetFriendContact(cID string) (friend.Contact, error)
- func (j *Journal) GetFriendDate(dID string) (friend.Date, error)
- func (j *Journal) GetFriendWishlistItem(wID string) (friend.WishlistItem, error)
- func (j *Journal) GetLocation(q string) (friend.Location, error)
- func (j *Journal) GuessFriends(q string) []*friend.Person
- func (j *Journal) Init()
- func (j *Journal) IsDirty() bool
- func (j *Journal) ListEvents(q friend.ListEventQuery) ([]friend.Event, error)
- func (j *Journal) ListFriendContacts(q friend.ListContactQuery) ([]friend.Contact, error)
- func (j *Journal) ListFriendDates(q friend.ListDateQuery) ([]friend.Date, error)
- func (j *Journal) ListFriendWishlistItems(q friend.ListWishlistQuery) ([]friend.WishlistItem, error)
- func (j *Journal) ListFriends(q friend.ListFriendQuery) []friend.Person
- func (j *Journal) ListLocations(q friend.ListLocationQuery) []friend.Location
- func (j *Journal) Path() string
- func (j *Journal) RemoveEvents(t friend.EventType, toRemove []friend.Event)
- func (j *Journal) RemoveFriendContacts(toRemove []friend.Contact) error
- func (j *Journal) RemoveFriendDates(toRemove []friend.Date) error
- func (j *Journal) RemoveFriendWishlistItems(toRemove []friend.WishlistItem) error
- func (j *Journal) RemoveFriends(toRemove []friend.Person)
- func (j *Journal) RemoveLocations(toRemove []friend.Location)
- func (j *Journal) SetDirty(d bool)
- func (j *Journal) Stats() Stats
- func (j *Journal) UpdateEvent(o, n friend.Event) (friend.Event, error)
- func (j *Journal) UpdateFriend(o, n friend.Person)
- func (j *Journal) UpdateFriendContact(o, n friend.Contact) (friend.Contact, error)
- func (j *Journal) UpdateFriendDate(o, n friend.Date) (friend.Date, error)
- func (j *Journal) UpdateFriendWishlistItem(o, n friend.WishlistItem) (friend.WishlistItem, error)
- func (j *Journal) UpdateLocation(o, n friend.Location)
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEventNotFound = errors.New("event not found")
Functions ¶
This section is empty.
Types ¶
type Journal ¶
type Journal struct {
DirPath string
Tags tag.Tags
Friends []*friend.Person
Locations friend.Locations
Activities []*friend.Event
Notes []*friend.Event
// contains filtered or unexported fields
}
func (*Journal) AddFriendContact ¶ added in v0.0.10
func (*Journal) AddFriendDate ¶ added in v0.0.8
func (*Journal) AddFriendWishlistItem ¶ added in v0.0.10
func (j *Journal) AddFriendWishlistItem( fID string, w friend.WishlistItem, ) (friend.WishlistItem, error)
func (*Journal) AddLocation ¶
func (*Journal) GetFriendContact ¶ added in v0.0.10
func (*Journal) GetFriendDate ¶ added in v0.0.8
func (*Journal) GetFriendWishlistItem ¶ added in v0.0.10
func (j *Journal) GetFriendWishlistItem(wID string) (friend.WishlistItem, error)
func (*Journal) ListEvents ¶ added in v0.0.7
func (*Journal) ListFriendContacts ¶ added in v0.0.10
func (*Journal) ListFriendDates ¶ added in v0.0.8
func (*Journal) ListFriendWishlistItems ¶ added in v0.0.10
func (j *Journal) ListFriendWishlistItems( q friend.ListWishlistQuery, ) ([]friend.WishlistItem, error)
func (*Journal) ListFriends ¶
func (j *Journal) ListFriends(q friend.ListFriendQuery) []friend.Person
func (*Journal) ListLocations ¶ added in v0.0.6
func (j *Journal) ListLocations(q friend.ListLocationQuery) []friend.Location
func (*Journal) RemoveEvents ¶
func (*Journal) RemoveFriendContacts ¶ added in v0.0.10
func (*Journal) RemoveFriendDates ¶ added in v0.0.8
func (*Journal) RemoveFriendWishlistItems ¶ added in v0.0.10
func (j *Journal) RemoveFriendWishlistItems(toRemove []friend.WishlistItem) error
func (*Journal) RemoveFriends ¶
func (*Journal) RemoveLocations ¶
func (*Journal) UpdateEvent ¶
func (*Journal) UpdateFriend ¶
func (*Journal) UpdateFriendContact ¶ added in v0.0.10
func (*Journal) UpdateFriendDate ¶ added in v0.0.8
func (*Journal) UpdateFriendWishlistItem ¶ added in v0.0.10
func (j *Journal) UpdateFriendWishlistItem(o, n friend.WishlistItem) (friend.WishlistItem, error)
func (*Journal) UpdateLocation ¶
Click to show internal directories.
Click to hide internal directories.