contract

package
v0.0.0-...-d87d503 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AppKey = "web:app"

AppKey identify

View Source
const KernelKey = "web:kernel"

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	// Version
	Version() string
	// BaseFolder project base path
	BaseFolder() string
	// ConfigFoler Config file path
	ConfigFolder() string
	// LogFolder log file path
	LogFolder() string
	// ProviderFolder provider folder
	ProviderFolder() string
	// MiddlewareFolder middleware folder
	MiddlewareFolder() string
	// CommandFolder command folder
	CommandFolder() string
	// RuntimeFolder runtime folder
	RuntimeFolder() string
	// TestFolder test folder
	TestFolder() string
}

App define app interface

type Kernel

type Kernel interface {
	// Represet net/http, real is gin.Engine
	HttpEngine() http.Handler
}

Kernel interface provider framwork kernel structure

Jump to

Keyboard shortcuts

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