Categorygithub.com/devexps/go-bootstrap
modulepackage
1.0.3
Repository: https://github.com/devexps/go-bootstrap.git
Documentation: pkg.go.dev

# README

go-bootstrap

A useful helper for go-micro project

# Packages

No description provided by the author

# Functions

BeDaemon converts the current process into a daemon process.
No description provided by the author
CreateGrpcClient creates gRPC client.
CreateGrpcServer creates gRPC server.
CreateHTTPServer creates a REST server.
LoadBootstrapConfig loader boot configuration.
LoadRemoteConfigSourceConfigs loads the local configuration of the remote configuration source.
No description provided by the author
NewConfigProvider creates a configuration.
NewConsulConfigSource creates a remote configuration source - Consul.
NewConsulRegistry creates a registration discovery client - Consul.
NewDiscovery creates a discovery client.
NewEtcdConfigSource creates a remote configuration source - Etcd.
NewEtcdRegistry creates a registration discovery client - Etcd.
NewFileConfigSource creates a local file configuration source.
NewFluentLogger creates a new logger - Fluent.
NewJaegerExporter creates a jaeger exporter.
NewKubernetesConfigSource creates a remote configuration source - Kubernetes.
NewKubernetesRegistry creates a registration discovery client - Kubernetes.
NewLogger creates a new logger.
NewLoggerProvider creates a new logger provider.
NewLogrusLogger creates a new logger - Logrus.
NewMetrics create and register prometheus' metrics.
NewOtlpGrpcExporter creates an OTLP/gRPC exporter, default port: 4317.
NewOtlpHttpExporter creates an OTLP/HTTP exporter, default port: 4318.
NewRedisClient creates redis client.
NewRegistry creates a registration client.
NewRemoteConfigSource 创建一个远程配置源.
No description provided by the author
NewStdLogger creates a new logger - GoMicro built-in, console output.
NewTracerExporter creates an exporter, supporting: jaeger, zipkin, otlp-http, otlp-grpc.
NewTracerProvider creates a link tracer.
NewZapLogger creates a new logger - Zap.
NewZipkinExporter creates a zipkin exporter, default peer address: http://localhost:9411/api/v2/spans.
NewZooKeeperRegistry creates a registration discovery client - ZooKeeper.
RegisterConfig registration configuration.

# Constants

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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author