Documentation
¶
Index ¶
- type CrawService
- type CrawServiceImpl
- type FavorService
- type FavorServiceImpl
- func (s *FavorServiceImpl) Add(ctx context.Context, favor *dto.Favor) error
- func (s *FavorServiceImpl) Del(ctx context.Context, uid int, site string, key string) error
- func (s *FavorServiceImpl) UserFavorSites(ctx context.Context, uid int, keyword string) ([]string, error)
- func (s *FavorServiceImpl) UserFavors(ctx context.Context, uid int, site string, keyword string) ([]*dto.Favor, error)
- type NodeService
- type NodeServiceImpl
- func (s *NodeServiceImpl) CheckNodes(ctx context.Context, clientPool *rpc.RpcPool) error
- func (s *NodeServiceImpl) Del(ctx context.Context, id int) error
- func (s *NodeServiceImpl) Get(ctx context.Context, q *dto.Query) ([]*dto.Node, error)
- func (s *NodeServiceImpl) Upsert(ctx context.Context, node *dto.Node) error
- type OAuthService
- type OAuthServiceImpl
- type SiteService
- type SiteServiceImpl
- func (s *SiteServiceImpl) Del(ctx context.Context, id int) error
- func (s *SiteServiceImpl) Get(ctx context.Context, q *dto.Query) ([]*dto.Site, error)
- func (s *SiteServiceImpl) Init(ctx context.Context) error
- func (s *SiteServiceImpl) ListOfIndex(ctx context.Context) ([]*dto.IndexSite, error)
- func (s *SiteServiceImpl) News(ctx context.Context, loginUser int, k string, kk string) (*dto.News, error)
- func (s *SiteServiceImpl) Upsert(ctx context.Context, site *dto.Site) error
- type UserService
- type UserServiceImpl
- func (s *UserServiceImpl) Auth(ctx context.Context, t string, ou oauth.User) (string, error)
- func (s *UserServiceImpl) GetUser(ctx context.Context, q *dto.Query) (*dto.User, error)
- func (s *UserServiceImpl) GetUserList(ctx context.Context) ([]*dto.User, error)
- func (s *UserServiceImpl) VerifyToken(ctx context.Context, username string, token string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrawService ¶
type CrawServiceImpl ¶
type CrawServiceImpl struct {
// contains filtered or unexported fields
}
func NewCrawService ¶
func NewCrawService(site repo.SiteRepo, node repo.NodeRepo) *CrawServiceImpl
type FavorService ¶
type FavorServiceImpl ¶
type FavorServiceImpl struct {
// contains filtered or unexported fields
}
func NewFavorService ¶
func NewFavorService(repo repo.FavorRepo) *FavorServiceImpl
func (*FavorServiceImpl) UserFavorSites ¶
type NodeService ¶
type NodeServiceImpl ¶
type NodeServiceImpl struct {
// contains filtered or unexported fields
}
func NewNodeService ¶
func NewNodeService(repo repo.NodeRepo) *NodeServiceImpl
func (*NodeServiceImpl) CheckNodes ¶
type OAuthService ¶
type OAuthServiceImpl ¶
type OAuthServiceImpl struct { }
func NewOAuthService ¶
func NewOAuthService() *OAuthServiceImpl
func (*OAuthServiceImpl) GetPlatform ¶
func (s *OAuthServiceImpl) GetPlatform(t string) oauth.OAuth
func (*OAuthServiceImpl) Platforms ¶
func (s *OAuthServiceImpl) Platforms(from string) []dto.OAuthPlatform
func (*OAuthServiceImpl) Redirect ¶
func (s *OAuthServiceImpl) Redirect(t string) string
type SiteService ¶
type SiteService interface { Init(context.Context) error ListOfIndex(context.Context) ([]*dto.IndexSite, error) News(context.Context, int, string, string) (*dto.News, error) Upsert(context.Context, *dto.Site) error Del(context.Context, int) error Get(context.Context, *dto.Query) ([]*dto.Site, error) }
type SiteServiceImpl ¶
type SiteServiceImpl struct {
// contains filtered or unexported fields
}
func NewSiteService ¶
func NewSiteService(repo repo.SiteRepo, favor repo.FavorRepo) *SiteServiceImpl
func (*SiteServiceImpl) ListOfIndex ¶
type UserService ¶
type UserServiceImpl ¶
type UserServiceImpl struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo repo.UserRepo) *UserServiceImpl
func (*UserServiceImpl) GetUserList ¶
func (*UserServiceImpl) VerifyToken ¶
Click to show internal directories.
Click to hide internal directories.