import "github.com/micro/go-plugins"
Package plugin provides the ability to load plugins
Build generates a dso plugin using the go command `go build -buildmode=plugin`
Generate creates a go file at the specified path. You must use `go build -buildmode=plugin`to build it.
Init sets up the plugin
type Plugin struct { // Name of the plugin e.g rabbitmq Name string // Type of the plugin e.g broker Type string // Path specifies the import path Path string // NewFunc creates an instance of the plugin NewFunc interface{} }
Plugin is a plugin loaded from a file
Load loads a plugin created with `go build -buildmode=plugin`
Path | Synopsis |
---|---|
broker/gocloud | Package gocloud provides a pubsub broker for Go Cloud. |
broker/googlepubsub | Package googlepubsub provides a Google cloud pubsub broker |
broker/grpc | Package grpc is a point to point grpc broker |
broker/grpc/proto | Package broker is a generated protocol buffer package. |
broker/http | Package http provides a http based message broker |
broker/kafka | Package kafka provides a kafka broker using sarama cluster |
broker/memory | Package memory provides a memory broker |
broker/mqtt | Package mqtt provides an mqtt broker |
broker/nats | Package nats provides a NATS broker |
broker/nsq | Package nsq provides an NSQ broker |
broker/proxy | Package proxy is a broker using the micro proxy |
broker/rabbitmq | Package rabbitmq provides a RabbitMQ broker |
broker/redis | Package redis provides a Redis broker |
broker/service | Package service provides the broker service client |
broker/snssqs | |
broker/sqs | |
broker/stan | Package stan provides a NATS Streaming broker |
broker/stomp | |
client/http | Package http provides a http client |
client/http/test | Package test is a generated protocol buffer package. |
client/selector/label | Package label is a priority label based selector. |
client/selector/shard | |
client/selector/static | Package static is a selector which always returns the name specified with a port-number appended. |
codec/bsonrpc | Package bsonrpc provides a bson-rpc codec |
codec/jsonrpc2 | Package jsonrpc2 provides a json-rpc 2.0 codec |
codec/msgpackrpc | Package msgpackrpc provides a msgpack-rpc codec |
config/source/configmap | Package configmap config is an interface for dynamic configuration. |
config/source/grpc | |
config/source/grpc/proto | Package grpc is a generated protocol buffer package. |
config/source/runtimevar | package runtimevar is the source for gocloud.dev/runtimevar |
config/source/url | Package url loads changesets from a url |
config/source/vault | |
micro/auth | Package auth provides auth management for micro |
micro/auth/basic | Package basic provides basic auth using htpasswd |
micro/auth/digest | Package digest provides digest auth using htdigest |
micro/auth/ldap | Package ldap provides ldap authentication |
micro/cors | |
micro/disable_rpc | Package disable_rpc disables the /rpc endpoint |
micro/gzip | Package gzip is a micro plugin for gzipping http response |
micro/header | |
micro/index | Package index is a micro plugin for stripping a path index |
micro/ip_whitelist | Package ip_whitelist is a micro plugin for whitelisting ip addresses |
micro/metadata | |
micro/metrics | Package metrics provides metrics for micro |
micro/metrics/prometheus | Package prometheus provides prometheus metrics via a http handler |
micro/router | Package router is a micro plugin for defining HTTP routes |
micro/router/examples | |
micro/stats_auth | stats_auth enables basic auth on the /stats endpoint |
micro/trace/awsxray | Package awsxray is a micro plugin for whitelisting service requests |
micro/trace/uuid | Package uuid is a micro plugin for adding a trace header |
micro/whitelist | Package whitelist is a micro plugin for whitelisting service requests |
registry/cache | Package cache provides a registry cache |
registry/consul | |
registry/etcd | Package etcd provides an etcd v3 service registry |
registry/etcdv3 | Package etcd provides an etcd v3 service registry |
registry/eureka | Package eureka provides a Eureka registry |
registry/eureka/mock | This file was generated by counterfeiter |
registry/gossip | Package gossip provides a gossip registry based on hashicorp/memberlist |
registry/gossip/proto | |
registry/kubernetes | Package kubernetes provides a kubernetes registry |
registry/kubernetes/client | |
registry/kubernetes/client/api | |
registry/kubernetes/client/mock | |
registry/kubernetes/client/watch | |
registry/mdns | Package mdns provides a multicast dns registry |
registry/memory | Package memory provides an in-memory registry |
registry/multi | |
registry/nats | Package nats provides a NATS registry using broadcast queries |
registry/proxy | Package proxy is a registry plugin for the micro proxy |
registry/service | Package service uses the registry service |
registry/zookeeper | Package zookeeper provides a zookeeper registry |
server/http | Package http implements a go-micro.Server |
service/kubernetes | Package kubernetes provides a micro service using k8s registry plugin |
transport/grpc | Package grpc provides a grpc transport |
transport/http | Package http returns a http2 transport using net/http |
transport/memory | Package memory is an in-memory transport |
transport/nats | Package nats provides a NATS transport |
transport/quic | Package quic provides a QUIC based transport |
transport/rabbitmq | Package rabbitmq provides a RabbitMQ transport |
transport/tcp | Package tcp provides a TCP transport |
transport/utp | Package utp implements a utp transport |
wrapper/breaker/gobreaker | |
wrapper/breaker/hystrix | |
wrapper/endpoint | Package endpoint provides a wrapper that executes other wrappers for specific methods |
wrapper/monitoring/prometheus | |
wrapper/ratelimiter/ratelimit | |
wrapper/ratelimiter/uber | |
wrapper/select/roundrobin | Package roundrobin implements a roundrobin call strategy |
wrapper/select/shard | Package shard implements the sharding call strategy |
wrapper/select/version | |
wrapper/service | Package wrapper injects a go-micro.Service into the context |
wrapper/trace/awsxray | Package awsxray is a wrapper for AWS X-Ray distributed tracing |
wrapper/trace/datadog | Package datadog provides wrappers for Datadog ddtrace |
wrapper/trace/opencensus | Package opencensus provides wrappers for OpenCensus tracing. |
wrapper/trace/opentracing | Package opentracing provides wrappers for OpenTracing |
wrapper/validator |
Package plugin imports 16 packages (graph). Updated 2019-12-13. Refresh now. Tools for package owners.