Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultFileRetentionTime = time.Hour * 72
Maximum default time for saving predict file results
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XuperDB ¶
type XuperDB struct { PrivateKey ecdsa.PrivateKey // the private key is the dataOwner node client private key generated by the executor Address string // the dataOwner node host Ns string // it defines which namespace in XuperDB prediction file will be stored ExpireTime int64 // the expiration time of the files stored in XuperDB }
XuperDB defines xuperdb client Only the prediction files supports storing to xuperdb
func New ¶
func New(expireTime int64, ns, host string, privateKey ecdsa.PrivateKey) *XuperDB
New initiates xuperDB Storage
Click to show internal directories.
Click to hide internal directories.