Update module path to github.com/Elydora-Infrastructure/Elydora-Go-SDK

- Update go.mod module path
- Update all import references
- Update README install and import examples

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 4.6 committed 2026-02-28 21:23:20 -05:00
1 parent fdae7e9a18
commit 0fdedb7247
13 files changed
+38 -99

No files matched your search

+1 -35
View File
@@ -1,43 +1,9 @@
package elydora
import (
"fmt"
"net/url"
"strconv"
)
// QueryAudit queries the audit log with the given parameters.
func (c *Client) QueryAudit(params *AuditQueryRequest) (*AuditQueryResponse, error) {
q := url.Values{}
if params.OrgID != "" {
q.Set("org_id", params.OrgID)
}
if params.AgentID != "" {
q.Set("agent_id", params.AgentID)
}
if params.OperationType != "" {
q.Set("operation_type", params.OperationType)
}
if params.StartTime != nil {
q.Set("start_time", strconv.FormatInt(*params.StartTime, 10))
}
if params.EndTime != nil {
q.Set("end_time", strconv.FormatInt(*params.EndTime, 10))
}
if params.Cursor != "" {
q.Set("cursor", params.Cursor)
}
if params.Limit != nil {
q.Set("limit", strconv.Itoa(*params.Limit))
}
path := "/audit"
if encoded := q.Encode(); encoded != "" {
path = fmt.Sprintf("/audit?%s", encoded)
}
var result AuditQueryResponse
if err := c.doGet(path, &result); err != nil {
if err := c.doPost("/v1/audit/query", params, &result); err != nil {
return nil, err
}
return &result, nil