Documentation ¶
Index ¶
- func NewLinkManager(linkStore LinkStore, socialGraphManager om.SocialGraphManager, natsUrl string, ...) (om.LinkManager, error)
- type DbLinkStore
- func (s *DbLinkStore) AddLink(request om.AddLinkRequest) (link *om.Link, err error)
- func (s *DbLinkStore) DeleteLink(username string, url string) (err error)
- func (s *DbLinkStore) GetLinks(request om.GetLinksRequest) (result om.GetLinksResult, err error)
- func (s *DbLinkStore) SetLinkStatus(username string, url string, status om.LinkStatus) (err error)
- func (s *DbLinkStore) UpdateLink(request om.UpdateLinkRequest) (link *om.Link, err error)
- type LinkManager
- func (m *LinkManager) AddLink(request om.AddLinkRequest) (err error)
- func (m *LinkManager) DeleteLink(username string, url string) (err error)
- func (m *LinkManager) GetLinks(request om.GetLinksRequest) (result om.GetLinksResult, err error)
- func (m *LinkManager) OnLinkChecked(username string, url string, status om.LinkStatus)
- func (m *LinkManager) UpdateLink(request om.UpdateLinkRequest) (err error)
- type LinkStore
- type UserLinks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLinkManager ¶
func NewLinkManager(linkStore LinkStore, socialGraphManager om.SocialGraphManager, natsUrl string, eventSink om.LinkManagerEvents, maxLinksPerUser int64) (om.LinkManager, error)
Types ¶
type DbLinkStore ¶
type DbLinkStore struct {
// contains filtered or unexported fields
}
func NewDbLinkStore ¶
func (*DbLinkStore) AddLink ¶
func (s *DbLinkStore) AddLink(request om.AddLinkRequest) (link *om.Link, err error)
func (*DbLinkStore) DeleteLink ¶
func (s *DbLinkStore) DeleteLink(username string, url string) (err error)
func (*DbLinkStore) GetLinks ¶
func (s *DbLinkStore) GetLinks(request om.GetLinksRequest) (result om.GetLinksResult, err error)
func (*DbLinkStore) SetLinkStatus ¶
func (s *DbLinkStore) SetLinkStatus(username string, url string, status om.LinkStatus) (err error)
func (*DbLinkStore) UpdateLink ¶
func (s *DbLinkStore) UpdateLink(request om.UpdateLinkRequest) (link *om.Link, err error)
type LinkManager ¶
type LinkManager struct {
// contains filtered or unexported fields
}
func (*LinkManager) AddLink ¶
func (m *LinkManager) AddLink(request om.AddLinkRequest) (err error)
func (*LinkManager) DeleteLink ¶
func (m *LinkManager) DeleteLink(username string, url string) (err error)
func (*LinkManager) GetLinks ¶
func (m *LinkManager) GetLinks(request om.GetLinksRequest) (result om.GetLinksResult, err error)
func (*LinkManager) OnLinkChecked ¶
func (m *LinkManager) OnLinkChecked(username string, url string, status om.LinkStatus)
func (*LinkManager) UpdateLink ¶
func (m *LinkManager) UpdateLink(request om.UpdateLinkRequest) (err error)
type LinkStore ¶
type LinkStore interface { GetLinks(request om.GetLinksRequest) (om.GetLinksResult, error) AddLink(request om.AddLinkRequest) (*om.Link, error) UpdateLink(request om.UpdateLinkRequest) (*om.Link, error) DeleteLink(username string, url string) error SetLinkStatus(username, url string, status om.LinkStatus) error }
Click to show internal directories.
Click to hide internal directories.