register

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(r APIRouter)

Add 添加api

func AddTask

func AddTask(task TaskRouter)

AddTask 添加任务

Types

type APIRouter

type APIRouter interface {
	Route(r *wkhttp.WKHttp)
}

APIRouter api路由者

func GetRoutes

func GetRoutes() []APIRouter

GetRoutes 获取所有路由者

type TaskRouter

type TaskRouter interface {
	RegisterTasks()
}

TaskRouter task路由者

func GetTasks

func GetTasks() []TaskRouter

GetTasks 获取所有任务

Jump to

Keyboard shortcuts

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