Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
twitter_syncer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
twitter_syncer
Commits
b425d85a
Commit
b425d85a
authored
Oct 18, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm unused file
parent
6563925f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
47 deletions
+0
-47
api_req.go
api_req.go
+0
-47
No files found.
api_req.go
deleted
100644 → 0
View file @
6563925f
package
main
import
"golang.org/x/time/rate"
type
Task
struct
{
Idx
*
PageUsers
cli
*
Client
}
func
NewTask
()
*
Task
{
p
:=
NewPageUsers
(
NewIdx
([]
UserTask
{}))
return
&
Task
{
Idx
:
p
,
}
}
type
LikingUserTask
struct
{
task
*
Task
taskId
string
Ratelimiter
*
rate
.
Limiter
// 需要和单个或两个的cli rate limit一致;
}
func
NewLikingTask
()
{
}
func
(
l
*
LikingUserTask
)
Request
()
{
users
,
err
:=
l
.
task
.
Idx
.
Request
(
""
,
""
,
l
.
task
.
cli
.
TweetLikingUsers
)
_
,
_
=
users
,
err
}
type
RetweeterTask
struct
{
task
*
Task
taskId
string
Ratelimiter
*
rate
.
Limiter
// 需要和单个或两个的cli rate limit一致;
}
func
NewRetweeterTask
()
{
}
func
(
r
*
RetweeterTask
)
Request
()
{
users
,
err
:=
r
.
task
.
Idx
.
Request
(
""
,
""
,
r
.
task
.
cli
.
TweetLikingUsers
)
_
,
_
=
users
,
err
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment