-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add query for client #220
add query for client #220
Conversation
weilong.pwl seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
b258497
to
c828333
Compare
log_store.go
Outdated
uri += fmt.Sprintf("&end_cursor=%v", plr.EndCursor) | ||
} | ||
if plr.Query != "" { | ||
uri += fmt.Sprintf("&query=%v", plr.Query) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
client_interface.go
Outdated
// PullLogs gets logs from shard specified by shardId according cursor and endCursor. | ||
// The logGroupMaxCount is the max number of logGroup could be returned. | ||
// The nextCursor is the next cursor can be used to read logs at next time. | ||
// @note if you want to pull logs continuous, set endCursor = "" | ||
PullLogs(project, logstore string, shardID int, cursor, endCursor string, | ||
logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error) | ||
PullLogsWithQuery(plr *PullLogRequest) (gl *LogGroupList, nextCursor string, err error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我想这个common的方法可以改个名字:PullLogsV2之类的?不要过于突出 Query(一些用户用不到这个功能,反而会多问)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改为PullLogsV2,PullLogRequest放到了model.go里面
LGTM |
No description provided.