Categorygithub.com/devexps/go-micro/v2
modulepackage
2.0.7
Repository: https://github.com/devexps/go-micro.git
Documentation: pkg.go.dev

# README

About GoMicro

Go-Micro is a set of lightweight Go microservice framework, including a large number of microservice related frameworks and tools, such as:

  • The communication protocol is based on the HTTP/gRPC through the definition of Protobuf.
  • Abstract transport layer support: HTTP / gRPC.
  • Powerful middleware design, support: Tracing (OpenTelemetry), Metrics (Prometheus is default), Recovery and more.
  • Registry interface able to be connected with various other centralized registries through plug-ins.
  • The standard log interfaces ease the integration of the third-party log libs.
  • Automatically support the selection of the content encoding with Accept and Content-Type.
  • Multiple data sources are supported for configurations and dynamic configurations (use atomic operations).
  • In the protocol of HTTP/gRPC, use the uniform metadata transfer method.
  • You can define errors in protos and generate enums with protoc-gen-errors.
  • You can define elasticsearch fields, queries and auto generate code with protoc-gen-es
  • You can define verification rules in Protobuf supported by the HTTP/gRPC service.

GoMicro is accessible, powerful, and provides tools required for large, robust applications.

License

The GoMicro framework is open-sourced software licensed under the MIT license.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint:gomnd.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AfterStart run funcs after app starts.
AfterStop run funcs after app stops.
BeforeStart run funcs before app starts.
BeforeStop run funcs before app stops.
Context with service context.
Endpoint with service endpoint.
FromContext returns the Transport value stored in ctx, if any.
ID with service id.
Logger with service logger.
Metadata with service metadata.
Name with service name.
New create an application lifecycle manager.
NewContext returns a new Context that carries value.
Registrar with service registry.
RegistrarTimeout with registrar timeout.
Server with transport servers.
Signal with exit signals.
StopTimeout with app stop timeout.
Version with service version.

# Constants

Release is the current micro version.

# Structs

App is an application components lifecycle manager.

# Interfaces

AppInfo is application context value.

# Type aliases

Option is an application option.