aco

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcoServer

type AcoServer struct {
	// contains filtered or unexported fields
}

func NewAcoServer

func NewAcoServer() *AcoServer

func (*AcoServer) GetRouteAcoIndex

func (s *AcoServer) GetRouteAcoIndex(routeList []Route, count ...int) []int

func (*AcoServer) GetRouteScore

func (s *AcoServer) GetRouteScore(time int64) map[string]int64

func (*AcoServer) OnDownloadEnd

func (s *AcoServer) OnDownloadEnd(route Route)

func (*AcoServer) OnDownloadFinish

func (s *AcoServer) OnDownloadFinish(route Route, downloadDetail *DownloadDetail)

func (*AcoServer) OnDownloadStart

func (s *AcoServer) OnDownloadStart(route Route)

type DownloadDetail

type DownloadDetail struct {
	StartMs int64
	EndMs   int64
	Size    int64
}

type Route

type Route struct {
	LinkNode   boson.Address
	TargetNode boson.Address
}

func NewRoute

func NewRoute(linkAddr boson.Address, targetAddr boson.Address) Route

func (*Route) ToString

func (r *Route) ToString() string

Jump to

Keyboard shortcuts

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