service

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnTaskPoll *taskpoll.TPController
View Source
var SpeedTaskPoll *taskpoll.TPController

Functions

func CleanUpServer

func CleanUpServer()

func InitServer

func InitServer()

func StartTaskServer

func StartTaskServer()

Types

type TestingPollItem

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

func (*TestingPollItem) Count

func (tpi *TestingPollItem) Count() int

func (*TestingPollItem) ID

func (tpi *TestingPollItem) ID() string

func (*TestingPollItem) Init

func (*TestingPollItem) OnExit

func (tpi *TestingPollItem) OnExit(exitCode taskpoll.TPExitCode)

func (*TestingPollItem) TaskName

func (tpi *TestingPollItem) TaskName() string

func (*TestingPollItem) Weight

func (tpi *TestingPollItem) Weight() uint

func (*TestingPollItem) Yield

func (tpi *TestingPollItem) Yield(idx int, tpc *taskpoll.TPController)

type WsHandler

type WsHandler struct {
	Serve    func(http.ResponseWriter, *http.Request)
	IPFilter *ipfilter.IPFilter
}

func (*WsHandler) ServeHTTP

func (wh *WsHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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