markup

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 0 Imported by: 129

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsComponentMark added in v0.0.42

func IsComponentMark(mark string) bool

IsComponentMark 判断给定的名称是不是一个组件标志

func IsComponentMarkWithPackage added in v0.0.42

func IsComponentMarkWithPackage(pkg string, mark string) bool

IsComponentMarkWithPackage 判断给定的名称(以及包名)是不是一个组件标志

Types

type Component

type Component struct {
}

Component 是一个标记,用于配置一个组件 请在配置组件的 struct {} 里面包含以下3个字段

markup.Component                   // 必须的
instance    *foo.Bar               // 必须的
context     application.Context    // 可选的

type Controller added in v0.0.41

type Controller struct {
	Component
}

Controller 是一个标记,用于配置一个Web控制器组件

type DataSource added in v0.0.41

type DataSource struct {
	Component
}

DataSource 是一个标记,用于配置一个数据源组件

type Repository added in v0.0.41

type Repository struct {
	Component
}

Repository 是一个标记,用于配置一个存储库组件

type RestController added in v0.0.41

type RestController struct {
	Component
	Controller
}

RestController 是一个标记,用于配置一个REST控制器组件

Jump to

Keyboard shortcuts

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