types

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationRunner

type ApplicationRunner struct {
	Component
}

ApplicationRunner can be called automate when framework boot up

param:

- `order` define call sequence

func (*ApplicationRunner) Order

func (a *ApplicationRunner) Order() int

type AutoConfigure

type AutoConfigure struct {
	Component
}

AutoConfigure can auto compile and inject config

param:

- `prefix` define prefix in config file

func (*AutoConfigure) Prefix

func (c *AutoConfigure) Prefix() string

type Component

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

Component is base bean implement

param:

- `name` define bean name

func (*Component) Bean

func (c *Component) Bean() string

func (*Component) BeanEnd added in v1.4.4

func (c *Component) BeanEnd()

func (*Component) BeanStart added in v1.4.4

func (c *Component) BeanStart()

func (*Component) GetTag

func (c *Component) GetTag(key string) (string, bool)

func (*Component) SetTag

func (c *Component) SetTag(tag reflect.StructTag)

type Controller

type Controller struct {
	Component
}

Controller is handle http request and response

param:

- `group` define prefix handler

func (*Controller) Group

func (c *Controller) Group() string

type DataSourceDriver added in v1.4.3

type DataSourceDriver struct {
	Component
}

DataSourceDriver used to adapter multiple type db

param:

- `type` define datasource type

- `driver` define datasource type

func (*DataSourceDriver) Driver added in v1.4.3

func (d *DataSourceDriver) Driver() string

func (*DataSourceDriver) Type added in v1.4.3

func (d *DataSourceDriver) Type() string

type FactoryBean

type FactoryBean struct {
	Component
}

FactoryBean can produce bean dynamic

param:

- `singleton` define factory bean produce singleton bean or not

func (*FactoryBean) IsSingleton

func (f *FactoryBean) IsSingleton() bool

type FeignClient

type FeignClient struct {
	Component
}

func (*FeignClient) Name

func (f *FeignClient) Name() string

func (*FeignClient) Path

func (f *FeignClient) Path() string

func (*FeignClient) Url

func (f *FeignClient) Url() string

type Filter

type Filter struct {
	Component
}

Filter is http servlet filter, can optimize request and response

param:

- `order` define filter sequence

- `pattern` define url matching pattern

func (*Filter) Order

func (f *Filter) Order() int

func (*Filter) UrlPatterns

func (f *Filter) UrlPatterns() []string

type FsController added in v1.4.3

type FsController struct {
	Controller
}

FsController is handle static assets

param:

- `compile` define whether to use html/template compile

func (*FsController) Compile added in v1.4.3

func (f *FsController) Compile() bool

type Repository

type Repository struct {
	Component
}

Repository is persistence layer

param:

- `table` define table

func (*Repository) Table

func (c *Repository) Table() string

type Service

type Service struct {
	Component
}

Service is service layer

param:

- `service` define service name

func (*Service) ServiceFor

func (c *Service) ServiceFor() string

type Websocket

type Websocket struct {
	Component
}

Websocket can upgrade http request to websocket

param:

- `endpoint` define websocket endpoint

func (*Websocket) Endpoint

func (w *Websocket) Endpoint() string

Jump to

Keyboard shortcuts

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