example

package
v0.0.0-...-05962f3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

代理对象

func NewProxy

func NewProxy() *Proxy

创建代理对象

func (*Proxy) Execute

func (t *Proxy) Execute(access string)

拦截 Execute 命令并将其重新路由到服务命令

type Service

type Service struct {
}

服务实现了用于执行任务的 ServiceInterface 接口

func (*Service) Execute

func (t *Service) Execute(access string)

服务对象的方法

type ServiceInterface

type ServiceInterface interface {
	Execute(access string)
}

服务接口

Jump to

Keyboard shortcuts

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