contract

package
v0.0.0-...-128a1fa Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AppKey = "httpgo:app"

AppKey 定义字符串凭证

View Source
const KernelKey = "httpgo:kernel"

KernelKey 提供 kenel 服务凭证

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	// Version 定义当前版本
	Version() string
	//BaseFolder 定义项目基础地址
	BaseFolder() string
	// ConfigFolder 定义了配置文件的路径
	ConfigFolder() string
	// LogFolder 定义了日志所在路径
	LogFolder() string
	// ProviderFolder 定义业务自己的服务提供者地址
	ProviderFolder() string
	// MiddlewareFolder 定义业务自己定义的中间件
	MiddlewareFolder() string
	// CommandFolder 定义业务定义的命令
	CommandFolder() string
	// RuntimeFolder 定义业务的运行中间态信息
	RuntimeFolder() string
	// TestFolder 存放测试所需要的信息
	TestFolder() string
}

App 定义接口

type Kernel

type Kernel interface {
	// HttpEngine http.Handler结构,作为net/http框架使用, 实际上是gin.Engine
	HttpEngine() http.Handler
}

Kernel 接口提供框架最核心的结构

Jump to

Keyboard shortcuts

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