Initial commit: Elydora Go SDK
Go SDK for Elydora agent operations, cryptographic signing, and audit trail integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
8916506ebc
26 files changed
+3381
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package elydora
|
||||
|
||||
import "fmt"
|
||||
|
||||
// ListEpochs lists all epochs for the organization.
|
||||
func (c *Client) ListEpochs() (*ListEpochsResponse, error) {
|
||||
var result ListEpochsResponse
|
||||
if err := c.doGet("/epochs", &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
|
||||
// GetEpoch retrieves a specific epoch by ID.
|
||||
func (c *Client) GetEpoch(epochID string) (*GetEpochResponse, error) {
|
||||
var result GetEpochResponse
|
||||
if err := c.doGet(fmt.Sprintf("/epochs/%s", epochID), &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
Reference in new issue
Block a user