Documentation ¶
Index ¶
- func NewInMemorySocialGraphStore() om.SocialGraphManager
- func NewSocialGraphManager(store om.SocialGraphManager) (om.SocialGraphManager, error)
- type DbSocialGraphStore
- func (s *DbSocialGraphStore) Follow(followed string, follower string) (err error)
- func (s *DbSocialGraphStore) GetFollowers(username string) (followers map[string]bool, err error)
- func (s *DbSocialGraphStore) GetFollowing(username string) (following map[string]bool, err error)
- func (s *DbSocialGraphStore) Unfollow(followed string, follower string) (err error)
- type Followers
- type Following
- type InMemorySocialGraphStore
- func (m *InMemorySocialGraphStore) Follow(followed string, follower string) (err error)
- func (m *InMemorySocialGraphStore) GetFollowers(username string) (map[string]bool, error)
- func (m *InMemorySocialGraphStore) GetFollowing(username string) (map[string]bool, error)
- func (m *InMemorySocialGraphStore) Unfollow(followed string, follower string) (err error)
- type SocialGraph
- type SocialGraphManager
- func (m *SocialGraphManager) Follow(followed string, follower string) (err error)
- func (m *SocialGraphManager) GetFollowers(username string) (result map[string]bool, err error)
- func (m *SocialGraphManager) GetFollowing(username string) (map[string]bool, error)
- func (m *SocialGraphManager) Unfollow(followed string, follower string) (err error)
- type SocialUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemorySocialGraphStore ¶
func NewInMemorySocialGraphStore() om.SocialGraphManager
func NewSocialGraphManager ¶
func NewSocialGraphManager(store om.SocialGraphManager) (om.SocialGraphManager, error)
Types ¶
type DbSocialGraphStore ¶
type DbSocialGraphStore struct {
// contains filtered or unexported fields
}
func NewDbSocialGraphStore ¶
func (*DbSocialGraphStore) Follow ¶
func (s *DbSocialGraphStore) Follow(followed string, follower string) (err error)
func (*DbSocialGraphStore) GetFollowers ¶
func (s *DbSocialGraphStore) GetFollowers(username string) (followers map[string]bool, err error)
func (*DbSocialGraphStore) GetFollowing ¶
func (s *DbSocialGraphStore) GetFollowing(username string) (following map[string]bool, err error)
type InMemorySocialGraphStore ¶
type InMemorySocialGraphStore struct {
// contains filtered or unexported fields
}
func (*InMemorySocialGraphStore) Follow ¶
func (m *InMemorySocialGraphStore) Follow(followed string, follower string) (err error)
func (*InMemorySocialGraphStore) GetFollowers ¶
func (m *InMemorySocialGraphStore) GetFollowers(username string) (map[string]bool, error)
func (*InMemorySocialGraphStore) GetFollowing ¶
func (m *InMemorySocialGraphStore) GetFollowing(username string) (map[string]bool, error)
type SocialGraph ¶
type SocialGraph map[string]*SocialUser
type SocialGraphManager ¶
type SocialGraphManager struct {
// contains filtered or unexported fields
}
func (*SocialGraphManager) Follow ¶
func (m *SocialGraphManager) Follow(followed string, follower string) (err error)
func (*SocialGraphManager) GetFollowers ¶
func (m *SocialGraphManager) GetFollowers(username string) (result map[string]bool, err error)
func (*SocialGraphManager) GetFollowing ¶
func (m *SocialGraphManager) GetFollowing(username string) (map[string]bool, error)
type SocialUser ¶
func NewSocialUser ¶
func NewSocialUser(username string) (user *SocialUser, err error)
Click to show internal directories.
Click to hide internal directories.