nebula

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RabbitBroker = rabbitmq.NewBroker()
	NatsBroker   = nats.NewBroker()
	NsqBroker    = nsq.NewBroker()
)
View Source
var (
	Version = "v1.17.5"
	Conf    = config.NewConfig()
	Service = micro.NewService()
	Web     = web.NewService()
)

Functions

func InitNatsBroker added in v1.20.0

func InitNatsBroker(b broker.Broker, options ...broker.Option)

func InitNsqBroker added in v1.20.0

func InitNsqBroker(b broker.Broker, options ...broker.Option)

func InitProcess

func InitProcess()

func InitRabbitBroker added in v1.20.0

func InitRabbitBroker(b broker.Broker, options ...broker.Option)

func NewNatsBroker added in v1.20.0

func NewNatsBroker(opts ...broker.Option) broker.Broker

func NewNsqBroker added in v1.20.0

func NewNsqBroker(opts ...broker.Option) broker.Broker

func NewRabbitBroker added in v1.20.0

func NewRabbitBroker(opts ...broker.Option) broker.Broker

func NewService

func NewService() micro.Service

func Publish added in v1.20.0

func Publish(b broker.Broker, topic string, data []byte, opts ...broker.PublishOption) string

func Run

func Run()

func RunProcess

func RunProcess(process func(context.Context, context.CancelFunc) error)

func RunWeb

func RunWeb()

func SetName

func SetName(name string)

func Subscribe added in v1.20.0

func Subscribe(b broker.Broker, topic string, handle func(broker.Event) error, opts ...broker.SubscribeOption)

Types

type Option

type Option func(*Options)

type Options

type Options struct {
	Version string
	Conf    config.Config
	Service micro.Service
	Web     web.Service
	// contains filtered or unexported fields
}

Directories

Path Synopsis
demo
web

Jump to

Keyboard shortcuts

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