support

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultClientFactory

type DefaultClientFactory struct {
	markup.Component `id:"cli-client-factory"`

	CLI *cli.Context `inject:"#cli-context"`
}

DefaultClientFactory 命令客户端工厂

func (*DefaultClientFactory) CreateAsyncClient

func (inst *DefaultClientFactory) CreateAsyncClient(ctx context.Context) cli.AsyncClient

CreateAsyncClient 创建异步客户端

func (*DefaultClientFactory) CreateClient

func (inst *DefaultClientFactory) CreateClient(ctx context.Context) cli.Client

CreateClient 创建同步客户端

type DefaultSerivce

type DefaultSerivce struct {
	markup.Component `id:"cli-service" initMethod:"Init"`

	CLI *cli.Context `inject:"#cli-context"`
	// contains filtered or unexported fields
}

DefaultSerivce 是默认的 CLI 服务

func (*DefaultSerivce) AddFilter

func (inst *DefaultSerivce) AddFilter(priority int, filter cli.Filter) error

AddFilter ...

func (*DefaultSerivce) FindHandler

func (inst *DefaultSerivce) FindHandler(name string) (cli.Handler, error)

FindHandler ...

func (*DefaultSerivce) GetClient

func (inst *DefaultSerivce) GetClient(ctx context.Context) cli.Client

GetClient ...

func (*DefaultSerivce) GetClientFactory

func (inst *DefaultSerivce) GetClientFactory() cli.ClientFactory

GetClientFactory ...

func (*DefaultSerivce) GetFilterChain

func (inst *DefaultSerivce) GetFilterChain() cli.FilterChain

GetFilterChain ...

func (*DefaultSerivce) GetHandlerNames

func (inst *DefaultSerivce) GetHandlerNames() []string

GetHandlerNames ...

func (*DefaultSerivce) Init

func (inst *DefaultSerivce) Init() error

Init ...

func (*DefaultSerivce) RegisterHandler

func (inst *DefaultSerivce) RegisterHandler(name string, h cli.Handler) error

RegisterHandler ...

Jump to

Keyboard shortcuts

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