Documentation ¶
Index ¶
- Constants
- func CheckLockError(err error)
- func Download(destdir, apiPrefix, groupid, trxid string) error
- func Execute()
- func FileToSegments(filename string, fileinfo *Fileinfo, tmpdir string) error
- func HttpCheckTrxId(apiPrefix string, groupid string, trxid string) (bool, error)
- func HttpGetFileFromGroup(apiPrefix string, groupid string, trxid string) (*quorumpb.Object, string, error)
- func HttpGetFromContentApi(apiPrefix string, groupid string, trxid string, num int, includetrx bool) ([]byte, error)
- func HttpGetNextFileFromGroupByTrx(apiPrefix string, groupid string, trxid string) (*quorumpb.Object, string, error)
- func InitDefaultKeystore(config InitKeystoreParam, nodeoptions *options.NodeOptions) (localcrypto.Keystore, *ethkeystore.Key, error)
- func InitRelayNodeKeystore(config cli.RelayNodeFlag, defaultKeyName string, ...) (localcrypto.Keystore, *ethkeystore.Key, error)
- func OpenFileInZip(zipfile *zip.ReadCloser, name string) (io.ReadCloser, error)
- func ParseFileSegment(fileobj *quorumpb.Object) ([]byte, error)
- func PostFileToGroupApi(apiPrefix, groupid string, post *quorumpb.Activity) (string, error)
- func ReadFileInZip(zipfile *zip.ReadCloser, filename string) (string, error)
- func Split(filename, tmpdir string) error
- func Upload(segmentsdir, groupid, apiPrefix string) error
- func WriteFileinfo(segmentpath string, fileinfo *Fileinfo)
- func WriteToFile(tmpdir string, filename string, data []byte) error
- type Container
- type Contentfile
- type FileItem
- type Fileinfo
- type GroupContentObjectItem
- type InitKeystoreParam
- type Metadata
- type Rootfile
- type Segmentinfo
- type Trx
- type TrxResult
Constants ¶
View Source
const ChunkSize int = 800 * 1024 //0.8MB
Variables ¶
This section is empty.
Functions ¶
func HttpCheckTrxId ¶
func HttpGetFileFromGroup ¶
func HttpGetFromContentApi ¶
func InitDefaultKeystore ¶
func InitDefaultKeystore(config InitKeystoreParam, nodeoptions *options.NodeOptions) (localcrypto.Keystore, *ethkeystore.Key, error)
func InitRelayNodeKeystore ¶
func InitRelayNodeKeystore(config cli.RelayNodeFlag, defaultKeyName string, relayNodeOpt *options.RelayNodeOptions) (localcrypto.Keystore, *ethkeystore.Key, error)
func OpenFileInZip ¶
func OpenFileInZip(zipfile *zip.ReadCloser, name string) (io.ReadCloser, error)
func PostFileToGroupApi ¶
func ReadFileInZip ¶
func ReadFileInZip(zipfile *zip.ReadCloser, filename string) (string, error)
func WriteFileinfo ¶
Types ¶
type Contentfile ¶
type Contentfile struct {
Metadata Metadata `xml:"metadata"`
}
type Fileinfo ¶
type Fileinfo struct { MediaType string `json:"mediaType"` Name string `json:"name"` Title string `json:"title"` Sha256 string `json:"sha256"` Segments *[]Segmentinfo `json:"segments"` }
func VerifyFileFormat ¶
func VerifySegments ¶
type GroupContentObjectItem ¶
type InitKeystoreParam ¶
type Segmentinfo ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.