core

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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 ComCLI

type ComCLI struct {
	Handlers []cli.HandlerRegistry //starter:inject(".")
	Filters  []cli.FilterRegistry  //starter:inject(".")
	// contains filtered or unexported fields
}

ComCLI ... 实现一个自动配置的 CLI

func (*ComCLI) Bind

func (inst *ComCLI) Bind(cc context.Context) context.Context

Bind 把这个 CLI 绑定到指定的 Context

func (*ComCLI) GetClient

func (inst *ComCLI) GetClient() cli.Client

GetClient 取客户端

func (*ComCLI) GetServer

func (inst *ComCLI) GetServer() cli.Server

GetServer 取服务端

func (*ComCLI) Life

func (inst *ComCLI) Life() *application.Life

Life ...

type DefaultClientFactory

type DefaultClientFactory struct {
}

DefaultClientFactory ...

func (*DefaultClientFactory) NewClient

func (inst *DefaultClientFactory) NewClient(c *cli.Context) (cli.Client, error)

NewClient ...

type DefaultContextFactory

type DefaultContextFactory struct {
}

DefaultContextFactory ...

func (*DefaultContextFactory) NewContext

func (inst *DefaultContextFactory) NewContext(cfg *cli.Configuration) (*cli.Context, error)

NewContext ...

type DefaultServerFactory

type DefaultServerFactory struct {
}

DefaultServerFactory ...

func (*DefaultServerFactory) NewServer

func (inst *DefaultServerFactory) NewServer(c *cli.Context) (cli.Server, error)

NewServer ...

Jump to

Keyboard shortcuts

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