kit

module
v0.0.0-...-18f0be3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT

README

Go kit

fork自go-kit,自己做了一些魔改

服务注册与发现

1.eureka服务注册与发现(原来支持)
2.consul服务注册与发现(原来支持)
3.etcd服务注册与发现(原来支持)
4.etcd3服务注册与发现(原来支持)
5.zookeeper服务注册与发现(原来支持)
6.dns服务注册与发现(原来支持)
7.nacos服务注册与发现(新增支持)

负载均衡策略

1.随机(原来支持)
2.轮询(原来支持)

Directories

Path Synopsis
auth
jwt
Package circuitbreaker implements the circuit breaker pattern.
Package circuitbreaker implements the circuit breaker pattern.
cmd
Package endpoint defines an abstraction for RPCs.
Package endpoint defines an abstraction for RPCs.
examples
profilesvc/client
Package client provides a profilesvc client based on a predefined Consul service name and relevant tags.
Package client provides a profilesvc client based on a predefined Consul service name and relevant tags.
shipping/booking
Package booking provides the use-case of booking a cargo.
Package booking provides the use-case of booking a cargo.
shipping/cargo
Package cargo contains the heart of the domain model.
Package cargo contains the heart of the domain model.
shipping/handling
Package handling provides the use-case for registering incidents.
Package handling provides the use-case for registering incidents.
shipping/inmem
Package inmem provides in-memory implementations of all the domain repositories.
Package inmem provides in-memory implementations of all the domain repositories.
shipping/inspection
Package inspection provides means to inspect cargos.
Package inspection provides means to inspect cargos.
shipping/location
Package location provides the Location aggregate.
Package location provides the Location aggregate.
shipping/routing
Package routing provides the routing domain service.
Package routing provides the routing domain service.
shipping/tracking
Package tracking provides the use-case of tracking a cargo.
Package tracking provides the use-case of tracking a cargo.
shipping/voyage
Package voyage provides the Voyage aggregate.
Package voyage provides the Voyage aggregate.
log
Package log provides a structured logger.
Package log provides a structured logger.
level
Package level implements leveled logging on top of Go kit's log package.
Package level implements leveled logging on top of Go kit's log package.
logrus
Package logrus provides an adapter to the go-kit log.Logger interface.
Package logrus provides an adapter to the go-kit log.Logger interface.
term
Package term provides tools for logging to a terminal.
Package term provides tools for logging to a terminal.
zap
Package metrics provides a framework for application instrumentation.
Package metrics provides a framework for application instrumentation.
cloudwatch2
Package cloudwatch2 emits all data as a StatisticsSet (rather than a singular Value) to CloudWatch via the aws-sdk-go-v2 SDK.
Package cloudwatch2 emits all data as a StatisticsSet (rather than a singular Value) to CloudWatch via the aws-sdk-go-v2 SDK.
discard
Package discard provides a no-op metrics backend.
Package discard provides a no-op metrics backend.
dogstatsd
Package dogstatsd provides a DogStatsD backend for package metrics.
Package dogstatsd provides a DogStatsD backend for package metrics.
expvar
Package expvar provides expvar backends for metrics.
Package expvar provides expvar backends for metrics.
generic
Package generic implements generic versions of each of the metric types.
Package generic implements generic versions of each of the metric types.
graphite
Package graphite provides a Graphite backend for metrics.
Package graphite provides a Graphite backend for metrics.
influx
Package influx provides an InfluxDB implementation for metrics.
Package influx provides an InfluxDB implementation for metrics.
influxstatsd
Package influxstatsd provides support for InfluxData's StatsD Telegraf plugin.
Package influxstatsd provides support for InfluxData's StatsD Telegraf plugin.
internal/convert
Package convert provides a way to use Counters, Histograms, or Gauges as one of the other types
Package convert provides a way to use Counters, Histograms, or Gauges as one of the other types
internal/ratemap
Package ratemap implements a goroutine-safe map of string to float64.
Package ratemap implements a goroutine-safe map of string to float64.
multi
Package multi provides adapters that send observations to multiple metrics simultaneously.
Package multi provides adapters that send observations to multiple metrics simultaneously.
pcp
prometheus
Package prometheus provides Prometheus implementations for metrics.
Package prometheus provides Prometheus implementations for metrics.
provider
Package provider provides a factory-like abstraction for metrics backends.
Package provider provides a factory-like abstraction for metrics backends.
statsd
Package statsd provides a StatsD backend for package metrics.
Package statsd provides a StatsD backend for package metrics.
teststat
Package teststat provides helpers for testing metrics backends.
Package teststat provides helpers for testing metrics backends.
sd
Package sd provides utilities related to service discovery.
Package sd provides utilities related to service discovery.
consul
Package consul provides Instancer and Registrar implementations for Consul.
Package consul provides Instancer and Registrar implementations for Consul.
dnssrv
Package dnssrv provides an Instancer implementation for DNS SRV records.
Package dnssrv provides an Instancer implementation for DNS SRV records.
etcd
Package etcd provides an Instancer and Registrar implementation for etcd.
Package etcd provides an Instancer and Registrar implementation for etcd.
etcdv3
Package etcdv3 provides an Instancer and Registrar implementation for etcd v3.
Package etcdv3 provides an Instancer and Registrar implementation for etcd v3.
eureka
Package eureka provides Instancer and Registrar implementations for Netflix OSS's Eureka
Package eureka provides Instancer and Registrar implementations for Netflix OSS's Eureka
lb
Package lb implements the client-side load balancer pattern.
Package lb implements the client-side load balancer pattern.
zk
Package zk provides Instancer and Registrar implementations for ZooKeeper.
Package zk provides Instancer and Registrar implementations for ZooKeeper.
Package tracing provides helpers and bindings for distributed tracing.
Package tracing provides helpers and bindings for distributed tracing.
opencensus
Package opencensus provides Go kit integration to the OpenCensus project.
Package opencensus provides Go kit integration to the OpenCensus project.
opentracing
Package opentracing provides Go kit integration to the OpenTracing project.
Package opentracing provides Go kit integration to the OpenTracing project.
zipkin
Package zipkin provides Go kit integration to the OpenZipkin project through the use of zipkin-go, the official OpenZipkin tracer implementation for Go.
Package zipkin provides Go kit integration to the OpenZipkin project through the use of zipkin-go, the official OpenZipkin tracer implementation for Go.
Package transport contains helpers applicable to all supported transports.
Package transport contains helpers applicable to all supported transports.
amqp
Package amqp implements an AMQP transport.
Package amqp implements an AMQP transport.
awslambda
Package awslambda provides an AWS Lambda transport layer.
Package awslambda provides an AWS Lambda transport layer.
grpc
Package grpc provides a gRPC binding for endpoints.
Package grpc provides a gRPC binding for endpoints.
http
Package http provides a general purpose HTTP binding for endpoints.
Package http provides a general purpose HTTP binding for endpoints.
http/jsonrpc
Package jsonrpc provides a JSON RPC (v2.0) binding for endpoints.
Package jsonrpc provides a JSON RPC (v2.0) binding for endpoints.
httprp
Package httprp provides an HTTP reverse-proxy transport.
Package httprp provides an HTTP reverse-proxy transport.
nats
Package nats provides a NATS transport.
Package nats provides a NATS transport.
util
conn
Package conn provides utilities related to connections.
Package conn provides utilities related to connections.

Jump to

Keyboard shortcuts

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