Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Flags = []cli.Flag{ cli.StringFlag{ Name: "server_name", EnvVar: "MICRO_SERVER_NAME", Usage: "Name of the server. go.micro.srv.example", }, cli.StringFlag{ Name: "server_id", EnvVar: "MICRO_SERVER_ID", Usage: "Id of the server. Auto-generated if not specified", }, cli.StringFlag{ Name: "server_address", EnvVar: "MICRO_SERVER_ADDRESS", Value: ":0", Usage: "Bind address for the server. 127.0.0.1:8080", }, cli.StringSliceFlag{ Name: "server_metadata", EnvVar: "MICRO_SERVER_METADATA", Value: &cli.StringSlice{}, Usage: "A list of key-value pairs defining metadata. version=1.0.0", }, cli.StringFlag{ Name: "broker", EnvVar: "MICRO_BROKER", Value: "http", Usage: "Broker for pub/sub. http, nats, etc", }, cli.StringFlag{ Name: "broker_address", EnvVar: "MICRO_BROKER_ADDRESS", Usage: "Comma-separated list of broker addresses", }, cli.StringFlag{ Name: "registry", EnvVar: "MICRO_REGISTRY", Value: "consul", Usage: "Registry for discovery. kubernetes, consul, etc", }, cli.StringFlag{ Name: "registry_address", EnvVar: "MICRO_REGISTRY_ADDRESS", Usage: "Comma-separated list of registry addresses", }, cli.StringFlag{ Name: "transport", EnvVar: "MICRO_TRANSPORT", Value: "http", Usage: "Transport mechanism used; http, rabbitmq, etc", }, cli.StringFlag{ Name: "transport_address", EnvVar: "MICRO_TRANSPORT_ADDRESS", Usage: "Comma-separated list of transport addresses", }, } Brokers = map[string]func([]string, ...broker.Option) broker.Broker{ "http": http.NewBroker, "nats": nats.NewBroker, "rabbitmq": rabbitmq.NewBroker, } Registries = map[string]func([]string, ...registry.Option) registry.Registry{ "kubernetes": kubernetes.NewRegistry, "consul": consul.NewRegistry, "etcd": etcd.NewRegistry, } Transports = map[string]func([]string, ...transport.Option) transport.Transport{ "http": thttp.NewTransport, "rabbitmq": trmq.NewTransport, "nats": tnats.NewTransport, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.