Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dir *string
View Source
var Scene *string
View Source
var Url *string
View Source
var Worker *int
Functions ¶
func NewLeveldbStore ¶ added in v1.4.1
func StartServer ¶ added in v1.4.3
func StartServer()
func StartWorker ¶ added in v1.4.3
func StartWorker()
Types ¶
type FileInfo ¶
type FileInfo struct { Name string `json:"name"` ReName string `json:"rename"` Path string `json:"path"` Md5 string `json:"md5"` Size int64 `json:"size"` Peers []string `json:"peers"` Scene string `json:"scene"` TimeStamp int64 `json:"timeStamp"` OffSet int64 `json:"offset"` // contains filtered or unexported fields }
type LeveldbStore ¶ added in v1.4.1
type LeveldbStore struct {
// contains filtered or unexported fields
}
func (*LeveldbStore) Close ¶ added in v1.4.1
func (s *LeveldbStore) Close()
func (*LeveldbStore) Delete ¶ added in v1.4.1
func (s *LeveldbStore) Delete(fingerprint string)
func (*LeveldbStore) Get ¶ added in v1.4.1
func (s *LeveldbStore) Get(fingerprint string) (string, bool)
func (*LeveldbStore) Set ¶ added in v1.4.1
func (s *LeveldbStore) Set(fingerprint, url string)
Click to show internal directories.
Click to hide internal directories.