boot

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broker

func Broker() []micro.Option

注意,当选择了使用grpc server后, broker会变得智能,如果你没有订阅,则不初始化broker 如果是默认rpc,无论订阅均会创建broker连接

func Client

func Client() []micro.Option

func ClientWrapper

func ClientWrapper() []micro.Option

ClientWrapper 客户端包装器

func Name

func Name() []micro.Option

func Registry

func Registry() []micro.Option

func RpcServer

func RpcServer() []micro.Option

func Select

func Select() []micro.Option

func ServerWrapper

func ServerWrapper() []micro.Option

ServerWrapper 服务端包装器

func Version

func Version() []micro.Option

func WebServer

func WebServer(e *echo.Echo, srvName string) []micro.Option

Types

type Chain

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

func (*Chain) New

func (c *Chain) New() micro.Service

func (*Chain) Options

func (c *Chain) Options() []micro.Option

func (*Chain) Then

func (c *Chain) Then(fn func() []micro.Option) *Chain

type ConsulOptions

type ConsulOptions struct {
	Addrs map[int]string `json:"addrs"`
}

type RabbitmqOptions

type RabbitmqOptions struct {
	Addrs map[int]string `json:"addrs"`
}

Jump to

Keyboard shortcuts

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