mirror of
https://github.com/logos-storage/logos-storage-go.git
synced 2026-04-18 17:03:07 +00:00
extracts CodexManifest to a separate file
This commit is contained in:
parent
37bd27abf1
commit
19807f7890
@ -23,18 +23,6 @@ type CodexClient struct {
|
||||
Client *http.Client
|
||||
}
|
||||
|
||||
type CodexManifest struct {
|
||||
CID string `json:"cid"`
|
||||
Manifest struct {
|
||||
TreeCid string `json:"treeCid"`
|
||||
DatasetSize int64 `json:"datasetSize"`
|
||||
BlockSize int `json:"blockSize"`
|
||||
Protected bool `json:"protected"`
|
||||
Filename string `json:"filename"`
|
||||
Mimetype string `json:"mimetype"`
|
||||
} `json:"manifest"`
|
||||
}
|
||||
|
||||
// NewCodexClient creates a new Codex client
|
||||
func NewCodexClient(host string, port string) *CodexClient {
|
||||
return &CodexClient{
|
||||
|
||||
14
communities/codex_manifest.go
Normal file
14
communities/codex_manifest.go
Normal file
@ -0,0 +1,14 @@
|
||||
package communities
|
||||
|
||||
// CodexManifest represents the manifest structure returned by Codex API
|
||||
type CodexManifest struct {
|
||||
CID string `json:"cid"`
|
||||
Manifest struct {
|
||||
TreeCid string `json:"treeCid"`
|
||||
DatasetSize int64 `json:"datasetSize"`
|
||||
BlockSize int `json:"blockSize"`
|
||||
Protected bool `json:"protected"`
|
||||
Filename string `json:"filename"`
|
||||
Mimetype string `json:"mimetype"`
|
||||
} `json:"manifest"`
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user