api

package
v0.11.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOzone added in v0.11.9

func GetOzone(w http.ResponseWriter, req *http.Request)

func GetVideoSlice

func GetVideoSlice(w http.ResponseWriter, req *http.Request)

func GetVideoSliceCache added in v0.11.9

func GetVideoSliceCache(w http.ResponseWriter, req *http.Request)

func PrepareVideoFileCache added in v0.11.9

func PrepareVideoFileCache(w http.ResponseWriter, req *http.Request)

func StartHTTPServ

func StartHTTPServ(ctx context.Context)

Types

type OzoneInfo added in v0.11.9

type OzoneInfo struct {
	WalletAddress  string `json:"walletAddress"`
	SequenceNumber string `json:"sequenceNumber"`
}

type SharedFileInfo added in v0.10.0

type SharedFileInfo struct {
	FileHash     string
	OwnerAddress string
}

type SliceInfo

type SliceInfo struct {
	SliceHash string
	TaskId    string
}

type StreamInfo

type StreamInfo struct {
	HeaderFile         string
	SegmentToSliceInfo map[string]*protos.DownloadSliceInfo
	FileInfo           *protos.RspFileStorageInfo
}

type StreamInfoBody added in v0.11.9

type StreamInfoBody struct {
	PubKey    string `json:"pubKey"`
	Signature string `json:"signature"`
	ReqTime   int64  `json:"reqTime"`
}

type StreamReqBody

type StreamReqBody struct {
	FileHash      string
	FileName      string
	WalletAddress string
	P2PAddress    string
	SpP2pAddress  string
	RestAddress   string
	Sign          []byte
	SavePath      string
	FileReqId     string
	FileTimestamp int64
	SliceInfo     *protos.DownloadSliceInfo
	SliceInfos    []*protos.DownloadSliceInfo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL