Shelley
c09695d4e2
feat: add micro build and micro deploy commands
...
Run Tests / Unit Tests (push) Waiting to run
Run Tests / Etcd Integration Tests (push) Waiting to run
micro build:
- Generates Dockerfiles for services (if not present)
- Builds container images for all services in micro.mu
- Supports --tag, --registry, --push flags
- --compose flag generates docker-compose.yml
micro deploy:
- Default: deploys with docker-compose
- --ssh user@host: deploys via SSH (rsync + build on remote)
- --build: rebuild images before deploying
Complete workflow:
micro run # Develop locally
micro build # Build images
micro deploy # Deploy
Or for simple SSH deploys:
micro deploy --ssh user@host
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 12:39:43 +00:00
Asim Aslam
40c3ec0e32
feat: add testing package for in-process service testing ( #2833 )
...
Provides a test harness for running micro services in isolation:
h := testing.NewHarness(t)
defer h.Stop()
h.Name("users").Register(new(UsersHandler))
h.Start()
var rsp Response
h.Call("UsersHandler.Create", &req, &rsp)
Features:
- Isolated registry, transport, and broker per harness
- Simple API: Name(), Register(), Start(), Stop()
- Call helpers: Call(), CallContext()
- Assertions: AssertServiceRunning(), AssertCallSucceeds(), AssertCallFails()
- Access to underlying Client(), Server(), Registry()
Note: Due to go-micro's global defaults, each harness tests one service.
For multi-service testing, use integration tests or mocks.
Also fixes README.md example showing conflicting port 8080.
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 12:35:05 +00:00
Asim Aslam
139e70e880
feat(run): integrate HTTP gateway with micro run ( #2832 )
...
micro run now starts an HTTP gateway alongside your services:
- Web dashboard at http://localhost:8080
- API proxy at /api/{service}/{method}
- Health checks at /health
- Service listing at /services
The experience is now:
$ micro new helloworld
$ cd helloworld
$ micro run
Open http://localhost:8080 to see and call your services.
New flags:
--address :3000 # Custom gateway port
--no-gateway # Disable gateway (services only)
Updated documentation to make this the central experience.
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 12:22:45 +00:00
Asim Aslam
94e83e57f8
feat: add health check package for K8s-style probes ( #2831 )
...
Adds a new health package providing:
- /health endpoint for overall health status
- /health/live for Kubernetes liveness probes
- /health/ready for Kubernetes readiness probes
- Built-in checks: PingCheck, TCPCheck, HTTPCheck, DNSCheck
- Critical vs non-critical checks
- Concurrent check execution
- Configurable timeouts
- Service info metadata
Integrates with micro run's health check waiting when services
specify a port in their micro.mu configuration.
Example usage:
health.Register("database", health.PingCheck(db.Ping))
health.Register("redis", health.TCPCheck("localhost:6379", time.Second))
health.RegisterHandlers(mux)
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 12:10:38 +00:00
Asim Aslam
39484560ea
docs: add micro run documentation with hot reload and config file guide ( #2830 )
...
- Update main README with micro run quick start
- Expand cmd/micro/README.md with configuration options
- Add detailed guide at internal/website/docs/guides/micro-run.md
Documents:
- Hot reload with file watching
- micro.mu DSL configuration
- micro.json alternative
- Dependency ordering
- Environment management
- Graceful shutdown
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 12:04:15 +00:00
Asim Aslam
7690c41d5f
feat(run): add hot reload, config files, and dependency ordering ( #2829 )
...
- Add micro.mu DSL and micro.json config file support
- Implement hot reload with file watching (--no-watch to disable)
- Start services in dependency order (topological sort)
- Environment management (--env flag, MICRO_ENV var)
- Health check waiting before starting dependents
- Graceful shutdown in reverse dependency order
Config file example (micro.mu):
service users
path ./users
port 8081
service posts
path ./posts
port 8082
depends users
env development
STORE_ADDRESS file://./data
Closes #2828
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 12:01:47 +00:00
Asim Aslam
cae6fbbe76
Framework hardening: security, reliability, and developer experience improvements ( #2826 )
...
* fix: remove deprecated rand.Seed calls
Go 1.20+ automatically seeds the global random number generator.
These calls are no-ops and generate warnings with newer Go versions.
Removed from:
- selector/strategy.go
- registry/cache/cache.go
- broker/memory.go
- broker/http.go
- cmd/cmd.go
- transport/memory.go
Co-authored-by: Shelley <shelley@exe.dev >
* fix: handle previously ignored errors
- MySQL store: properly handle prepared statement errors in initDB()
- Consul registry: handle client creation errors in Client() method
These silent failures could cause hard-to-debug issues in production.
Co-authored-by: Shelley <shelley@exe.dev >
* feat(genai): improve provider interface with context and streaming
Breaking changes:
- Generate() and Stream() now require context.Context as first parameter
- Stream.Close() added for proper resource cleanup
Improvements:
- Proper context support for cancellation and timeouts
- Real SSE streaming for OpenAI and Gemini text generation
- Better error handling with wrapped errors and API error responses
- Thread-safe provider registry with sync.RWMutex
- New options: WithMaxTokens, WithTemperature, WithTimeout
- Stream has proper Close() method for cleanup
- Results can include Error field for per-chunk errors
Provider updates:
- OpenAI: true streaming with SSE parsing, proper HTTP client with timeout
- Gemini: true streaming with streamGenerateContent endpoint
- Default model updated to gpt-4o-mini (OpenAI) and gemini-2.0-flash (Gemini)
Co-authored-by: Shelley <shelley@exe.dev >
* feat(tls): make TLS secure by default, configurable via environment
BREAKING: TLS now verifies certificates by default. Set MICRO_TLS_INSECURE=true
to restore previous behavior (NOT recommended for production).
Changes:
- Add util/tls.Config(), SecureConfig(), InsecureConfig(), ConfigFromEnv() helpers
- Update all components to use ConfigFromEnv() instead of hardcoded InsecureSkipVerify
- Set MinVersion to TLS 1.2 for all TLS configs
Affected components:
- broker/http
- broker/rabbitmq
- registry/etcd
- registry/consul
- transport/grpc
This improves security posture while allowing opt-out for development environments.
Co-authored-by: Shelley <shelley@exe.dev >
* feat(tls): add TLS helpers with opt-in secure mode
NOT a breaking change - keeps InsecureSkipVerify=true as default for
local development compatibility.
New util/tls helpers:
- Config() - returns config based on MICRO_TLS_SECURE env var
- SecureConfig() - certificate verification enabled
- InsecureConfig() - certificate verification disabled (dev only)
For production security, use one of:
- Set MICRO_TLS_SECURE=true with proper CA-signed certs
- Use a service mesh (Istio, Linkerd) for automatic mTLS
- Configure TLSConfig directly with your certificates
Also: Changed CLI alias from 'g' to 'gen' for clarity
- micro generate handler -> micro gen handler
Co-authored-by: Shelley <shelley@exe.dev >
* refactor(cli): rename generate directory to gen for consistency
Directory name now matches the command alias:
cmd/micro/cli/gen/ -> micro gen handler
Co-authored-by: Shelley <shelley@exe.dev >
---------
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 10:39:25 +00:00
Asim Aslam
a32cdbc117
feat(web): add SSE broadcaster for real-time event streaming ( #2825 )
...
This adds Server-Sent Events (SSE) support to the web package, enabling
real-time updates in web applications built with go-micro.
Features:
- SSEBroadcaster manages connected clients and broadcasts events
- Integrates with events.Stream for subscribing to topics
- Supports JSON events and raw HTML (for htmx/datastar)
- Keep-alive mechanism for long-lived connections
- Thread-safe client management
Usage:
broadcaster := web.NewSSEBroadcaster(
web.WithStream(stream),
web.WithTopics("posts", "comments"),
)
broadcaster.Start()
router.GET("/events", broadcaster.Handler())
This enables real-time features requested in #2788 , including:
- Live updates without page refresh
- htmx/datastar integration
- Foundation for MCP (Model Context Protocol) support
Closes #2788
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 06:29:34 +00:00
Copilot
baeb282cf1
Enhance cache rate limiting to prevent registry overload during rolling deployments ( #2824 )
...
* Initial plan
* Enhance cache rate limiting to protect against rolling deployment scenarios
Per @asim's feedback, rate limiting now applies to ALL cache refresh attempts
(not just error cases) to prevent registry overload during rolling deployments.
Changes:
- Rate limit ALL refresh attempts using lastRefreshAttempt tracking
- Always return stale cache if available (even if expired) when rate limiting
- Only return ErrNotFound when no cache exists during rate limit period
- Rate limiting happens inside singleflight to avoid race conditions
- Update test to reflect new behavior (no retry when stale cache + rate limit)
- Enhanced documentation with rolling deployment scenario examples
This addresses the scenario where all upstream services expire their cache
simultaneously during a downstream rolling deployment, which would previously
cause a stampede to the registry under high QPS.
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Remove unused failedAttempts and consecutiveFailures fields
Per @asim's feedback, these fields are no longer needed since the new
rate limiting strategy uses lastRefreshAttempt to track ALL refresh
attempts, not just failed ones.
Removed:
- failedAttempts map[string]time.Time
- consecutiveFailures int
- All code that sets these fields
The rate limiting logic now only uses lastRefreshAttempt, making these
fields redundant. All tests continue to pass.
Co-authored-by: asim <17530+asim@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: asim <17530+asim@users.noreply.github.com >
2026-01-14 10:57:14 +00:00
Copilot
2869cc16d1
Add adaptive throttling to registry cache to prevent penetration when no stale cache exists ( #2823 )
...
* Initial plan
* Add adaptive throttling to prevent cache penetration without stale cache
Implement rate limiting mechanism to protect etcd when:
- Cache is empty (no stale data available)
- Registry is failing/overloaded
- Multiple sequential requests arrive
Changes:
- Add MinimumRetryInterval option (default 5s)
- Track last failed attempt time per service
- Throttle requests within retry interval when no cache exists
- Clear throttling on successful lookup
- Add comprehensive tests validating throttling behavior
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Fix WaitGroup race condition in events stream tests
The WaitGroup.Add() calls were happening after goroutines started,
causing a race where Done() could be called before Add(), resulting
in "negative WaitGroup counter" panics.
Fixes:
- Move wg.Add(1) before goroutine in TestConsumeTopic
- Move wg.Add(2) before first goroutine in TestConsumeGroup
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Update registry cache documentation with adaptive throttling feature
Document the new adaptive throttling feature that prevents cache
penetration when registry is failing and no stale cache exists.
Includes:
- Feature overview
- Usage examples with configuration options
- Explanation of throttling behavior
- Example scenario demonstrating protection
Co-authored-by: asim <17530+asim@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: asim <17530+asim@users.noreply.github.com >
2026-01-09 12:27:55 +00:00
Copilot
dbb66ec938
Fix etcd auth overload and cache stampede with KeepAlive channels ( #2822 )
...
* Initial plan
* Replace KeepAliveOnce with KeepAlive to reduce etcd auth requests
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Add tests to verify cache penetration protection via singleflight
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Add etcd integration tests to CI workflow
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Fix race conditions and improve code quality based on review feedback
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Add workflow permissions to fix security scan finding
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Add comprehensive documentation for performance improvements
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Fix memory store limit/offset bug causing events test failure
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Fix memory store to filter before limiting in prefix/suffix reads
The previous fix had a logic error where limit/offset were applied before
prefix/suffix filtering. This could cause incorrect results when the first
N items in the unfiltered list don't match the search criteria.
Now filters first to get all matching keys, then applies limit/offset to
the filtered results. This ensures ReadLimit(1) always returns 1 matching
record if available, regardless of map iteration order.
Co-authored-by: asim <17530+asim@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: asim <17530+asim@users.noreply.github.com >
2026-01-09 11:12:06 +00:00
Copilot
80345fe63d
docs: clarify gRPC server option ordering and service name usage ( #2820 )
...
* Initial plan
* docs: clarify gRPC server option ordering and service name usage
- Fix all examples to show Server option before Name option
- Add note explaining why option ordering matters
- Add new section on "Option Ordering Issue" in Common Errors
- Add new section on "Service Name vs Package Name" in Common Errors
- Update transport.md to show proper ordering with comment
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* docs: refine comments based on code review feedback
- Clarify that Server ordering before Name is mandatory
- Remove confusing comment about Client ordering being for consistency
Co-authored-by: asim <17530+asim@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: asim <17530+asim@users.noreply.github.com >
2025-11-25 09:26:59 +00:00
Copilot
00a119496e
Add documentation for native gRPC compatibility vs transport ( #2819 )
...
* Initial plan
* Add documentation for native gRPC compatibility with grpc client/server packages
Co-authored-by: asim <17530+asim@users.noreply.github.com >
* Fix go_package path in proto example to use relative path
Co-authored-by: asim <17530+asim@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: asim <17530+asim@users.noreply.github.com >
2025-11-25 07:28:48 +00:00
Asim Aslam
3e25be984d
x
2025-11-13 20:48:01 +00:00
Asim Aslam
4e8934c230
Get Badge
2025-11-13 20:46:20 +00:00
Asim Aslam
a368be82cd
add showcase
2025-11-13 20:42:45 +00:00
Asim Aslam
43386d4ec1
x
2025-11-13 20:37:54 +00:00
Asim Aslam
a84f92c907
mobile hamburger menu
2025-11-13 20:34:09 +00:00
Asim Aslam
751de9e7c0
fix mobile rendering for website
2025-11-13 20:31:29 +00:00
Asim Aslam
be1cf9c9d8
x
2025-11-13 20:06:28 +00:00
Asim Aslam
d7699845bb
Add docs link
2025-11-13 20:01:32 +00:00
Asim Aslam
520a0fa140
Update features
2025-11-13 19:59:28 +00:00
Asim Aslam
8a1591af0c
x
2025-11-13 19:58:38 +00:00
Asim Aslam
1f1d9875a2
update landing
2025-11-13 19:56:01 +00:00
Asim Aslam
cd4c881db5
x
2025-11-13 19:52:06 +00:00
Asim Aslam
de03bbbf81
x
2025-11-13 19:49:34 +00:00
Asim Aslam
ee4f656fa5
fix typo in search documentation
2025-11-13 19:26:19 +00:00
Asim Aslam
2cce3e5e1a
fix links
2025-11-13 19:21:27 +00:00
Asim Aslam
0526a42efa
changes to theme
2025-11-13 19:14:01 +00:00
Asim Aslam
dc1e1eb45c
fix config file
2025-11-13 19:04:30 +00:00
Asim Aslam
06b31f545a
update the docs to easily navigate
2025-11-13 18:59:34 +00:00
Asim Aslam
8cda829320
major docs overhaul
2025-11-13 18:34:40 +00:00
Asim Aslam
e755e4a823
updates for syntax highlighting
2025-11-13 18:17:45 +00:00
Asim Aslam
eef06fcf01
server docs
2025-11-13 18:12:15 +00:00
Asim Aslam
9e36df224b
new copilot generated documentation
2025-11-13 18:11:29 +00:00
Asim Aslam
2da1cc0edd
Delete .github/PULL_REQUEST_TEMPLATE.md
2025-11-13 17:19:17 +00:00
Asim Aslam
0ef0143537
Delete .github/ISSUE_TEMPLATE/question.md
2025-11-13 17:19:04 +00:00
Asim Aslam
30dc01523a
Delete .github/ISSUE_TEMPLATE/feature-request---enhancement.md
2025-11-13 17:18:54 +00:00
Asim Aslam
4a0648536f
Delete .github/ISSUE_TEMPLATE/bug_report.md
2025-11-13 17:18:43 +00:00
nswdewy
01ed999b2a
Change template paths from 'html' to 'web' ( #2816 )
2025-11-06 10:17:30 +00:00
Asim Aslam
acfb4e2639
Update README.md
2025-10-29 10:46:41 +00:00
Asim Aslam
cd735aba56
Update sponsorship link in README.md
2025-10-29 10:46:14 +00:00
Asim Aslam
8c995ea8ac
Update sponsorship link in README
2025-10-29 10:45:28 +00:00
Asim Aslam
e9ce3487b6
Update README.md
2025-10-29 10:44:16 +00:00
Asim Aslam
79f5a7a7f6
Fix README formatting and sponsor button placement
2025-10-29 10:43:48 +00:00
Asim Aslam
48c310f70b
Update README.md
2025-10-29 10:43:32 +00:00
Asim Aslam
5ffb711dfe
Add funding configuration for GitHub
2025-10-29 10:42:01 +00:00
Asim Aslam
de5057e35d
Update README to remove install script section
...
Removed mention of install script from README.
2025-10-22 21:19:31 +01:00
Asim Aslam
91d91eef1f
Fix for https://github.com/micro/go-micro/issues/2687
2025-10-22 06:38:16 +00:00
asim
48479228b1
Fixes https://github.com/micro/go-micro/issues/2738
2025-10-22 07:18:37 +01:00
asim
5a07370970
Fix https://github.com/micro/go-micro/issues/2769
2025-10-22 07:10:41 +01:00
Asim Aslam
db9b1e8d79
Update installation command to specific version
2025-10-20 11:41:26 +01:00
Asim Aslam
3e05108882
Update installation command to specific version
2025-10-20 11:41:04 +01:00
Asim Aslam
85cd80a467
Delete cmd/README.md
2025-10-14 19:34:27 +01:00
Eng Zer Jun
bc40df0c9e
Update github.com/imdario/mergo to dario.cat/mergo ( #2810 )
...
Mergo v1 is released with a new module path URL. No breaking changes,
only the module path update and bug fixes.
Reference: https://github.com/darccio/mergo/releases/tag/v1.0.0
Reference: https://github.com/darccio/mergo/releases/tag/v1.0.1
Reference: https://github.com/darccio/mergo/releases/tag/v1.0.2
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2025-10-14 11:18:28 +01:00
asim
66014eac68
.
2025-10-14 11:17:03 +01:00
asim
26b9d56165
.
2025-10-14 11:15:52 +01:00
asim
6574180b0d
.
2025-10-14 11:14:36 +01:00
asim
e6c9f4fa39
.
2025-10-14 11:13:53 +01:00
asim
1dde737b64
move micro cli and protoc-gen-micro to cmd/
2025-10-14 11:13:35 +01:00
Asim Aslam
26adf49e55
Remove Command Line section from README
...
Removed command line section from README.
2025-10-14 10:33:20 +01:00
Eng Zer Jun
7a9c445321
Update github.com/streadway/amqp to github.com/rabbitmq/amqp091-go ( #2811 )
...
The `github.com/streadway/amqp` module is no longer actively maintained.
The new module is now maintained by the RabbitMQ core team under a
different package name.
Reference: https://github.com/rabbitmq/amqp091-go
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2025-10-13 21:34:07 +01:00
Asim Aslam
44cc31345d
use buf pool
2025-10-07 16:38:09 +00:00
Asim Aslam
aa2ed9aa91
Patch for potential deadlock
2025-10-07 16:20:45 +00:00
Asim Aslam
3d6b6521ab
fix atomic int alignment bug
2025-10-07 15:57:43 +00:00
Kenley Wang
7b0fa8b6ae
fix: new pool cannot customize closetimeout ( #2808 )
2025-10-02 14:28:06 +01:00
asim
059d317969
.
2025-09-29 10:28:59 +01:00
Asim Aslam
e0af3b61a5
Change 'Toolkit' to 'Command Line' in README
...
Updated section headers in README for clarity.
2025-09-28 09:55:43 +01:00
Asim Aslam
5bbc24abe1
Clarify micro CLI usage and genai package details
...
Updated the README to clarify the usage of the micro CLI and the genai package.
2025-09-28 08:51:30 +01:00
Asim Aslam
dfcaae7bf8
Update link text from 'Docs' to 'Go Doc'
2025-09-27 09:45:52 +01:00
Ak-Army
9070b3befd
[feature] ability to use wildcard in topic name (factory-events.*.*) ( #2804 )
2025-09-09 12:51:39 +01:00
ExtinctPatronageDeodorize
e5cd820c71
fix data race in memory.update ( #2802 )
...
Co-authored-by: ExtinctPatronageDeodorize <ExtinctPatronageDeodorize@users.noreply.github.com >
2025-08-29 14:14:11 +01:00
Tsln
479bd58c3f
fix consul context key mismatch ( #2801 )
2025-08-29 07:39:20 +01:00
Byron Silvers
95540b7859
fix consul watcher address handling ( #2800 )
2025-08-19 09:27:34 +01:00
Asim Aslam
be2559c555
Update index.html
2025-08-05 14:15:06 +01:00
Asim Aslam
6e53f541d3
Update README.md
2025-08-05 14:14:28 +01:00
Asim Aslam
a6ede13f73
Update index.html
2025-08-04 11:56:59 +01:00
Asim Aslam
31d2d39f76
Update README.md
2025-07-24 21:24:04 +01:00
Roman Perekhod
ad73add529
fix the concurrent map writes error ( #2794 )
2025-07-16 07:27:45 +01:00
asim
f99a205b2b
add string function
2025-07-15 20:43:58 +01:00
Asim Aslam
3cf5540b0f
Update README.md
2025-07-08 19:24:19 +01:00
Asim Aslam
2a140858a8
Update README.md
2025-07-08 19:23:49 +01:00
Asim Aslam
2d19a304fc
Update README.md
2025-07-08 19:23:15 +01:00
asim
7b48449a85
fix options
2025-07-07 10:23:23 +01:00
asim
680987aeeb
.
2025-07-02 09:56:34 +01:00
Asim Aslam
ee9f3afe37
GenAI interface ( #2790 )
...
* genai interface
* x
* x
* text to speech
* Re-add events package (#2761 )
* Re-add events package
* run redis as a dep
* remove redis events
* fix: data race on event subscriber
* fix: data race in tests
* fix: store errors
* fix: lint issues
* feat: default stream
* Update file.go
---------
Co-authored-by: Brian Ketelsen <bketelsen@gmail.com >
* .
* copilot couldn't make it compile so I did
* copilot couldn't make it compile so I did
* x
---------
Co-authored-by: Brian Ketelsen <bketelsen@gmail.com >
2025-06-20 10:24:31 +01:00
Asim Aslam
7e1bba2baf
Re-add events package ( #2761 )
...
* Re-add events package
* run redis as a dep
* remove redis events
* fix: data race on event subscriber
* fix: data race in tests
* fix: store errors
* fix: lint issues
* feat: default stream
* Update file.go
---------
Co-authored-by: Brian Ketelsen <bketelsen@gmail.com >
2025-06-18 17:12:02 +01:00
blacksheepaul
dd0944bf68
Update getting-started.md ( #2787 )
2025-06-12 09:56:34 +01:00
Ak-Army
88f38eaef6
Subscribe error handling ( #2785 )
...
* [fix] etcd config source prefix issue (#2389 )
* http transport data race issue (#2436 )
* [fix] #2431 http transport data race issue
* [feature] Ability to close connection while receiving.
Ability to send messages while receiving.
Icreased r channel limit to 100 to more fluently communication.
Do not dropp sent request if r channel is full.
* [feature] always subscribes to all topics and if there is an error in one of them, the unsuccessful topics will be subscribed to again
---------
Co-authored-by: Johnson C <chengqiaosheng@gmail.com >
2025-06-04 08:55:17 +01:00
Asim Aslam
0e45edf439
Set service name as table name ( #2780 )
...
* add docs layout
* update all to use _layouts
* update the styling
* always use service name as table name
2025-05-21 22:43:29 +01:00
Asim Aslam
788dcd05b2
Docs ( #2779 )
...
* add docs layout
* update all to use _layouts
* update the styling
2025-05-21 13:48:03 +01:00
Asim Aslam
456cd7e092
Add links to readme contents
2025-05-21 12:06:25 +00:00
Asim Aslam
3fd52c66e7
Generated docs for the following files:
2025-05-21 12:03:24 +00:00
Asim Aslam
3c3ba55c45
Create README.md ( #2778 )
2025-05-21 11:22:11 +01:00
Asim Aslam
1a8074467a
Update and rename docs.yml to website.yml ( #2777 )
2025-05-21 11:18:54 +01:00
Asim Aslam
b9665e32c5
Move whole website ( #2776 )
...
* adding docs
* minor getting started typo
* move the whole website
2025-05-21 11:17:04 +01:00
Asim Aslam
11b7eb0727
Docs ( #2775 )
...
* minor getting started typo
2025-05-21 10:59:04 +01:00
Asim Aslam
5a409f2607
Create docs.yml
2025-05-21 10:49:59 +01:00
Asim Aslam
8e771c57e1
adding docs ( #2774 )
2025-05-21 10:47:47 +01:00
Brian Ketelsen
ddc34801ee
Plugins and profiles ( #2764 )
...
* feat: more plugins
* chore(ci): split out benchmarks
Attempt to resolve too many open files in ci
* chore(ci): split out benchmarks
* fix(ci): Attempt to resolve too many open files in ci
* fix: set DefaultX for cli flag and service option
* fix: restore http broker
* fix: default http broker
* feat: full nats profile
* chore: still ugly, not ready
* fix: better initialization for profiles
* fix(tests): comment out flaky listen tests
* fix: disable benchmarks on gha
* chore: cleanup, comments
* chore: add nats config source
2025-05-20 13:24:06 -04:00
Brian Ketelsen
e12504ce3a
feat: re-add profiles ( #2772 )
...
* feat: re-add profiles
* fix: make profile separate package
* fix: make profile separate package
* fix: profile flag
* fix: defaults
2025-05-19 13:59:28 -04:00
asim
a03ab5f601
switch location of store dir to home dir
2025-05-19 09:28:13 +01:00
Asim Aslam
44ff301d2d
syntactically easy way to register commands ( #2770 )
2025-05-18 09:45:49 +01:00
Asim Aslam
37bb1a8ab6
Revert "WIP: move file store (do not merge) ( #2766 )" ( #2768 )
...
This reverts commit 97275d3db9 .
2025-05-16 19:06:45 +01:00
BombartSimon
1fe2638298
Implement MDNS Registry ( #2767 )
...
- Removed existing mDNS test file and replaced it with a new implementation.
- Added a new `mdns_registry.go` file that contains the MDNS registry logic.
- Updated the default registry to use the new MDNS registry.
- Refactored tests to accommodate the new MDNS registry implementation.
- Implemented service registration, deregistration, and service discovery using mDNS.
- Added encoding and decoding functions for mDNS TXT records.
- Implemented a watcher for monitoring service changes in the MDNS registry.
2025-05-16 19:03:36 +01:00
Asim Aslam
97275d3db9
WIP: move file store (do not merge) ( #2766 )
...
* move file store
* fix build
2025-05-16 15:08:13 +01:00
BombartSimon
e29159e836
Rename 'Users' section to 'Adopters' in README ( #2765 )
2025-05-15 22:20:10 +01:00
Asim Aslam
caba761c7b
fix extraction field naming with standard Go types ( #2763 )
2025-05-15 18:59:10 +01:00
Brian Ketelsen
cd2b40ca4a
Add a selection of plugins to the core repo ( #2755 )
...
* WIP
* fix: default memory registry, add registrations for mdns, nats
* fix: same for broker
* fix: add more
* fix: http port
* rename redis
* chore: linting
2025-05-15 18:47:35 +01:00
Asim Aslam
7c04b7cfd6
Update README.md ( #2762 )
2025-05-15 16:13:27 +01:00
Asim Aslam
b4a87d05f7
Update README.md ( #2759 )
2025-05-15 09:37:12 +01:00
asim
0e47cbf1a2
fix conflicting port range test
2025-05-14 22:11:23 +01:00
asim
12dfa797dc
drop the separate go mods
2025-05-14 22:03:38 +01:00
Asim Aslam
230505bf5a
Add grpc plugin ( #2758 )
...
* Add grpc plugin
* remove stale readmes
2025-05-14 21:04:42 +01:00
Asim Aslam
01b8394c81
Update README.md
2025-05-07 19:39:11 +01:00
Asim Aslam
f9d08a14f3
Update README.md ( #2756 )
2025-05-07 19:35:20 +01:00
Asim Aslam
a997f738dd
Update README.md
2025-05-07 19:34:21 +01:00
Asim Aslam
46db7df218
Update README.md
2025-05-07 17:07:20 +01:00
Brian Ketelsen
17c04258a4
fix: go version breaking unit tests ( #2754 )
2025-05-05 21:12:34 -04:00
asim
8eb280126a
add go mod
2025-05-05 22:02:32 +01:00
asim
f51cd8d883
default to file store
2025-05-05 22:02:11 +01:00
asim
ef4dc8b5b0
add json.NewValues to config
2025-05-05 14:39:54 +01:00
asim
23b14123ea
errors for go 1.24wq
2025-05-04 21:48:02 +01:00
asim
2388f662cf
break config.Get and return error with value
2025-05-04 21:31:17 +01:00
asim
60474ed38f
add store encode/decode for record
2025-05-04 20:13:58 +01:00
asim
484eb3d15e
public functions for store
2025-05-04 20:00:44 +01:00
asim
c51095a074
store.NewRecord
2025-05-04 19:55:10 +01:00
Asim Aslam
03782bc9b3
move service to service dir to make life not suck ( #2753 )
2025-05-04 19:44:56 +01:00
Asim Aslam
1040b7c58e
Update README.md
2025-05-01 10:27:59 +01:00
Asim Aslam
bd0e9ca7cb
Update README.md
2025-05-01 10:27:37 +01:00
Asim Aslam
f5399d56c3
Update README.md
2025-05-01 10:25:44 +01:00
Asim Aslam
0f4c238804
protoc-gen-micro has moved to micro/micro/cmd/protoc-gen-micro ( #2751 )
2025-04-30 16:50:27 +01:00
Asim Aslam
66c169076c
Update README.md
2025-04-25 09:43:41 +01:00
Asim Aslam
280eb5b46d
Update README.md
2025-04-25 09:42:43 +01:00
Asim Aslam
4ead4ff953
Update README.md ( #2750 )
2025-04-25 09:41:35 +01:00
Asim Aslam
200a3cb0ce
Update README.md ( #2749 )
2025-04-23 16:04:24 +01:00
Asim Aslam
049dea6804
Update README.md
2025-04-23 15:56:47 +01:00
asim
3fa2a38d76
syntatic sugar for micro.New("helloworld")
2025-04-23 12:21:21 +01:00
asim
65af48823f
yolo development is bad
2025-04-23 12:16:34 +01:00
asim
156a968253
directly support handler in the service interface
2025-04-23 12:13:23 +01:00
Morya
517b2b0855
Update README.md ( #2748 )
...
go install github.com/micro/go-micro/cmd/protoc-gen-micro@latest
should be used, instand of
`go install github.com/micro/go-micro/cmd/protoc-gen-micro`
2025-04-22 17:09:21 +01:00
Pavel Ivanov
4702afe57d
Fix http transport client blocking recv ( #2744 )
...
* reproduce blocking recv
* fix blocking recv call on httpTransportClient
* prevent race condition
* refactoring
2025-04-10 15:24:54 +01:00
Jörn Friedrich Dreyer
e032a6aafd
update ttl for updated nodes only ( #2740 )
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-11-15 14:08:17 +00:00
Jörn Friedrich Dreyer
14a1791011
invalidate service if node was not updated ( #2736 )
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-10-28 15:34:38 +00:00
Morya
b318b7f097
go mod tidy ( #2730 )
2024-08-26 07:20:29 +01:00
Ak-Army
0433e98dbc
Better connection pool handling ( #2725 )
...
* [fix] etcd config source prefix issue (#2389 )
* http transport data race issue (#2436 )
* [fix] #2431 http transport data race issue
* [feature] Ability to close connection while receiving.
Ability to send messages while receiving.
Icreased r channel limit to 100 to more fluently communication.
Do not dropp sent request if r channel is full.
* [fix] Use pool connection close timeout
* [fix] replace Close with private function
* [fix] Do not close the transport client twice in stream connection , the transport client is closed in the rpc codec
* [fix] tests
---------
Co-authored-by: Johnson C <chengqiaosheng@gmail.com >
2024-07-23 12:19:43 +01:00
Asim Aslam
1c6c1ff1a3
Update README.md ( #2722 )
2024-07-15 11:55:17 +01:00
Asim Aslam
4c34451125
Fix data race ( #2721 )
2024-07-12 09:36:43 +01:00
asim
9a7cd8ce66
update readme
2024-07-08 18:52:06 +01:00
asim
dd0145fa18
unused packages
2024-07-08 18:48:52 +01:00
asim
72df27b7d1
remove util/sync
2024-07-08 18:46:34 +01:00
asim
e9a52070e6
k8s not needed
2024-07-08 18:44:42 +01:00
asim
6e393f6abf
move cmd package back to top level. Strip grpc plugin
2024-07-07 22:38:11 +01:00
asim
90531337db
.
2024-07-07 19:14:04 +01:00
asim
e756fd32e6
Fix panic
2024-07-07 19:09:19 +01:00
asim
7c3f272001
remove sync package
2024-07-07 19:03:18 +01:00
asim
66b3fd8893
fix retry test
2024-07-07 19:01:43 +01:00
asim
c64cb1cb03
more references to runtime
2024-07-07 18:50:52 +01:00
asim
8876002e57
more references to runtime
2024-07-07 18:49:39 +01:00
asim
a3809afbdf
more references to runtime
2024-07-07 18:44:18 +01:00
asim
563e0d265d
meh
2024-07-07 18:40:24 +01:00
asim
3d5f87c01b
no one is using that
2024-07-07 18:40:15 +01:00
asim
bac34aaec1
still more fixes
2024-07-07 18:36:04 +01:00
asim
db0fa9fe1f
fix bugs
2024-07-07 18:32:26 +01:00
asim
3676232df1
strip runtime
2024-07-07 18:30:48 +01:00
asim
29d79d748d
remove runtime that no one uses
2024-07-07 18:28:38 +01:00
asim
627066baf9
remove events entirely
2024-07-07 18:26:30 +01:00
asim
d84da9a8eb
meh
2024-07-07 18:19:50 +01:00
asim
6c0a073e33
Merge branch 'master' of ssh://github.com/micro/go-micro
2024-07-07 18:19:19 +01:00
asim
12e8fcd057
Fix parallel test
2024-07-07 18:18:43 +01:00
Asim Aslam
4dcf2e58c0
Update README.md ( #2720 )
2024-07-07 08:05:08 +01:00
Asim Aslam
b56cfaf818
Revert license to Apache 2
2024-07-07 08:04:29 +01:00
Asim Aslam
ff52e9f5d0
Delete .github/FUNDING.yml
2024-07-07 07:18:47 +01:00
Asim Aslam
c05c11e0c3
Update README.md ( #2719 )
2024-07-04 10:29:05 +01:00
asim
fc614aef2d
add back generator
2024-07-04 09:18:52 +01:00
Ak-Army
1515db5240
Fix stream eos error ( #2716 )
...
* [fix] etcd config source prefix issue (#2389 )
* http transport data race issue (#2436 )
* [fix] #2431 http transport data race issue
* [feature] Ability to close connection while receiving.
Ability to send messages while receiving.
Icreased r channel limit to 100 to more fluently communication.
Do not dropp sent request if r channel is full.
* [fix] Do not send error when stream send eos header, just close the connection
* [fix] Do not overwrite the error in http client
---------
Co-authored-by: Johnson C <chengqiaosheng@gmail.com >
2024-07-02 13:06:14 +01:00
littlecoderonway
4d5b3b084f
Fix registry cache broken ( #2715 )
...
* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache
* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache
---------
Co-authored-by: Shuaihu Liu <shuaihu.liu@shopee.com >
2024-07-02 09:30:51 +01:00
Asim Aslam
e9ceb66e32
Update README.md
2024-06-05 18:28:17 +01:00
asim
610c00859f
v5
2024-06-04 21:40:43 +01:00
Asim Aslam
e11395c8f5
Update LICENSE ( #2712 )
...
BSL license
2024-06-04 21:37:52 +01:00
Di Wu
63f2507944
fix(sec): CVE-2024-24786 ( #2699 )
2024-06-04 20:23:15 +01:00
Asim Aslam
0c6c907c58
Delete CHANGELOG.md
...
Not being maintained
2024-06-04 20:21:45 +01:00
Asim Aslam
53f691da30
Update README.md ( #2711 )
2024-06-04 20:21:05 +01:00
Asim Aslam
8f43ae86dd
Update FUNDING.yml ( #2710 )
2024-06-04 20:01:41 +01:00
dependabot[bot]
f9ce51c522
chore(deps): bump github.com/opencontainers/runc from 1.1.5 to 1.1.12 ( #2706 )
...
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc ) from 1.1.5 to 1.1.12.
- [Release notes](https://github.com/opencontainers/runc/releases )
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md )
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.5...v1.1.12 )
---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 18:51:46 +01:00
dependabot[bot]
08d98adcd2
chore(deps): bump golang.org/x/net from 0.17.0 to 0.23.0 ( #2705 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 13:56:58 +01:00
guangwu
186b8351dc
fix: close dockerfile ( #2703 )
2024-04-17 07:45:39 +01:00
Z.Q.K
b1e58a1fe8
fix typo ( #2701 )
2024-03-26 03:39:45 +00:00
Ak-Army
f1a8b39309
Fix double close in stream client ( #2693 )
...
* [fix] etcd config source prefix issue (#2389 )
* http transport data race issue (#2436 )
* [fix] #2431 http transport data race issue
* [feature] Ability to close connection while receiving.
Ability to send messages while receiving.
Icreased r channel limit to 100 to more fluently communication.
Do not dropp sent request if r channel is full.
* [fix] Do not close the transport client twice in stream connection , the transport client is closed in the rpc codec
---------
Co-authored-by: Johnson C <chengqiaosheng@gmail.com >
Co-authored-by: Hunyadvári Péter <peter.hunyadvari@vcc.live >
2024-02-15 20:26:36 +00:00
Asim Aslam
6e55bb1a0e
Update README.md ( #2692 )
2024-02-10 18:47:38 +00:00
Morya
f28468a59c
feat: allow to set API listen address ( #2680 )
2023-12-18 10:29:47 +00:00
Asim Aslam
3a4790b3c5
Update tests.yaml ( #2681 )
2023-12-18 10:28:44 +00:00
Eng Zer Jun
cbd45b12dc
Avoid allocations with (*regexp.Regexp).MatchString ( #2679 )
...
We should use `(*regexp.Regexp).MatchString` instead of
`(*regexp.Regexp).Match([]byte(...))` when matching string to avoid
unnecessary `[]byte` conversions and reduce allocations.
func BenchmarkMatch(b *testing.B) {
for i := 0; i < b.N; i++ {
if match := versionRe.Match([]byte("v1")); !match {
b.Fail()
}
}
}
func BenchmarkMatchString(b *testing.B) {
for i := 0; i < b.N; i++ {
if match := versionRe.MatchString("v1"); !match {
b.Fail()
}
}
}
goos: linux
goarch: amd64
pkg: go-micro.dev/v4/api/handler/event
cpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics
BenchmarkMatch-16 11430127 127.4 ns/op 2 B/op 1 allocs/op
BenchmarkMatchString-16 12220628 97.54 ns/op 0 B/op 0 allocs/op
PASS
ok go-micro.dev/v4/api/handler/event 3.822s
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2023-12-04 16:00:01 +00:00
guangwu
252385e39c
chore: replace for loop with call to copy ( #2678 )
2023-11-30 11:18:05 +00:00
ChengDaqi2023
68c026c5d8
update golang.org/x/net v0.8.0 to 0.17.0 ( #2677 )
2023-11-29 10:24:36 +00:00
Elmut
ca6190f5f2
append to subscribers ( #2640 )
...
* append to subscribers
* Update rpc_router.go
error correction log
2023-11-26 11:08:28 +01:00
Guillaume Bour
674b9822e0
util/addr: Fixes findIP to return public IP if present. ( #2673 )
2023-11-26 11:06:55 +01:00
Christian Richter
7392705af8
bump urfave cli & fix race condition ( #2659 )
...
* bump urfave cli
Signed-off-by: Christian Richter <crichter@owncloud.com >
* Fix race condition
Co-authored-by: André Duffeck <andre.duffeck@firondu.de >
Signed-off-by: Christian Richter <crichter@owncloud.com >
---------
Signed-off-by: Christian Richter <crichter@owncloud.com >
2023-10-09 10:33:57 +01:00
Asim Aslam
27c488712e
Update README.md ( #2652 )
2023-08-07 09:46:15 +01:00
Asim Aslam
c3d7c65c88
Update README.md ( #2650 )
2023-07-20 07:49:53 +01:00
Asim Aslam
384814c885
Update README.md ( #2648 )
2023-07-17 09:33:34 +01:00
Asim Aslam
8a3a98a8b8
Update README.md ( #2647 )
2023-07-16 12:02:53 +01:00
asim
416f65e814
rename test dir
2023-07-11 09:25:35 +01:00
clearcode
8020303017
Update README.md ( #2635 )
2023-05-06 21:39:24 +02:00
mamadeusia
67d48b205e
Add Context in event options ( #2634 )
...
Co-authored-by: mamadeusia <timadues7775@gmail.com >
2023-05-03 13:24:36 +01:00
dependabot[bot]
31135d4696
Bump github.com/docker/docker from 20.10.7+incompatible to 20.10.24+incompatible ( #2625 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-26 02:22:47 +02:00
Coder
1478a8e46d
fix(config/source/cli): mergo.Map error, src and dst must be of same … ( #2628 )
2023-04-26 02:21:08 +02:00
Mohamed MHAMDI
ad8fca255b
fix(config): fix file source watcher stop behavior when Stop is called ( #2630 )
...
Co-authored-by: Mohamed MHAMDI <mmhamdi@hubside.com >
2023-04-26 02:19:52 +02:00
Lukasz Raczylo
a7522e7d6c
fix: struct field alignment ( #2632 )
2023-04-26 02:16:34 +02:00
Asim Aslam
0f9b2f00c9
Update README.md
2023-04-12 11:09:56 +01:00
Asim Aslam
7fe95e8732
Update README.md
2023-04-12 11:09:40 +01:00
Asim Aslam
d44ed328d1
Add Handle option ( #2627 )
2023-04-11 10:29:03 +01:00
Thomas Chandelle
d392e72021
fix(api/handler): avoid zombie goroutine when connection unexpectedly closes ( #2624 )
2023-04-05 22:50:24 +02:00
dependabot[bot]
683e2729b4
Bump github.com/opencontainers/runc from 1.1.4 to 1.1.5 ( #2623 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 20:19:21 +02:00
asim
6f8930926f
gofmt
2023-03-22 16:42:54 +00:00
Asim Aslam
2117672933
Update FUNDING.yml
2023-03-21 20:51:42 +00:00
Asim Aslam
d7e692b5d1
Update README.md
2023-03-21 15:19:07 +00:00
asim
d949258b2f
update the logo
2023-03-20 16:48:44 +00:00
fuyou
d376656528
fix(sec): upgrade github.com/containerd/containerd to 1.6.18 ( #2617 )
...
* update github.com/containerd/containerd v1.4.3 to 1.6.18
* fix(sec): upgrade containerd
* fix(sec): go mod tidy
---------
Co-authored-by: Davincible <david.brouwer.99@gmail.com >
2023-03-07 17:28:22 +01:00
dependabot[bot]
415b3e3a2f
Bump golang.org/x/net from 0.0.0-20210510120150-4163338589ed to 0.7.0 ( #2615 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20210510120150-4163338589ed to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/commits/v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-07 17:11:10 +01:00
Hellis
e337eb2c3d
fix(api): add WithRegistry option for api ( #2618 )
2023-03-07 17:05:25 +01:00
dependabot[bot]
521e6b644c
Bump golang.org/x/crypto from 0.0.0-20210513164829-c07d793c2f9a to 0.1.0 ( #2619 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.0.0-20210513164829-c07d793c2f9a to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-07 17:04:20 +01:00
Stanislav
ad0b4f103d
feat(errors): append errors use variadic arguments ( #2606 )
2023-01-03 12:58:03 +01:00
Davincible
68a6425ad8
fix(service): profile stop error scope
2022-11-16 05:07:41 +01:00
leoujz
0a91ba7b5d
api gateway handing http request adds Content-Type application/x-www-form-urlencoded, and extract endpoints from path if no endpoint matched ( #2592 )
...
Co-authored-by: l <l@x>
2022-11-09 04:28:39 +01:00
645775992
a17eaf64da
update gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b to 3.0.0 ( #2589 )
2022-11-04 12:06:13 +01:00
645775992
6df085fd6d
update github.com/opencontainers/runc v0.1.1 to 1.1.2 ( #2590 )
2022-11-04 12:05:41 +01:00
David Brouwer
697ea1b21e
Update README.md
2022-11-02 21:45:35 +01:00
JellyTony
b442dbb56b
fix: fix configuration version data competition ( #2586 )
...
Co-authored-by: JeffreyBool <zhanggaoyuan@mediatrack.cn >
2022-10-26 12:12:44 +02:00
Sagan Yaroslav
b988a78bae
fix: store table initialization ( #2584 )
2022-10-20 14:59:08 +02:00
David Brouwer
a3980c2308
feat: add test framework & refactor RPC server ( #2579 )
...
Co-authored-by: Rene Jochum <rene@jochum.dev >
2022-10-20 13:00:50 +02:00
keepstep
c25dee7c8a
fix(registry/cache): do not watch when ttl=0 eg: some custom registry no s… ( #2580 )
...
Co-authored-by: keep <keep@pa.com >
2022-10-08 15:19:48 +02:00
Rene Jochum
24dfcef49a
fix(transport/memory): Improve the memory transport, 4x speed ( #2581 )
2022-10-07 23:54:09 +02:00
Rene Jochum
065f9714e9
fix: easy lint fixes to api/ ( #2567 )
2022-10-01 10:50:11 +02:00
Rene Jochum
010b1d9f11
fix: linting issues ( #2566 )
2022-09-30 20:32:55 +02:00
David Brouwer
85c0b0b8eb
fix: some linting issues ( #2563 )
2022-09-30 16:27:07 +02:00
David Brouwer
47e6a8d725
feat(CI): add linting and pretty test output ( #2562 )
2022-09-30 02:08:42 +02:00
Mohamed MHAMDI
1db36357d5
feat(logger): add logger option to all micro components (override DefaultLogger) closes #2556 ( #2559 )
...
Run tests / Test repo (push) Waiting to run
* feat(logger): add logger option to all components
* fix: refactor api/rpc.go
* fix: refactor api/stream.go
* fix: api/options.go comment
* fix(logger): do not use logger.Helper internally
* fix(logger): fix comments
* fix(logger): use level.Enabled method
* fix: rename mlogger to log
* fix: run go fmt
* fix: log level
* fix: factories
Co-authored-by: Mohamed MHAMDI <mmhamdi@hubside.com >
Co-authored-by: Davincible <david.brouwer.99@gmail.com >
2022-09-29 16:44:53 +02:00
David Brouwer
57a0ef5a0f
docs: update README shields ( #2558 )
...
* docs: add badges to README.md
* docs: new discord badge
* docs: update discord badge
* docs: update discord badge
* docs: remove shield
2022-09-24 03:40:48 +02:00
Mohamed MHAMDI
39e00f11a8
feat(config): add withFs option to file source ( #2557 )
...
Co-authored-by: Mohamed MHAMDI <mmhamdi@hubside.com >
2022-09-24 02:46:18 +02:00
David Bereza
34b6434791
fix: prevent returning empty strings for list ( #2553 )
2022-09-06 20:03:23 +01:00
Asim Aslam
a702a1b097
Update README.md
2022-08-17 10:02:52 +01:00
asim
d32c8bd0eb
move logo
Run tests / Test repo (push) Waiting to run
2022-08-17 09:50:32 +01:00
刘志铭
d7d8123bc7
Fix a problem with the Register Memory component ( #2545 )
2022-08-13 11:23:42 +01:00
David Bereza
f40cfdda82
feat(sync): Add additional context option to sync ( #2544 )
2022-08-11 13:09:25 +08:00
Arvin
51250bf248
fix: Fix a logic judgment bug. ( #2540 )
...
Signed-off-by: Arvin <1458070668@qq.com >
2022-08-02 17:54:51 +01:00
Arvin
63a9b94820
support use of listen options ( #2536 )
...
* feat: support use of listen options
* style: Adjust the import order of packages.
2022-07-30 10:56:14 +01:00
Asim Aslam
adcc1761d0
Update README.md
2022-07-24 06:39:24 +01:00
Asim Aslam
cc53b5e7d7
Update README.md
2022-07-23 11:25:07 +01:00
asim
4d63d61c20
remove function
Run tests / Test repo (push) Waiting to run
2022-07-22 20:12:24 +01:00
asim
678c227061
remove deprecated function
2022-07-22 20:11:27 +01:00
asim
ec847fa60c
remove generate file
2022-07-22 20:10:06 +01:00
asim
616060876f
remove file
2022-07-22 20:08:37 +01:00
asim
641be04fc0
remove plugins dir
2022-07-22 20:07:34 +01:00
Asim Aslam
28f36e8fd6
strip debug handler ( #2532 )
...
* strip debug handler
* fix tests
2022-07-22 20:03:27 +01:00
asim
a8224e1c67
Merge branch 'master' of ssh://github.com/asim/go-micro
2022-07-22 10:22:58 +01:00
asim
38293f479a
strip wrappers for trace/stats
2022-07-22 10:22:50 +01:00
Ak-Army
48eae3b968
Fix http transport panic ( #2531 )
...
* [fix] etcd config source prefix issue (#2389 )
* http transport data race issue (#2436 )
* [fix] #2431 http transport data race issue
* [feature] Ability to close connection while receiving.
Ability to send messages while receiving.
Icreased r channel limit to 100 to more fluently communication.
Do not dropp sent request if r channel is full.
* [fix] Read buff before reset it, when the connection is closed
Co-authored-by: Johnson C <chengqiaosheng@gmail.com >
Co-authored-by: Hunyadvári Péter <peter.hunyadvari@vcc.live >
2022-07-22 08:40:58 +01:00
Asim Aslam
e28f5b97f6
Update README.md
2022-07-20 10:34:27 +01:00
Asim Aslam
140f90b354
Update README.md
2022-07-20 10:12:05 +01:00
Asim Aslam
467c8a34e3
Update README.md
2022-07-18 11:40:43 +01:00
Ak-Army
582e3f9310
Http transport stream ( #2529 )
...
* [fix] etcd config source prefix issue (#2389 )
* http transport data race issue (#2436 )
* [fix] #2431 http transport data race issue
* [feature] Ability to close connection while receiving.
Ability to send messages while receiving.
Icreased r channel limit to 100 to more fluently communication.
Do not dropp sent request if r channel is full.
Co-authored-by: Johnson C <chengqiaosheng@gmail.com >
Co-authored-by: Hunyadvári Péter <peter.hunyadvari@vcc.live >
2022-07-15 11:04:41 +01:00
Asim Aslam
98375c7ae5
api honours naming convention of other interfaces
2022-07-11 15:49:30 +01:00
Asim Aslam
7e903d80b6
Update README.md
2022-07-11 15:41:03 +01:00
Asim Aslam
6cf2b02f0f
move cmd to util ( #2527 )
...
* move cmd to util
* go fmt
2022-07-11 14:37:34 +01:00
Asim Aslam
b36949f2c1
Update README.md
2022-07-11 13:08:54 +01:00
Asim Aslam
995abaaea6
go mod tidy
2022-07-11 09:51:48 +01:00
Asim Aslam
97d59fbf78
remove generator and move to github.com/go-micro
2022-07-11 09:11:59 +01:00
Asim Aslam
ff1312438c
Update README.md
2022-07-07 12:49:56 +01:00
Asim Aslam
edaa353826
strip body from gateway
2022-07-04 10:15:14 +01:00
Asim Aslam
48d6650f28
rename api to gateway
2022-07-02 14:42:12 +01:00
Asim Aslam
3381a9f3db
Remove body from endpoint
2022-07-02 14:38:58 +01:00
Asim Aslam
63d1f9de4a
minor changes
2022-07-02 14:25:21 +01:00
Asim Aslam
e313863a2a
make router configurable in api
2022-07-02 14:15:02 +01:00
Asim Aslam
73dc3723c7
Update api.go
2022-07-02 13:50:45 +01:00
Asim Aslam
667ee9b85e
rename field to Versions
2022-07-02 12:35:57 +01:00
Asim Aslam
b6b866c0b2
api package ( #2522 )
...
* api gateway
* add comment
2022-07-02 12:11:59 +01:00
Johnson C
28298a30e4
feat: remove plugins and related docs ( #2521 )
...
* feat: redis implementation of cache
* Revert "feat: redis implementation of cache"
This reverts commit 4b3f25c1fc494d934613992d8a762024fafad7b6.
* feat: remove plugins
2022-07-02 10:25:57 +01:00
Johnson C
b884a68347
feat: update out of date docs ( #2520 )
...
Run tests / Test repo (push) Waiting to run
* feat: redis implementation of cache
* Revert "feat: redis implementation of cache"
This reverts commit 4b3f25c1fc494d934613992d8a762024fafad7b6.
* feat: update out of date docs
2022-07-02 08:44:32 +01:00
Asim Aslam
bfcdfc3c7f
remove m3o
Run tests / Test repo (push) Waiting to run
2022-07-01 11:37:13 +01:00
Asim Aslam
392610022a
Update README.md
2022-07-01 08:38:57 +01:00
Asim Aslam
34a51c9f29
Update README.md
2022-07-01 08:34:20 +01:00
Asim Aslam
a5fb3fab66
Update README.md
2022-07-01 08:33:53 +01:00
JellyTony
96576a612a
feat(web): add start and stop functions to the web ( #2519 )
2022-07-01 08:06:27 +01:00
Thomas Chandelle
87c96bc4d0
Correctly check error on redis command XTRIM ( #2518 )
...
Also:
- add comment about version requirement
- move minID to var for code readability
2022-06-30 18:24:27 +08:00
JellyTony
65a2e4ed02
fix(registry): fix watch services only first time ( #2517 )
2022-06-29 08:49:22 +01:00
Abdul Hadi
9960cd1d36
typo siza #2429 ( #2515 )
2022-06-24 19:18:47 +01:00
David Brouwer
107bd74187
fix: allow event subscribers to use pointers ( #2514 )
...
When a subscriber would use a pointer as event type, panics would occur.
2022-06-22 09:01:13 +08:00
Johnson C
7a6a2b6373
feat: redis implementation of cache ( #2513 )
...
* feat: redis implementation of cache
* Revert "feat: redis implementation of cache"
This reverts commit 4b3f25c1fc494d934613992d8a762024fafad7b6.
* feat: redis implementation of cache
2022-06-21 20:05:00 +01:00
Asim Aslam
cf51ddeb26
Update README.md
2022-05-30 08:50:02 +01:00
Asim Aslam
13b76331ec
Update README.md
Run tests / Test repo (push) Waiting to run
2022-05-11 09:55:41 +01:00
Asim Aslam
de0b456b46
Update README.md
2022-05-10 06:59:08 +01:00
yulian
072547201c
remove unused variable in loop ( #2495 )
2022-05-03 11:06:13 +08:00
bosima
8293988499
fix: consume and publish blocked after rabbitmq reconnecting ( #2492 )
...
* Support direct generation of grpc method when package and service names of proto files are different.
* fix req.Interface() return nil.
* Get rid of dependence on 'Micro-Topic'
* Revert "Get rid of dependence on 'Micro-Topic'"
This reverts commit 3ff69443364d39f5fda3a32fc2249826e2d207dd.
* Revert "fix req.Interface() return nil."
This reverts commit 90a1b34195e07772fa6f2074e1cf22237ac2a87f.
* Revert "Revert "fix req.Interface() return nil.""
This reverts commit e64737b7da8d1767c4456881f6730f1c196cea60.
* Revert "Revert "Get rid of dependence on 'Micro-Topic'""
This reverts commit 141bb0a557c81cb6d1c651b085b3e65483d5e681.
* fix: consume and publish blocked after reconnecting
Co-authored-by: maxinglun <maxinglun@zhijiaxing.net >
2022-04-28 17:55:06 +08:00
Asim Aslam
367771923c
Update README.md
2022-04-19 15:47:45 +01:00
Asim Aslam
4ca75f3ab3
Update README.md
2022-04-19 15:47:31 +01:00
Asim Aslam
4a7c16419e
Update README.md
2022-04-19 15:31:23 +01:00
Asim Aslam
1d396bdd64
Update README.md
2022-04-19 15:31:11 +01:00
Sergey Galkin
ca807e36c5
option to disable file watcher ( #2485 )
...
Co-authored-by: Sergey Galkin <v.sergey.galkin@reddit.com >
2022-04-18 19:30:14 +01:00
Asim Aslam
cce02927e7
Update README.md
2022-04-18 19:20:45 +01:00
Wang
034ba9a0de
typo fix; ( #2480 )
2022-04-15 09:55:30 +08:00
bosima
1919048c8f
Support direct generation of grpc method ( #2474 )
...
* Support direct generation of grpc method when package and service names of proto files are different.
* fix req.Interface() return nil.
2022-04-10 22:12:39 +08:00
Asim Aslam
62c2981baf
remove cli
2022-04-07 11:46:07 +01:00
Asim Aslam
efa2c4f2d2
remove dashboard
2022-04-07 11:45:58 +01:00
Asim Aslam
27b98c450e
Remove examples
2022-04-07 11:45:39 +01:00
Asim Aslam
e8604f065c
remove services
2022-04-07 11:45:22 +01:00
Asim Aslam
aaca7c27da
Update README.md
2022-04-07 11:44:47 +01:00
Asim Aslam
664ee31b1a
Update README.md
2022-04-07 08:20:57 +01:00
Wang
6dedee5d8c
Add header suppor for Kafka broker plugin; ( #2470 )
2022-04-04 19:54:19 +01:00
Wang
d1806e2883
Fix codec/bytes ( #2466 )
...
* Update marshaler.go
Byes codec always return error "invalid message" now.
* Update go.mod
Update package name
* Update go.mod
2022-04-02 18:11:12 +01:00
Morya
1f086a3002
fix https://github.com/asim/go-micro/issues/2344 ( #2462 )
...
fix https://github.com/asim/go-micro/issues/2344
2022-04-01 07:10:51 +01:00
Muhammad Iqbal Alaydrus
73eda3346d
Add Wait option support for sync/etcd plugins ( #2459 )
...
* Add Wait support for sync/etcd plugins
* Use ErrLockTimeout if context deadline exceeded
2022-03-25 10:28:19 +08:00
Chris Moran
c6d352c832
#2453 Fix with associated test update ( #2454 )
2022-03-17 10:22:05 +08:00
baerwang
356448017f
style:arrays pre-allocation ( #2449 )
2022-03-14 14:03:14 +08:00
dependabot[bot]
d6a74c1a8e
Bump github.com/nats-io/nats-server/v2 in /plugins/events/natsjs ( #2447 )
...
Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server ) from 2.6.2 to 2.7.4.
- [Release notes](https://github.com/nats-io/nats-server/releases )
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml )
- [Commits](https://github.com/nats-io/nats-server/compare/v2.6.2...v2.7.4 )
---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 12:02:12 +08:00
Willy Kloucek
e5a35d38f9
fix natsjs syntax error, remove TODOs and enable tests ( #2446 )
2022-03-11 16:03:35 +08:00
Willy Kloucek
a2f6fac852
add NATS JetStream events plugin ( #2433 )
...
* add NATS JetStream plugin
* add notes about de-duplication and inprogress call
* fix typo
2022-03-04 14:53:15 +00:00
Ak-Army
dca3a3b553
[fix] http transport deadlock ( #2441 )
...
Co-authored-by: Hunyadvári Péter <peter.hunyadvari@vcc.live >
2022-02-24 09:32:09 +00:00
AlkaidChen
4154ed6a80
add tls option for sync etcd plugin ( #2440 )
2022-02-24 17:07:14 +08:00
Chris Moran
69b4b5d1c6
Support for -micro_out=module=<module_prefix> for protoc-gen-micro ( #2435 )
2022-02-23 13:14:50 +08:00
Asim Aslam
d47c2d984b
add new services
2022-02-16 08:43:36 +00:00
Asim Aslam
91cfd18373
Update README.md
2022-02-16 08:35:22 +00:00
Asim Aslam
9e0be6c85d
add service updates ( #2418 )
Run tests / Test repo (push) Waiting to run
2022-01-18 15:27:36 +00:00
Asim Aslam
23f1de80c5
Update README.md
2022-01-17 13:35:01 +00:00
Asim Aslam
6bc97c16ee
Update README.md
2022-01-17 13:34:30 +00:00
Asim Aslam
a612e09a34
Add files via upload
2022-01-15 20:26:27 +00:00
Asim Aslam
1e2d197c7d
default the content type to json ( #2412 )
2022-01-11 13:36:20 +00:00
Asim Aslam
3a999a0db6
Add files via upload
2022-01-11 12:07:54 +00:00
Asim Aslam
b8c2eb2b28
Update README.md
2022-01-11 08:35:55 +00:00
Asim Aslam
6f15174a2f
Update README.md
2022-01-11 08:35:16 +00:00
Asim Aslam
748fb39cac
Add files via upload
2022-01-11 08:34:58 +00:00
simon
5f2251cfad
Add Kafka asynchronous send support ( #2409 )
...
* Add Kafka asynchronous send support
* Add Kafka asynchronous send support
* Upgrade sarama to 1.30.1
* Example
2022-01-09 14:12:10 +00:00
Amir Khazaie
ef7528ebdb
use read lock and unlock instead of write ones ( #2410 )
...
Co-authored-by: Amir Khazaie <a.khazaie@digikala.com >
2022-01-09 10:20:08 +00:00
Asim Aslam
696a0ba714
Merge branch 'master' of ssh://github.com/asim/go-micro
2022-01-03 11:21:29 +00:00
Asim Aslam
267da35259
move the api client
2022-01-03 11:21:20 +00:00
Asim Aslam
d152870bdb
Update client_test.go
2021-12-31 12:39:12 +00:00
Asim Aslam
da41ab146e
switch services client
2021-12-31 10:11:49 +00:00
Asim Aslam
757d0fe343
fix client
2021-12-30 09:47:40 +00:00
Asim Aslam
c8d94c44f0
remove the client
2021-12-30 09:42:08 +00:00
Asim Aslam
5fa6e89f4f
fix go mod
2021-12-30 09:35:21 +00:00
Asim Aslam
85f1c44000
Delete go.sum
2021-12-30 08:58:45 +00:00
Asim Aslam
3ba69f11ff
Delete go.mod
2021-12-30 08:58:34 +00:00
Asim Aslam
af5e70a1d6
add service interfaces
2021-12-30 08:44:34 +00:00
Johnson C
5fe884e59f
[FEATURE] add changelog ( #2400 )
...
change logs for release history
2021-12-29 11:01:40 +08:00
isfk
415016c6e4
nats config plugin ( #2397 )
2021-12-28 11:27:36 +08:00
Asim Aslam
e0de23c546
Update and rename m3o.go to services.go
2021-12-24 11:43:20 +00:00
Asim Aslam
7af0eb4b7a
Update services/ ( #2392 )
2021-12-21 13:18:29 +00:00
isfk
8e52761edb
fix context value nil ( #2391 )
2021-12-20 16:31:48 +08:00
Johnson C
37de747d19
[fix] nats deregister issue ( #2384 )
Run tests / Test repo (push) Waiting to run
2021-12-10 19:32:21 +08:00
Johnson C
a40f6e8fae
[fix] fixing f.IsExported undefined issue ( #2382 )
...
IsExported needs go1.17, replace with PkgPath
2021-12-07 17:30:48 +08:00
Johnson C
b00c8368b9
[feat] dashboard update ( #2381 )
...
* [feature] dashboard update
2021-12-07 10:42:31 +08:00
Ak-Army
97f169c424
fix http_transport Recv and Close race condition on buff ( #2374 )
...
fix rpc_stream panic override with the "Unlock of unlocked RWMutex" panic
Co-authored-by: Hunyadvári Péter <peter.hunyadvari@vcc.live >
2021-12-05 11:56:17 +00:00
Ak-Army
81244a41f1
Extend client mock with ability to test publish, and a few useful method like SetResponse and SetSubscriber ( #2375 )
...
Co-authored-by: Hunyadvári Péter <peter.hunyadvari@vcc.live >
2021-12-05 11:55:54 +00:00
JeffreyBool
229b369702
[fix] update protoc-gen-micro install doc
2021-12-04 12:52:02 +08:00
Johnson C
c0e0b2b225
[FEATURE] dashboard support publish messages ( #2373 )
...
* [feature] dashboard
* [feat] support publish message
2021-12-02 13:15:38 +08:00
Johnson C
1e4dd94b71
[fix] zookeeper registry delete event ( #2372 )
...
* [fix] #2358 zookeeper delete event
2021-12-01 16:26:31 +08:00
zhaoyang
b25d744f5c
feat: delete redundant lines ( #2364 )
2021-11-24 17:41:54 +00:00
zhaoyang
685f9979a1
feat: modify the dependencies urls ( #2363 )
2021-11-24 16:43:05 +00:00
Asim Aslam
6fc5e45626
Update README.md
2021-11-24 07:32:51 +00:00
Asim Aslam
2c6515152a
Update load.go
2021-11-24 07:32:20 +00:00
Johnson C
70d2bd8a6b
[feature] dashboard ( #2361 )
2021-11-24 11:27:23 +08:00
Johnson C
90b3e4af0b
[fix] ignore unexported field ( #2354 )
...
ignore unexported field when register endpoints
2021-11-18 17:07:00 +08:00
Niek den Breeje
4f1a571704
Fix Micro CLI's proto comments ( #2353 )
2021-11-18 06:10:43 +01:00
陈杨文
799b8d6a65
upgrade to go 1.17 ( #2346 )
Run tests / Test repo (push) Waiting to run
2021-11-11 14:03:34 +00:00
Asim Aslam
8e312801a1
Update README.md
2021-11-08 09:03:37 +00:00
Asim Aslam
335c4e54a1
Merge branch 'master' of ssh://github.com/asim/go-micro
2021-11-08 09:01:56 +00:00
Asim Aslam
e6d17257b0
add nats and redis events plugins
2021-11-08 08:59:14 +00:00
Asim Aslam
0c2041e439
add events package ( #2341 )
...
* add events package
* update go version
2021-11-08 08:52:39 +00:00
Johnson C
c5be9f560c
fix( #2333 ): etcd grpc marshal issue ( #2334 )
...
make protocodec compatible with legacy proto message type
2021-11-03 10:58:05 +08:00
Asim Aslam
62b985f49c
Update README.md
2021-11-01 21:44:52 +00:00
Asim Aslam
2b9a6f9aeb
flatten cli ( #2332 )
Run tests / Test repo (push) Waiting to run
2021-11-01 14:34:09 +00:00
Asim Aslam
3c70d23a1d
m3o client changed
2021-11-01 11:00:21 +00:00
Asim Aslam
adaa98e6cf
use vanity url for cli command
2021-11-01 09:00:14 +00:00
无相
ed90a65783
fix broker nsq plugin nil pointer error ( #2329 )
...
Co-authored-by: longhaoteng <longhaoteng@kingsoft.com >
2021-11-01 08:47:22 +00:00
无相
268278c53e
fix config json slice parsing ( #2330 )
...
Co-authored-by: longhaoteng <longhaoteng@kingsoft.com >
2021-11-01 08:47:00 +00:00
Benjamin
5d5aee1f08
replace ioutil with io and os ( #2327 )
...
set the go version to 1.16 in pr.yml and tests.yml, so as to be consistent with the version in go.mod.
2021-10-30 19:24:40 +01:00
Johnson C
ed690ed838
fixing #2308 ( #2326 )
...
IPV6 too many colons in address
net.SplitHostPort need ipv6 address in [host]:port format
2021-10-28 17:03:48 +08:00
Niek den Breeje
e155029a4b
Fix Micro CLI by removing replace line in go.mod
2021-10-27 17:40:26 +02:00
Asim Aslam
880d751df4
Update README.md
2021-10-27 16:34:55 +01:00
Niek den Breeje
a3202b00ee
Rename gomu to micro ( #2325 )
...
* Rename Gomu to Micro
* docs: Remove license reference in CLI's README
2021-10-27 16:31:29 +01:00
Asim Aslam
efcda9a48c
Update README.md
2021-10-26 20:17:07 +01:00
Asim Aslam
2c73c7fcf3
strip protoc-gen-micro go mod
2021-10-26 19:46:25 +01:00
Johnson C
d2a51d05c4
[feature] stream CloseSend ( #2323 )
...
* support stream CloseSend
* move CloseSend into Closer
2021-10-26 15:07:08 +01:00
Johnson C
af3cfa0a4c
remove unnecessary dependencies between plugins
...
remove unnecessary dependencies between plugins
upgrade go-micro.dev/v4 to v4.2.1
2021-10-23 16:20:42 +08:00
Johnson C
f96b48dad9
1. use default memory registry in grpc plugins ( #2317 )
...
2. try fixing grpc plugin failed to get issue
use v4.0.0-v4.0.0-00010101000000-000000000000 instead of specific version
3. kafka panic on disconnect
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x1266c50]
goroutine 31 [running]:
github.com/asim/go-micro/plugins/broker/kafka/v3.(*kBroker).Disconnect(0xc0002400c0)
C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/broker/kafka/v3@v3.7.0/kafka.go:130 +0xd0
github.com/asim/go-micro/plugins/server/grpc/v3.(*grpcServer).Start.func2()
C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/server/grpc/v3@v3.0.0-20210712061837-0532fd9de8ae/grpc.go:998 +0xc8d
created by github.com/asim/go-micro/plugins/server/grpc/v3.(*grpcServer).Start
C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/server/grpc/v3@v3.0.0-20210712061837-0532fd9de8ae/grpc.go:917 +0xcaf
exit status 2
2021-10-22 22:30:28 +08:00
Niek den Breeje
9edc569e68
Add update rule to Makefile ( #2315 )
...
I realized that when writing `require go-micro.dev/v4 v4.1.0` in the
`go.mod` file, `go mod tidy` will install that exact version of
`go-micro.dev/v4`. As of right now, v4.1.0 is an outdated version, and
preferably we shouldn't be updating gomu's Go Modules template everytime
a new release is tagged, but still want gomu users to generate projects
using the latest Go Micro version.
In an attempt to solve this problem, I'm opting to add a new Makefile
rule for new projects generated by gomu, `update` that runs `go get -u`.
This aggressively updates any dependencies your Go Modules project may
have. `go mod tidy` is then able to prune the `go.mod` and `go.sum`
files by removing the unnecessary checksums and transitive dependencies
(e.g. `// indirect`), that were added to by go get -u due to newer
semver available.
Put one and one together and you get two. In addition to adding an
`update` rule to the Makefile generated for new projects by gomu, I'm
also updating the proto and client comments printed when new projects
have been generated to promote the `update` rule.
References:
- https://stackoverflow.com/questions/67201708/go-update-all-modules
2021-10-19 21:12:42 +02:00
Johnson C
29fefbad4e
Plugins ( #2311 )
...
* release plugins
* add window plugins release bat script
Co-authored-by: Johnson C <johnson.cheng@scenestek.com >
2021-10-16 05:56:51 +01:00
Asim Aslam
9f4770e7fd
fix generation ( #2312 )
Run tests / Test repo (push) Waiting to run
2021-10-15 14:03:40 +01:00
Asim Aslam
e7dbda689e
fix gomu
Run tests / Test repo (push) Waiting to run
2021-10-14 08:09:21 +01:00
Asim Aslam
00f461141a
fix examples go mod
Run tests / Test repo (push) Waiting to run
2021-10-13 13:37:24 +01:00
Asim Aslam
8cad88edae
update go sums
2021-10-13 13:35:17 +01:00
Asim Aslam
62801c3d68
update
2021-10-13 13:31:23 +01:00
Asim Aslam
7136c61dbd
rename to go-micro.dev
2021-10-13 09:52:05 +01:00
Asim Aslam
a87f9a808c
move to go-micro.dev
2021-10-13 09:44:24 +01:00
Asim Aslam
ca594b922c
Merge branch 'master' of ssh://github.com/asim/go-micro
2021-10-13 09:42:31 +01:00
Asim Aslam
aa4a87ed9a
move to v4 in protoc-gen-micro
2021-10-13 09:42:21 +01:00
justcy
690facdb5c
update model template ( #2307 )
2021-10-13 08:07:48 +01:00
Asim Aslam
f63e46a7d1
use 4.1.0
2021-10-12 13:22:08 +01:00
Asim Aslam
1cd7cfaa6c
go-micro.dev/v4 ( #2305 )
Run tests / Test repo (push) Waiting to run
2021-10-12 12:55:53 +01:00
jxlwqq
d9a6faeb7a
Add latest version ( #2303 )
Run tests / Test repo (push) Waiting to run
2021-10-11 15:15:42 +01:00
Asim Aslam
4cb6168780
Update README.md
2021-10-11 09:21:06 +01:00
Asim Aslam
b8d7f87d17
remove file
2021-10-11 09:19:20 +01:00
Asim Aslam
b2e17a89e5
rename file
2021-10-11 09:19:01 +01:00
Asim Aslam
4ae2528cbe
add m3o services ( #2301 )
...
* add m3o services
* update readme
2021-10-11 09:18:28 +01:00
Asim Aslam
043a82bce2
Update README.md
2021-10-11 08:38:31 +01:00
Asim Aslam
99e0b182b7
Update README.md
2021-10-11 08:38:07 +01:00
Asim Aslam
ab1b10f13d
Update README.md
2021-10-11 08:37:38 +01:00
jxlwqq
86eabf4a4c
Use go install ( #2300 )
...
go get: installing executables with 'go get' in module mode is deprecated.
To adjust and download dependencies of the current module, use 'go get -d'.
To install using requirements of the current module, use 'go install'.
To install ignoring the current module, use 'go install' with a version,
like 'go install example.com/cmd@latest'.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
2021-10-11 06:32:13 +01:00
Qalifah
a99a1e9356
add MultiError type ( #2297 )
2021-10-06 17:55:14 +01:00
Asim Aslam
2ef523a7eb
Delete index.html
2021-10-02 13:13:22 +01:00
Asim Aslam
a1da40d9aa
Delete CNAME
2021-10-01 20:23:38 +01:00
Defoo Li
a315fc2dda
Fix missing content type ( #2289 )
2021-09-30 12:15:09 +01:00
Johnson C
6dc25053ea
Errors ( #2290 )
...
* add errors.As
convert target err to *Error, return false if err don't match *Error
* update errors.As to (*Error, bool)
* fixing FromError panic issue when err is nil
2021-09-30 07:45:10 +01:00
Qiu Yu
4612baa7f8
zap plugin: allow injecting zap logger options ( #2287 )
...
Though some of the Zap logger option can be customized through
plugins/logger/zap.Options, this change allows go.uber.org/zap.Option be
be injected directly for deeper customization.
2021-09-29 07:12:16 +01:00
Johnson C
44ecd6a457
Hystrix filter ( #2286 )
...
* support hystrix filter
* filter function should return true of false
2021-09-28 11:23:04 +01:00
Asim Aslam
8c39b1e120
Update index.html
2021-09-24 09:10:04 +01:00
Asim Aslam
12eff1cc60
go fmt
2021-09-24 09:08:39 +01:00
Asim Aslam
9deb715ebb
Update go.mod
2021-09-24 09:08:16 +01:00
Arsen
3b60db0dcd
logger helper: add "inject" method, to make a pair with "extract" ( #2283 )
2021-09-23 16:48:08 +01:00
Asim Aslam
af22cbb108
Update README.md
2021-09-22 14:48:20 +01:00
Asim Aslam
9d7131a512
Update README.md
2021-09-22 14:43:37 +01:00
Asim Aslam
bca9ab165d
Update README.md
2021-09-22 14:42:17 +01:00
Asim Aslam
d111f96993
Update README.md
2021-09-22 14:41:29 +01:00
Asim Aslam
2f223c276c
Update README.md
2021-09-22 14:32:06 +01:00
Asim Aslam
33acb4a956
update readme
2021-09-22 14:31:21 +01:00
Asim Aslam
b515785637
add services dir
2021-09-22 14:30:40 +01:00
Asim Aslam
3dcdcdad32
Update README.md
2021-09-22 13:37:07 +01:00
Arsen
916ed6b8ee
logger: caller's skip correction ( #2280 )
2021-09-22 09:01:03 +01:00
gregkv
b8fbe87e1f
Use context to log "panic recovered" errors in grpc-server plugin ( #2278 )
2021-09-20 10:50:13 +01:00
Asim Aslam
cb3db7dd83
Update options.go
2021-09-19 17:22:28 +01:00
simon
066ce5045b
Command Option add NewConfig,NewProfile func ( #2276 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
* Add config command option automatically discover
* Add AuthCall wrapper func
* Add NewConfig func
* Add NewProfile func
2021-09-19 17:21:55 +01:00
Asim Aslam
a65932ff82
Create CNAME
2021-09-19 15:10:47 +01:00
Asim Aslam
5496086916
Create index.html
2021-09-19 14:44:03 +01:00
Kurisu_Amatist
efd4ef0e62
fix(cache): only watch calling service in registry ( #2273 )
2021-09-19 10:40:21 +01:00
gregkv
00d819a199
Remove fields map from Helper, add Extract method and fix for defaultLogger.Fields ( #2274 )
2021-09-19 10:40:09 +01:00
helloword
ad532522ea
Config CORS ( #2270 )
...
* Added cors.config for CORS
* Added cors.config for CORS
* Added cors.config for CORS
Co-authored-by: 于海洋 <yhy@iothinking.com >
2021-09-17 10:17:12 +01:00
Christoffer Åström
4c7d2e28eb
test(api): fix randomly failing rpc test ( #2268 )
2021-09-13 21:56:36 +01:00
Branden Horiuchi
d78d35078c
Consul sync plugin ( #2267 )
...
* adding consul sync provider
* adding logging options
Co-authored-by: Branden Horiuchi <Branden.Horiuchi@blackline.com >
2021-09-13 19:08:05 +01:00
Johnson C
22409c8ff3
support hystrix filter ( #2265 )
2021-09-13 09:23:26 +01:00
binbin.zhang
6c3a5c161f
upgrade nacos sdk version ( #2264 )
...
Co-authored-by: binbin <binbin@didiglobal.com >
2021-09-12 22:16:46 +01:00
Niek den Breeje
fa27250605
Add generate kubernetes command ( #2261 )
2021-09-10 18:56:51 +01:00
Niek den Breeje
ac21bb5b19
Document Gomu's generator package ( #2262 )
2021-09-10 18:48:09 +01:00
Niek den Breeje
5b8d22a463
Add Kubernetes flag to new command ( #2263 )
...
To remain consistent with the Gomu's generate command, we add a
Kubernetes flag to Gomu's new command as well.
2021-09-10 18:47:55 +01:00
Niek den Breeje
56d5143557
Document Gomu's generate command ( #2260 )
2021-09-10 14:30:46 +01:00
Niek den Breeje
5772697752
Make generator package a first class citizen ( #2259 )
...
There's really no point in having the `generator` be embedded in a
`file` package so we remove the `file` package and make the `generator`
package a first class citizen instead.
2021-09-10 13:31:52 +01:00
Niek den Breeje
e23006b1a5
Generate Gomu files after the fact ( #2258 )
...
* Move file generation to new package
* Use text/template instead of html/template
* Make config variables more consistent
* Combine generate files and print comments there
* Add gomu generate command
* Refactor project templating to file library
* Determine client earlier
2021-09-10 13:20:57 +01:00
Niek den Breeje
01b7b4409b
Fix generating Dockerfile with Gomu ( #2254 )
...
Somehow I didn't test this and managed to forget to properly close a
template control structure. This change fixes that.
2021-09-08 14:43:52 +01:00
Niek den Breeje
0dd6afe128
Optimize Dockerfile generated by Gomu ( #2253 )
...
This change prevents having to rebuild the entire Docker image when your
source code changes.
2021-09-08 12:50:30 +01:00
Niek den Breeje
a36f52c6d2
Fix Gomu's call response ( #2251 )
...
Gomu expects a `map[string]string` type response back, but this isn't
always the case. When Gomu calls a service endpoint that responds with,
let's say, a key where its value is a map or a list, Gomu would be
unable to decode that response. By expecting a `map[string]interface{}`
type response, Gomu is able to decode those responses as well.
2021-09-08 08:30:53 +01:00
simon
440aa4a1ce
Add AuthCall wrapper func ( #2250 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
* Add config command option automatically discover
* Add AuthCall wrapper func
2021-09-07 07:13:56 +01:00
Niek den Breeje
f77c91b7ae
Simplify gomu cmd registering ( #2249 )
...
* Use internal runtime package for gomu run
This change refactors the `gomu run` command to use Go Micro's internal
runtime package in order to run services. Not only does this clean up
duplicate functionality between Go Micro and Gomu, but also adds the
feature to Gomu to run remote projects. For example, the following
command pulls in a remote project and runs it locally.
```bash
gomu run github.com/auditemarlow/helloworld
```
The `gomu run` command remains backwards compatible. By invoking `gomu
run` in a Go Micro project directory, Gomu will simply run that project.
* Simplify Gomu's command registering
By leveraging Go's `init()` function, we can simplify registering
commands just a tad.
2021-09-06 14:12:27 +01:00
Niek den Breeje
a58b8883f8
Use internal runtime package for gomu run ( #2248 )
...
This change refactors the `gomu run` command to use Go Micro's internal
runtime package in order to run services. Not only does this clean up
duplicate functionality between Go Micro and Gomu, but also adds the
feature to Gomu to run remote projects. For example, the following
command pulls in a remote project and runs it locally.
```bash
gomu run github.com/auditemarlow/helloworld
```
The `gomu run` command remains backwards compatible. By invoking `gomu
run` in a Go Micro project directory, Gomu will simply run that project.
2021-09-06 14:01:29 +01:00
simon
270d910b73
Add config command option automatically discover ( #2246 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
* Add config command option automatically discover
2021-09-04 07:17:21 +01:00
Niek den Breeje
77bf39f2cd
Fix client gRPC plugin ( #2245 )
...
The helloworld examples found in the `google.golang.org/grpc/examples`
package were imported multiple times as different versions, resulting in
package conflicts. By running `go mod tidy`, these conflicts are
resolved and the gRPC client plugin can now be imported again.
2021-09-03 14:16:56 +01:00
Niek den Breeje
c45073a308
Fix Skaffold pipelines for client projects ( #2244 )
...
* Update greeter references to helloworld
* Add new client command
With this change, Gomu users will be able to generate template projects
for clients to services. Additionally vendor support has been built in
so Gomu users can now generate projects using fully qualified package
names, for example:
```bash
gomu new service github.com/auditemarlow/helloworld
```
This will create a new service project `helloworld` with its module name
already set to `github.com/auditemarlow/helloworld`. Likewise, Gomu
users can then generate client projects in the same manner:
```bash
gomu new client github.com/auditemarlow/helloworld
```
This will create a `helloworld-client` project that uses the protobufs
found in the `github.com/auditemarlow/helloworld` service. This removes
at least some strain in configuring these module dependencies yourself;
you can just scaffold them outright from the start.
Although the default client project is highly opinionated, it works
straight out of the box and has Skaffold in mind. Gomu users should be
able to get going in a matter of seconds.
* Update README
* Fix Skaffold pipeline for generated client projects
2021-09-03 13:26:34 +01:00
Niek den Breeje
86de031adc
[WIP] Add new client cmd ( #2243 )
...
* Update greeter references to helloworld
* Add new client command
With this change, Gomu users will be able to generate template projects
for clients to services. Additionally vendor support has been built in
so Gomu users can now generate projects using fully qualified package
names, for example:
```bash
gomu new service github.com/auditemarlow/helloworld
```
This will create a new service project `helloworld` with its module name
already set to `github.com/auditemarlow/helloworld`. Likewise, Gomu
users can then generate client projects in the same manner:
```bash
gomu new client github.com/auditemarlow/helloworld
```
This will create a `helloworld-client` project that uses the protobufs
found in the `github.com/auditemarlow/helloworld` service. This removes
at least some strain in configuring these module dependencies yourself;
you can just scaffold them outright from the start.
Although the default client project is highly opinionated, it works
straight out of the box and has Skaffold in mind. Gomu users should be
able to get going in a matter of seconds.
* Update README
2021-09-03 12:33:10 +01:00
simon
80dbe51077
Add jwt auth automatically discover ( #2242 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
2021-09-03 07:49:49 +01:00
Johnson C
f444dadd50
fixing #2235 win10 install failed issue ( #2239 )
2021-09-03 07:49:39 +01:00
Christoffer Åström
e080791787
chore(gomu): tweak makefile template ( #2238 )
2021-09-02 18:24:28 +01:00
simon
a159598f36
Add grpc,memory,quic transport automatically discover ( #2237 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
2021-09-02 18:10:24 +01:00
Niek den Breeje
993e2f55bd
Add Kubernetes resources ( #2236 )
...
* Refact new command implementation
Everytime I want to add or modify files in the new command, I will have
to do so in 2 places. This change will consolidate functionality so
there's only a single place to modify.
* Move Kubernetes resources to its own file
* Add Kubernetes resources
2021-09-02 13:35:00 +01:00
Niek den Breeje
ed9053ed94
Add cache example ( #2232 )
2021-09-01 10:08:43 +01:00
Niek den Breeje
05a299b76c
Add simple in-memory cache ( #2231 )
...
* Add simple in-memory cache
* Support configuring cache expiration duration
* Support preinitializing cache with items
* Register cache
2021-08-31 15:31:16 +01:00
Asim Aslam
dd0a7746ff
update the gomu gomod
2021-08-31 15:19:45 +01:00
Asim Aslam
088ccb5001
Update README.md
2021-08-31 09:27:36 +01:00
Niek den Breeje
4363678e48
Exit when help flag is provided on service run ( #2225 )
2021-08-31 09:13:35 +01:00
Niek den Breeje
9a77c06b44
Move from micro/cli/v2 to urfave/cli/v2 ( #2224 )
...
* Use urfave/cli/v2 instead of micro/cli/v2
Wherever possible we may want to eliminate the use of github.com/micro
imports.
* Fix broken cli test
2021-08-31 09:05:08 +01:00
Niek den Breeje
78bea87690
Add gomu CLI tool ( #2223 )
2021-08-30 15:48:57 +01:00
Johnson C
49eccbc85a
fixing proto3 optional unsupported error ( #2213 )
...
add supported features
2021-08-24 08:14:33 +01:00
Asim Aslam
7f1ebaa572
Update README.md
2021-08-23 16:45:04 +01:00
Qiu Yu
c7195aae98
Grpc server injection ( #2208 )
...
Run tests / Test repo (push) Waiting to run
* plugin: update grpc server readme
* plugin: refactor gprc server test
This is a no-op change to enable test logic reuse for different
combinations.
* plugin: grpc server test Init after New
* plugin: allow grpc.Server to be injected
2021-08-12 18:26:26 +01:00
Arsen
ffb0a2f896
grpc client: fix grpc code to micro http status conversion for the fallback case with empty Details ( #2206 )
2021-08-12 12:15:49 +01:00
Qiu Yu
b977a51253
Examples: fix grpc config ( #2207 )
...
This change fixes grpc config example code which is currently broken.
Several pieces in the change:
- use yaml encoder to read config files
- rename *.yml to *.yaml to fix format (file suffix) for encoder lookup
- replace util/log package with logger as the former one is deprecated
2021-08-12 06:27:04 +01:00
dependabot[bot]
046d0785c9
Bump github.com/gin-gonic/gin from 1.6.3 to 1.7.0 in /examples ( #2205 )
...
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin ) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/gin-gonic/gin/releases )
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gin-gonic/gin/compare/v1.6.3...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-11 13:57:15 +01:00
Qiu Yu
828d3f2b74
loader: avoid overwriting values if error happens ( #2204 )
2021-08-11 13:33:58 +01:00
Qiu Yu
a46dc0b856
Add yaml config example ( #2203 )
...
* examples: add yaml config
* examples: update go mod for yaml plugin
2021-08-11 13:31:29 +01:00
Johnson C
3e0411a3f6
fixing mem.pprof issue: ( #2198 )
...
parsing profile: concatenated profiles detected
fixing web service not start profile issue
fixing no default profile options issue
2021-08-04 09:39:01 +01:00
bacndcmc
c3107e6843
fix code proto return invalid message ( #2196 )
...
Co-authored-by: ben <norton0395@gmail.com >
2021-07-26 06:25:21 +01:00
Asim Aslam
e1bc7e3028
Update README.md
2021-07-21 09:06:34 +01:00
Asim Aslam
992418236e
Update README.md
2021-07-21 09:05:38 +01:00
Asim Aslam
27a792790b
Update README.md
2021-07-21 09:05:20 +01:00
Asim Aslam
bd9821111e
remove tidy file
2021-07-19 17:57:33 +01:00
Asim Aslam
dbba07e7ed
Delete tidy.md
2021-07-19 17:55:08 +01:00
xshytikx
753022d2ae
fix: imported and not used (log, os) ( #2195 )
...
github.com/asim/go-micro/plugins/registry/consul/v3@v3.0.0-20210716165540-546225f1d8db/watcher.go:5:2: imported and not used: "log"
github.com/asim/go-micro/plugins/registry/consul/v3@v3.0.0-20210716165540-546225f1d8db/watcher.go:5:2: imported and not used: "log"
2021-07-18 07:18:11 +01:00
JeffreyBool
546225f1d8
Not Recommended Function Correction ( #2194 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
* Not Recommended Function Correction
2021-07-16 17:55:40 +01:00
JeffreyBool
0532fd9de8
fix logger v3 ( #2193 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
* Repair mq asynchronous send, mq write failure without error output
* Repair mq asynchronous send, mq write failure without error output
* fix logger v3
2021-07-12 07:18:37 +01:00
lanrion
3fbf2c304f
Optimize prometheus wrapper,removed mutex,initialize MetricVec at init() ( #2192 )
...
Co-authored-by: dylan.deng <dylan.deng@yijinin.com >
2021-07-09 12:52:08 +01:00
JeffreyBool
6cdf28270f
Repair mq asynchronous send, mq write failure without error output ( #2191 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
* Repair mq asynchronous send, mq write failure without error output
* Repair mq asynchronous send, mq write failure without error output
2021-07-09 06:19:09 +01:00
Johnson C
7f1de77e8c
try fixing staticcheck warning ( #2190 )
...
Run tests / Test repo (push) Waiting to run
https://github.com/golang/protobuf/issues/1077
package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019)
2021-07-06 12:51:28 +01:00
Asim Aslam
1c482e8922
add web package
2021-07-06 11:12:19 +01:00
wangYue
70ed9bf154
fix missing error ( #2189 )
...
Co-authored-by: wangyue <wangyue@actiontech.com >
2021-06-30 10:13:05 +01:00
Jerry
93ba8cd0df
continue fix pre version go get bug that unknown v3.5.1 ( #2188 )
...
* 1.fix plugins go get bug.
2.update all mode.
3.add tidy tools
* continue fix pre version go get bug that unknown v3.5.1
2021-06-30 09:24:00 +01:00
Jerry
c13bb07171
1.fix plugins go get bug. ( #2187 )
...
2.update all mode.
3.add tidy tools
2021-06-30 07:21:03 +01:00
Jerry
4929a7c16e
update etcd version ( #2186 )
...
Remove missing gRPC example from README.md (#2112 )
Delete docker.yml
Delete Dockerfile
update plugins version & remove replace (#2118 )
* update memory registry plugins version & remove replace
* update plugins version & remove replace
Co-authored-by: 申法宽 <shenfakuan@163.com >
update client/grpc plugins version & remove replace (#2119 )
* update memory registry plugins version & remove replace
* update plugins version & remove replace
* update plugins/client/grpc/v3 version
Co-authored-by: 申法宽 <shenfakuan@163.com >
update etcd version (#2120 )
update mod version
update
update pulgin registry mod version (#2121 )
* update etcd version
* update mod version
* update
fix store delete
support for tls on http plugin (#2126 )
improve code quality (#2128 )
* Fix inefficient string comparison
* Fix unnecessary calls to Printf
* Canonicalize header key
* Replace `t.Sub(time.Now())` with `time.Until`
* Remove unnecessary blank (_) identifier
* Remove unnecessary use of slice
* Remove unnecessary comparison with bool
Update README.md
Update README.md
remove network package
update quic go mod
remove indirects
update etcd mod version
Update registry plugins mod version (#2130 )
* update etcd version
* update mod version
* update
* update etcd mod version
Update README.md
Update README.md
Update README.md
fixing etcd stack in getToken (#2145 )
when provide username and password, etcd will try to get auth token from server
if server is unavailble, etcd client will stack in
when dial timeout is set, it will return err instead of stack in
Update README.md
add http demo; http client can call http server; http client can call rpc server (#2149 )
Add etcd to default registries when plugin is loaded (#2150 )
Co-authored-by: Andrew Jones <andrew@gotoblink.com >
Update README.md
make rpcClient compatible with 32bit arm systems (#2156 )
On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to
arrange for 64-bit alignment of 64-bit words accessed
atomically. Only the first word in an allocated struct can
be relied upon to be 64-bit aligned.
optimize the process of switching grpc error to micro error (#2158 )
Fix util/log/log.Infof format didn't work (#2160 )
Co-authored-by: Cui Gang <cuigang@yunpbx.com >
fixing string field contains invalid UTF-8 issue (#2164 )
fix k8s api memory leak (#2166 )
fix http No release Broker (#2167 )
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
fix: "Solve the problem that the resources have not been fully released due to early exit" (#2168 )
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
fix service default logger (#2171 )
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
Update README.md
get k8s pod (#2173 )
Update README.md
fix:field (#2176 )
* get k8s pod
* fix: filed
* field
Update README.md
add rmq message properties (#2177 )
Co-authored-by: dtitov <dtitov@might24.ru >
Update README.md
grpc server add RegisterCheck (#2178 )
fix 404 bug (#2179 )
fix undefined: err (#2181 )
Add registry and config/source plugins based on nacos/v2 (#2182 )
* Add registry plugins implement by nacos/v2
* Add config/source plugins implement by nacos/v2
support hystrix fallback (#2183 )
Windows event log plugin (#2180 )
* add rmq message properties
* eventlog start
* start eventlog
* windows event logger
* readme
* readme
Co-authored-by: dtitov <dtitov@might24.ru >
support etcd auth with env args (#2184 )
* support etcd auth with env args
set default registry address with env arg instead of 127.0.0.1
* fixing MICRO_REGISTRY_ADDRESS may empty issue
update mod version
2021-06-29 13:40:54 +01:00
Johnson C
212df8e6c3
support etcd auth with env args ( #2184 )
...
* support etcd auth with env args
set default registry address with env arg instead of 127.0.0.1
* fixing MICRO_REGISTRY_ADDRESS may empty issue
2021-06-23 07:45:01 +01:00
Dmitry Titov
8dc9bf49a1
Windows event log plugin ( #2180 )
...
* add rmq message properties
* eventlog start
* start eventlog
* windows event logger
* readme
* readme
Co-authored-by: dtitov <dtitov@might24.ru >
2021-06-20 09:28:30 +01:00
qm012
4daa499912
support hystrix fallback ( #2183 )
2021-06-20 09:28:15 +01:00
Yusan Kurban
939f346d83
Add registry and config/source plugins based on nacos/v2 ( #2182 )
...
* Add registry plugins implement by nacos/v2
* Add config/source plugins implement by nacos/v2
2021-06-18 14:23:03 +01:00
qm012
08216ccf31
fix undefined: err ( #2181 )
2021-06-17 11:11:38 +01:00
qm012
4deeaff8ad
fix 404 bug ( #2179 )
2021-06-16 07:56:41 +01:00
dudu
b892efa25f
grpc server add RegisterCheck ( #2178 )
2021-06-11 09:57:44 +01:00
Asim Aslam
4af9e245fb
Update README.md
2021-06-09 10:31:10 +01:00
Dmitry Titov
52bb3845f6
add rmq message properties ( #2177 )
...
Co-authored-by: dtitov <dtitov@might24.ru >
2021-06-08 10:34:47 +01:00
Asim Aslam
a1e9b88495
Update README.md
2021-06-04 10:17:30 +01:00
biubiubiu-ljd
ed44e9acc3
fix:field ( #2176 )
...
* get k8s pod
* fix: filed
* field
2021-06-03 07:01:26 +01:00
Asim Aslam
86d8d8f07e
Update README.md
2021-06-02 14:02:58 +01:00
biubiubiu-ljd
62112b015f
get k8s pod ( #2173 )
2021-06-02 13:54:02 +01:00
Asim Aslam
ca2014bf8e
Update README.md
2021-06-01 06:23:33 +01:00
JeffreyBool
acc3f5479f
fix service default logger ( #2171 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
2021-05-23 08:38:20 +01:00
JeffreyBool
f48911d2c3
fix: "Solve the problem that the resources have not been fully released due to early exit" ( #2168 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
2021-05-17 08:16:52 +01:00
JeffreyBool
4c1f81dadb
fix http No release Broker ( #2167 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
2021-05-13 13:07:25 +01:00
Tt yo
32cb1b435b
fix k8s api memory leak ( #2166 )
2021-05-11 08:58:19 +01:00
Johnson C
8c9c7a5927
fixing string field contains invalid UTF-8 issue ( #2164 )
2021-05-10 11:25:31 +01:00
Cui Gang
9e9157d878
Fix util/log/log.Infof format didn't work ( #2160 )
...
Co-authored-by: Cui Gang <cuigang@yunpbx.com >
2021-05-06 06:43:05 +01:00
Scout Wang
1b5d372b5b
optimize the process of switching grpc error to micro error ( #2158 )
2021-04-29 13:03:40 +01:00
Tobias Wellnitz
b11a2f17e9
make rpcClient compatible with 32bit arm systems ( #2156 )
...
On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to
arrange for 64-bit alignment of 64-bit words accessed
atomically. Only the first word in an allocated struct can
be relied upon to be 64-bit aligned.
2021-04-25 06:54:00 +01:00
Asim Aslam
a91d1f7a3d
Update README.md
Run tests / Test repo (push) Waiting to run
2021-04-16 17:34:42 +01:00
Andrew
0d57213d3f
Add etcd to default registries when plugin is loaded ( #2150 )
...
Co-authored-by: Andrew Jones <andrew@gotoblink.com >
2021-04-08 18:31:39 +01:00
orange-jacky
6ae252b892
add http demo; http client can call http server; http client can call rpc server ( #2149 )
2021-04-08 18:31:15 +01:00
Asim Aslam
e7a7e3a050
Update README.md
2021-04-03 08:39:40 +01:00
Johnson C
bed53b605f
fixing etcd stack in getToken ( #2145 )
...
when provide username and password, etcd will try to get auth token from server
if server is unavailble, etcd client will stack in
when dial timeout is set, it will return err instead of stack in
2021-04-01 09:55:21 +01:00
Asim Aslam
9b41d1bf08
Update README.md
2021-03-29 11:33:59 +01:00
Asim Aslam
0a41e6d80f
Update README.md
2021-03-17 09:37:20 +00:00
Asim Aslam
b636a4bfe3
Update README.md
2021-03-17 07:52:35 +00:00
Jerry
df90f2ca63
Update registry plugins mod version ( #2130 )
...
* update etcd version
* update mod version
* update
* update etcd mod version
2021-02-27 06:48:44 +00:00
Asim Aslam
0bf3719a9a
remove indirects
2021-02-26 08:34:03 +00:00
Asim Aslam
bfa9e7c88c
update quic go mod
2021-02-26 08:14:11 +00:00
Asim Aslam
57003414be
remove network package
2021-02-26 08:13:12 +00:00
Asim Aslam
a54f40baa7
Update README.md
2021-02-25 10:32:47 +00:00
Asim Aslam
56c779f9df
Update README.md
2021-02-25 10:31:55 +00:00
Shubhendra Singh Chauhan
26b859c4f9
improve code quality ( #2128 )
...
* Fix inefficient string comparison
* Fix unnecessary calls to Printf
* Canonicalize header key
* Replace `t.Sub(time.Now())` with `time.Until`
* Remove unnecessary blank (_) identifier
* Remove unnecessary use of slice
* Remove unnecessary comparison with bool
2021-02-25 08:30:35 +00:00
Alex Unger
0f0ace1a44
support for tls on http plugin ( #2126 )
2021-02-17 18:20:06 +00:00
Asim Aslam
f9f5e7422d
fix store delete
2021-02-10 07:14:49 +00:00
Jerry
2653e7a977
update pulgin registry mod version ( #2121 )
...
* update etcd version
* update mod version
* update
2021-02-08 08:56:39 +00:00
Jerry
55b477ba07
update etcd version ( #2120 )
2021-02-07 12:15:06 +00:00
isfk
6f666d63c8
update client/grpc plugins version & remove replace ( #2119 )
...
* update memory registry plugins version & remove replace
* update plugins version & remove replace
* update plugins/client/grpc/v3 version
Co-authored-by: 申法宽 <shenfakuan@163.com >
2021-02-05 09:50:42 +00:00
isfk
e8167a8b79
update plugins version & remove replace ( #2118 )
...
* update memory registry plugins version & remove replace
* update plugins version & remove replace
Co-authored-by: 申法宽 <shenfakuan@163.com >
2021-02-05 09:09:25 +00:00
Asim Aslam
0702501552
Delete Dockerfile
2021-02-02 14:58:31 +00:00
Asim Aslam
89fe31310e
Delete docker.yml
2021-02-02 14:58:19 +00:00
Josemy Duarte
ca3dfc4580
Remove missing gRPC example from README.md ( #2112 )
2021-01-30 18:13:56 +00:00
francescocarzaniga
bba3107ae1
Remove hpcloud/tail in favour of nxadm/tail ( #2109 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2021-01-25 07:51:17 +00:00
Asim Aslam
60010e82e2
update protoc-gen-micro
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2021-01-20 21:36:17 +00:00
Asim Aslam
ad94eeb635
Update README.md
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2021-01-20 21:30:26 +00:00
Asim Aslam
88be70a6af
Update README.md
2021-01-20 21:30:10 +00:00
Asim Aslam
226833c4ab
Update README.md
2021-01-20 21:29:36 +00:00
Asim Aslam
8e3b7a57d9
examples at v3
2021-01-20 21:28:48 +00:00
Asim Aslam
dc8236ec05
update v3 plugins ( #2105 )
2021-01-20 21:01:10 +00:00
Asim Aslam
d94936f6c9
v3 ( #2104 )
...
* v3
* revert plugins
* fixup some issues
2021-01-20 13:54:31 +00:00
Goober
bf4ab679e1
Fix zk watchDir ( #2102 )
...
Signed-off-by: Goober <chenhao86899@gmail.com >
2021-01-05 17:32:17 +00:00
Asim Aslam
20b5755788
move encoders out to plugins
2020-12-30 08:46:31 +00:00
Asim Aslam
f64ffdbab1
remove indirects in go mod
2020-12-30 08:26:26 +00:00
Asim Aslam
eb1e22bd10
strip grpc
2020-12-30 08:21:30 +00:00
Asim Aslam
18fb7a5d62
move certmagic
2020-12-29 20:12:10 +00:00
Asim Aslam
ee8b369a19
add initialisers
2020-12-29 16:50:18 +00:00
Asim Aslam
f4f6feafb3
remove etcd store
2020-12-29 16:32:06 +00:00
Asim Aslam
9ddfe696a4
go fmt
2020-12-29 16:29:58 +00:00
Asim Aslam
762fff8a51
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-29 16:28:21 +00:00
Asim Aslam
36bcd8317b
remove micro deps
2020-12-29 16:28:12 +00:00
Asim Aslam
10005db702
Rename default.go to noop.go
2020-12-29 16:24:31 +00:00
Asim Aslam
1b610403ba
go mod tidy
2020-12-29 15:50:14 +00:00
Asim Aslam
2fde8a76eb
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-29 15:49:33 +00:00
Asim Aslam
a7c31a0d2b
refactor all the things
2020-12-29 15:49:26 +00:00
Asim Aslam
35d72660c8
Update README.md
2020-12-26 15:42:10 +00:00
Asim Aslam
d197438e16
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-26 15:32:54 +00:00
Asim Aslam
7fc0b7ef72
add all the plugins
2020-12-26 15:32:45 +00:00
Asim Aslam
f44b832bac
Update README.md
2020-12-26 15:23:06 +00:00
Asim Aslam
5fe144bda8
Update README.md
2020-12-26 15:22:41 +00:00
Asim Aslam
df2dab0169
Update README.md
2020-12-26 15:22:14 +00:00
Asim Aslam
7ab46b0850
rename imports
2020-12-26 15:21:29 +00:00
Asim Aslam
c3fe6eb3ac
update readme
2020-12-26 15:18:11 +00:00
Asim Aslam
a34c70de0e
Add examples
2020-12-26 15:17:20 +00:00
Asim Aslam
273bab5dd7
update readme
2020-12-26 15:15:39 +00:00
Asim Aslam
f8fc9d0304
Add protoc-gen-micro
2020-12-26 15:13:09 +00:00
Hao
b5431de2e8
Use singleflight to prevent registry cache breakdown ( #2098 )
2020-12-21 14:34:59 +00:00
Asim Aslam
dc0cac9ba4
Update README.md
2020-12-18 18:45:14 +00:00
Asim Aslam
8628dc0fc4
Update FUNDING.yml
2020-12-13 08:18:02 +00:00
Asim Aslam
b57f56fb0b
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-12 20:51:40 +00:00
Asim Aslam
690169f6e5
remove k8s logs
2020-12-12 20:51:32 +00:00
Asim Aslam
a543157f50
Delete debug.go
2020-12-12 20:50:53 +00:00
Asim Aslam
15a62ae0b9
move debug handler
2020-12-12 20:50:36 +00:00
Asim Aslam
28afbf164f
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-12 20:44:45 +00:00
Asim Aslam
4ce77373c0
remove auth cruft
2020-12-12 20:44:32 +00:00
Asim Aslam
8de1ede0f0
Update network.go
2020-12-12 20:35:43 +00:00
Asim Aslam
8054478cc3
remove util/scope
2020-12-12 20:28:09 +00:00
Asim Aslam
167fcd0d78
fix wrapper test
2020-12-12 20:25:29 +00:00
Asim Aslam
206bf8cd0a
remove web
2020-12-12 20:15:59 +00:00
Asim Aslam
df687fe5d4
move selector
2020-12-12 20:14:50 +00:00
Asim Aslam
de4f3ee4a2
separate rules and auth
2020-12-12 20:08:39 +00:00
Asim Aslam
202338bd2d
update all the things to go 1.15
2020-12-12 19:51:18 +00:00
Asim Aslam
e2034b2438
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-12 19:39:14 +00:00
Asim Aslam
0ec2399a2c
fix command
2020-12-12 19:39:04 +00:00
Asim Aslam
df5f158cef
Delete .golangci.yml
2020-12-12 19:09:48 +00:00
Asim Aslam
19ac4fbcaf
move rules
2020-12-12 19:08:36 +00:00
Asim Aslam
d07de3751e
remove auth provider
2020-12-12 19:06:43 +00:00
Asim Aslam
4977aca09c
move router
2020-12-12 19:04:19 +00:00
Asim Aslam
43ff2a540d
move proxy
2020-12-12 19:02:04 +00:00
Asim Aslam
35c59042bf
refactor network
2020-12-12 18:59:40 +00:00
Asim Aslam
f8f84b42ac
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-11 21:42:43 +00:00
Asim Aslam
1dc9b40b90
move network/tunnel
2020-12-11 21:42:31 +00:00
Asim Aslam
345845ec16
Delete CNAME
2020-12-11 11:22:37 +00:00
Asim Aslam
dbe8c93e20
remove service implementations ( #2094 )
2020-12-11 11:12:44 +00:00
Asim Aslam
4d481b0363
Update README.md
2020-12-09 21:52:18 +00:00
Asim Aslam
88d954cf97
Update README.md
2020-12-09 18:35:07 +00:00
Asim Aslam
71883f1b04
Update tests.yml
2020-12-09 18:19:37 +00:00
Asim Aslam
bfc212f7ed
remove service package
2020-12-09 18:11:10 +00:00
Asim Aslam
43f80b1b0d
Delete build-micro.sh
2020-12-09 18:09:02 +00:00
Asim Aslam
f83d64d092
Delete build-all-examples.sh
2020-12-09 18:08:55 +00:00
Asim Aslam
e67b9f0cc1
Delete micro-main.yml
2020-12-09 18:08:39 +00:00
Asim Aslam
134c5f0e41
Delete micro-examples.yml
2020-12-09 18:08:26 +00:00
Asim Aslam
e761aa1940
move cmd
2020-12-09 18:07:01 +00:00
Asim Aslam
8c8380dcd4
delete agent package
2020-12-09 18:03:00 +00:00
Asim Aslam
dd5eca2561
Update README.md
2020-12-09 17:05:05 +00:00
Dominic Wong
94bd1025a6
push tags to docker hub ( #1766 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-07-03 11:30:59 +01:00
Dominic Wong
7be4a67673
MDNS registry fix for users on VPNs ( #1759 )
...
* filter out unsolicited responses
* send to local ip in case
* allow ip func to be passed in. add option for sending to 0.0.0.0
2020-07-03 11:30:59 +01:00
Di Wu
3e6ac73cfe
Fix invalid usage for sync.WaitGroup ( #1752 )
...
* Custom private blocks
* Fix invalid usage for sync.WaitGroup
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-07-03 11:30:59 +01:00
Colin Hoglund
aef6878ee0
config: use configured reader by default ( #1717 )
2020-07-03 11:30:59 +01:00
sunfuze
81aa8e0231
Fix config watch ( #1670 )
...
* add dirty overrite test case
* need version to figure out if config need update or not
* using nanosecond as version for two goroutine can run in same second
* config should check snapshot version when update
* set checksum of ChangeSet
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-07-03 11:30:59 +01:00
Di Wu
c28f625cd4
Custom private blocks ( #1705 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-07-03 11:30:59 +01:00
Dmitry Kozlov
5b161b88f7
Split long discord output message into the chunks by 2000 characters ( #1704 )
...
Signed-off-by: Dmitry Kozlov <dmitry.f.kozlov@gmail.com >
2020-07-03 11:30:59 +01:00
ben-toogood
cca8826a1f
registry/mdns: fix nil host bug ( #1703 )
2020-07-03 11:30:59 +01:00
Dominic Wong
0327f30e3c
Fix regex detection. Fixes #1663 ( #1696 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-06-12 10:42:52 +01:00
Dominic Wong
0ce132eb8f
Fix race condition when updating process being waited on ( #1694 )
2020-06-12 10:42:52 +01:00
Janos Dobronszki
00b76e0a64
Initialize selector before we make an auth.Generate call ( #1693 )
2020-06-12 10:42:52 +01:00
Dominic Wong
aec27be9b4
Fix race when opening DB for first time ( #1691 )
2020-06-12 10:42:52 +01:00
Dominic Wong
86dfcb819b
Ignore "no such process" error ( #1686 )
...
* Cleanup how status is updated for service. Ignore "no such process" error as it could be that the pid died
* add nice error log to record process error exit
2020-06-12 10:42:52 +01:00
Janos Dobronszki
d613804b0a
Sigterm instead of Sigkill ( #1687 )
...
Co-authored-by: Dominic Wong <domwongemail@googlemail.com >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-06-12 10:42:52 +01:00
Vasiliy Tolstov
92e9d05432
api/handler/rpc: dont log error on normal websocket error code ( #1688 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-06-12 10:42:52 +01:00
ben-toogood
8dfd93e915
util/wrapper: Add Static Client wrapper ( #1685 )
...
* util/wrapper: Add Static Client wrapper
* util/wrapper/static: pass address to stream too
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add static client wrapper tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: fix error message spaces between words
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/{rpc,grpc}: replace log.Error with log.Errorf
* server/grpc: fix log typo
* server/rpc: fix log typo
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-06-12 10:42:52 +01:00
Dominic Wong
e5136332e3
Add build and test of micro to pre-release testing ( #1684 )
...
* fix up example test build
* build and test micro when cutting a new release
2020-06-12 10:42:52 +01:00
Dominic Wong
f10fd4b479
Build all micro/examples for release-X.X.X branches ( #1683 )
...
* Build all the examples on push to any release branch
2020-06-12 10:42:52 +01:00
ben-toogood
74368026a5
Fix incorrect namespace variable name (merge conflict) ( #1677 )
2020-06-12 10:42:52 +01:00
ben-toogood
fde1aa9d6a
Move auth account creation to config/cmd ( #1676 )
2020-06-12 10:42:52 +01:00
ben-toogood
f45cdba9ba
Apply wrappers to gRPC streams ( #1675 )
...
* Add wrappers to grpc streams
* Fix typo
2020-06-12 10:42:52 +01:00
Asim Aslam
b270860b79
Update README.md ( #1695 )
2020-06-10 10:22:53 +01:00
Asim Aslam
e7ba930236
Update FUNDING.yml ( #1692 )
2020-06-08 18:12:19 +01:00
Dominic Wong
aa679f7a73
Create PULL_REQUEST_TEMPLATE.md
2020-06-03 10:32:28 +01:00
Asim Aslam
7b379bf1f1
WIP: Add metadata to store record ( #1604 )
...
* Add metadata to store record
* Add metadata to cockroach store
* add metadata to store service implementation
* fix breaking cache test
* Test/fix cockroach metadata usage
* fix store memory metadata bug
2020-06-03 09:45:08 +01:00
Dominic Wong
e4e56b0f3f
Merge pull request #1671 from sadwxqezc/fix-jwt
...
Fix jwt revoke
2020-06-02 09:27:14 +01:00
huanghuan.27@bytedance.com
219d29f664
fix jwt revoke
2020-06-02 10:26:33 +08:00
Asim Aslam
8fb138af06
Update README.md
2020-05-31 11:56:55 +01:00
Asim Aslam
a39e6515da
Update README.md
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-05-31 11:35:09 +01:00
Asim Aslam
2c7fd286de
Update README.md
2020-05-31 11:34:49 +01:00
Asim Aslam
8aa2712b4d
Delete README.zh-cn.md
2020-05-31 11:33:31 +01:00
Asim Aslam
b5c2121cef
Update README.md
2020-05-31 11:31:41 +01:00
Asim Aslam
ca9b877646
Update README.md
2020-05-31 11:28:32 +01:00
Asim Aslam
ff49b4fc71
Update README.md
2020-05-31 11:27:54 +01:00
Asim Aslam
222431b57a
Update README.md
2020-05-31 11:26:46 +01:00
Asim Aslam
ddb51529a7
Update README.md
2020-05-31 11:26:18 +01:00
Asim Aslam
7c048f331a
Update README.md
2020-05-31 11:21:55 +01:00
Asim Aslam
8475183bbb
Update README.md
2020-05-31 11:19:26 +01:00
Asim Aslam
10f35db3ed
Update README.md
2020-05-31 11:16:20 +01:00
Asim Aslam
b68af8ab63
run go fmt
2020-05-30 11:00:43 +01:00
Asim Aslam
266602a3d6
Update README.md
2020-05-30 10:59:59 +01:00
mlboy
15d5142d9b
fix: misspell ( #1667 )
2020-05-29 17:49:22 +01:00
Máximo Cuadros
0d88650511
go modules cleanup and remove wrong self import to v1 ( #1658 )
...
* Runtime local git, simply go-git code
* go modules cleanup and remove wrong self import to v1
* pin mergo v0.3.8 to avoid panics
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com >
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-29 14:32:11 +03:00
Dominic Wong
8660370dc9
Merge pull request #1657 from xpunch/master
...
logger caller not trim in windows
2020-05-29 10:35:03 +01:00
Dominic Wong
73339dde85
Merge branch 'master' into master
2020-05-29 10:27:20 +01:00
Dominic Wong
3f354f3c30
Merge pull request #1661 from micro/bugfix/sock_pool_threads
...
fix locking of socket pool
2020-05-28 08:31:47 +01:00
potato
c08eb5f892
Merge branch 'master' into master
2020-05-28 10:19:53 +08:00
Dominic Wong
27e41c4ad5
fix locking of socket pool
2020-05-27 20:18:26 +01:00
Dominic Wong
1da8a640da
Merge pull request #1660 from micro/bugfix/mdns_nil_host
...
Check ipv4 or ipv6 address is valid before assigning
2020-05-27 15:53:27 +01:00
Dominic Wong
e7ad031eb8
Check ipv4 or ipv6 address is valid before assigning
2020-05-27 15:47:12 +01:00
ben-toogood
192f548c83
Merge pull request #1659 from micro/config-srv-not-found
...
Handle config service not found errors
2020-05-27 12:24:33 +01:00
Ben Toogood
d85b4197b4
Return nil changeset and not blank
2020-05-27 12:20:31 +01:00
Ben Toogood
bb5f2e5525
Handle config service not found errors
2020-05-27 12:12:34 +01:00
ben-toogood
f00b696282
Merge pull request #1654 from micro/auth-scopes
...
Auth Improvements
2020-05-27 10:52:07 +01:00
Ben Toogood
e2d662608c
Fix tests
2020-05-27 09:14:16 +01:00
Ben Toogood
9e9773c9c7
Only use namespace for cache key
2020-05-27 09:07:59 +01:00
potato
2f8e2487f7
Merge branch 'master' into master
2020-05-27 09:32:27 +08:00
Ben Toogood
d6c1fbf841
Fix web service auth name
2020-05-26 17:43:45 +01:00
Ben Toogood
c3b404bab0
Fix server calling across namespace
2020-05-26 17:35:06 +01:00
Ben Toogood
cd283654eb
Cache Rules
2020-05-26 15:53:28 +01:00
Ben Toogood
5712cc9c62
Merge master
2020-05-26 15:52:21 +01:00
ben-toogood
be5a10a4d4
Merge pull request #1656 from micro/client-cache
...
Client Cache
2020-05-26 15:38:30 +01:00
Ben Toogood
b53a2c67f1
Merge branch 'master' of https://github.com/micro/go-micro into auth-scopes
2020-05-26 15:37:31 +01:00
johnson
cc79692d68
make caller filepath package/file style
...
this code is from zap
https://github.com/uber-go/zap/blob/9a9fa7d4b5f07a9b634983678a65b5525f81e58b/zapcore/entry.go#L101
2020-05-26 14:33:56 +08:00
potato
796a598b37
Merge pull request #7 from micro/master
...
go micro v2
2020-05-26 14:18:25 +08:00
Ben Toogood
73b4423682
Merge branch 'master' of https://github.com/micro/go-micro into client-cache
2020-05-24 20:36:22 +01:00
Ben Toogood
198e942889
Remove redundant test
2020-05-24 20:32:22 +01:00
Ben Toogood
95703e4565
Fixes and improved test coverage
2020-05-24 20:26:37 +01:00
Ben Toogood
2729569f66
Add Debug.Cache method
2020-05-24 18:45:57 +01:00
Ben Toogood
67146ecdc2
Client Cache tests
2020-05-24 18:05:23 +01:00
Asim Aslam
bd049a51e6
Update README.md
2020-05-23 16:47:23 +01:00
Asim Aslam
ffd89599a0
Update README.md
2020-05-23 16:46:50 +01:00
Ben Toogood
496293afa1
Use hash/fnv, add tests, fix request bug
2020-05-23 11:34:44 +01:00
Ben Toogood
7d7f4046e8
Client Cache
2020-05-22 16:52:24 +01:00
Ben Toogood
c800070477
Check for error before loading rules
2020-05-22 14:03:12 +01:00
Ben Toogood
877fe5fb0a
Update web wildcard to enable /foo/bar/baz/* to verify /foo/bar/baz
2020-05-22 14:02:02 +01:00
Ben Toogood
dad011cab4
Fix noop issuer bug
2020-05-22 12:40:34 +01:00
Ben Toogood
f939200b34
Improve service auth log
2020-05-22 12:24:37 +01:00
Ben Toogood
9c072a372c
Add auth scope constants
2020-05-22 11:37:12 +01:00
Ben Toogood
fbb91c6cb7
Auth wrapper tests
2020-05-22 10:44:18 +01:00
Ben Toogood
b2cf501952
Auth Rules tests & bug fixes
2020-05-22 09:31:15 +01:00
Ben Toogood
1fce0f02b6
Verify Namespace
2020-05-21 18:11:35 +01:00
Ben Toogood
12061bd006
Add account issuers
2020-05-21 16:41:55 +01:00
Ben Toogood
856c73b341
Remove roles (replaced with scope)
2020-05-21 14:56:17 +01:00
Ben Toogood
4de19805ba
Remove redundant test
2020-05-21 12:33:58 +01:00
Ben Toogood
c09b871a6b
Merge branch 'master' of https://github.com/micro/go-micro into auth-scopes
2020-05-21 12:32:52 +01:00
Ben Toogood
e876cb917d
auth/service support for micro clients (rules from mutltiple namespaces
2020-05-21 12:25:47 +01:00
Ben Toogood
8f5ef012ff
Update Rules.Delete proto
2020-05-21 12:07:22 +01:00
Ben Toogood
287992cef3
Fix service => service namespace bug
2020-05-21 11:35:07 +01:00
Ben Toogood
344ce061ce
Verify Options
2020-05-20 16:49:52 +01:00
Ben Toogood
5d14970a55
Fix nil account bug
2020-05-20 16:11:34 +01:00
Janos Dobronszki
0615fe825f
Auth invalid token fix ( #1650 )
2020-05-20 16:18:05 +02:00
Asim Aslam
6a661fd08c
check if the db conn is nil before doing anything ( #1652 )
2020-05-20 14:03:38 +01:00
Ben Toogood
f6d9416a9e
Add Rule to Auth interface
2020-05-20 11:59:01 +01:00
Asim Aslam
a29676b86a
Registration Retry / Interval ( #1651 )
...
* Change the default ttl to 90 seconds
* add retries to registration
* Add retry to web register
2020-05-20 11:49:09 +01:00
Ben Toogood
dc10f88c12
Replace auth account.Namespace with account.Scopes
2020-05-19 18:17:17 +01:00
ben-toogood
e61edf6280
Merge pull request #1645 from micro/runtime-multitenancy
...
Runtime multi-tenancy
2020-05-19 17:06:11 +01:00
ben-toogood
3410a0949b
Merge branch 'master' into runtime-multitenancy
2020-05-19 17:00:51 +01:00
Jake Sanders
9216a47724
fix client race ( #1647 )
2020-05-19 14:44:46 +01:00
ben-toogood
cf37d64819
Merge branch 'master' into runtime-multitenancy
2020-05-19 13:24:35 +01:00
Patrik Lindahl
f0c0f3d4c4
Fixes for #1560 ( #1644 )
...
close #1560
This fixes one of the reported data races and also allows for
having a different name on the micro.Service and web.Service.
This makes it possible to discover the two service variants separately.
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-19 14:11:26 +03:00
Ben Toogood
c4e3f8c336
Merge branch 'master' of https://github.com/micro/go-micro into runtime-multitenancy
2020-05-19 11:02:40 +01:00
Ben Toogood
8875719619
Default Runtime multi-tenancy
2020-05-19 11:01:06 +01:00
Ben Toogood
c19b349e96
Update runtime.Event struct
2020-05-19 10:14:07 +01:00
Ben Toogood
14155c7e02
Add runtime ErrNotFound
2020-05-19 09:28:00 +01:00
Maarten Bezemer
3d36398818
Fix client RPC stream close mutex ( #1643 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-05-18 17:22:33 +01:00
Asim Aslam
56a7897c91
update readme
2020-05-17 12:39:20 +01:00
ben-toogood
5efb386224
Merge pull request #1640 from micro/auth/public-rule
...
Auth: setup a public rule
2020-05-15 10:28:52 +01:00
Ben Toogood
4d2de923cd
Auth: setup a public rule
2020-05-15 10:24:30 +01:00
ben-toogood
f64b1468a5
Merge pull request #1639 from micro/registy-not-found
...
Registry service: return not found error
2020-05-14 19:43:19 +01:00
ben-toogood
56f281002b
Merge branch 'master' into registy-not-found
2020-05-14 19:39:43 +01:00
Ben Toogood
0d7250352f
Registry service: return not found error
2020-05-14 19:38:56 +01:00
ben-toogood
ef43f01da4
Merge pull request #1638 from micro/registry-addrs-fix
...
Fix registry address option unused
2020-05-14 18:07:14 +01:00
ben-toogood
c9e5ae6a2b
Merge branch 'master' into registry-addrs-fix
2020-05-14 18:03:46 +01:00
Ben Toogood
8a802d8f7a
Fix registry address option unused
2020-05-14 18:00:13 +01:00
ben-toogood
331ab3715c
Merge pull request #1636 from micro/auth-util
...
Refactor auth setup to util/auth
2020-05-14 16:15:47 +01:00
Ben Toogood
6b451a2197
Refactor auth setup to util/auth
2020-05-14 16:10:14 +01:00
ben-toogood
b4c0224746
Merge pull request #1635 from micro/auth-fixes
...
Auth: Move token generation logic out the client wrappers
2020-05-14 14:00:55 +01:00
Ben Toogood
500d793fc4
Merge branch 'auth-fixes' of https://github.com/micro/go-micro into auth-fixes
2020-05-14 13:57:00 +01:00
Ben Toogood
16af265e8b
Seperate JWT refresh / access tokens
2020-05-14 13:56:51 +01:00
ben-toogood
b222cf8e13
Merge branch 'master' into auth-fixes
2020-05-14 13:47:26 +01:00
Ben Toogood
f549e20fa2
tidy go mdo
2020-05-14 13:33:11 +01:00
Ben Toogood
83e9c1fad2
Remove unnecessary change
2020-05-14 13:32:42 +01:00
Ben Toogood
c220686c29
Fix token bug
2020-05-14 13:30:21 +01:00
Ben Toogood
1b18730d54
Custom micro client
2020-05-14 11:25:19 +01:00
Ben Toogood
5764519f5b
Refactor auth to load token outside wrappers
2020-05-14 11:06:22 +01:00
ben-toogood
957001f8ad
Merge pull request #1634 from micro/disable-clients
...
Disable Clients
2020-05-13 18:54:34 +01:00
Ben Toogood
0955671e45
Merge branch 'disable-clients' of https://github.com/micro/go-micro into disable-clients
2020-05-13 18:49:47 +01:00
Ben Toogood
57b060bac5
Disable Addresses
2020-05-13 18:49:36 +01:00
ben-toogood
3136e1409e
Merge branch 'master' into disable-clients
2020-05-13 18:48:24 +01:00
Ben Toogood
ca791d7e8d
Disable Clients
2020-05-13 18:47:53 +01:00
Dominic Wong
05858b746c
kill all processes correctly for micro kill command ( #1633 )
2020-05-13 18:36:45 +01:00
ben-toogood
09d1450d7d
Merge pull request #1632 from micro/fix-auth-bug
...
Auth: Fix recursive bug
2020-05-13 18:18:39 +01:00
Ben Toogood
1ca1fd411a
Auth: Fix recursive bug
2020-05-13 18:17:04 +01:00
ben-toogood
a2d4d62f1c
Merge pull request #1631 from micro/auth-address
...
Auth: Set address
2020-05-13 18:02:10 +01:00
Ben Toogood
8ab20f501c
Fix merge conflicts
2020-05-13 17:58:03 +01:00
Ben Toogood
366fb228e5
Auth: Set address
2020-05-13 17:54:47 +01:00
Asim Aslam
bba8c254d7
fix auth initialisation ( #1630 )
2020-05-13 17:35:57 +01:00
ben-toogood
ebd53794af
Merge pull request #1629 from micro/auth/rules-fix
...
Auth: Load rules if not present
2020-05-13 17:27:53 +01:00
Ben Toogood
2299244332
Auth: Load rules if not present
2020-05-13 17:07:46 +01:00
ben-toogood
cf61d98635
Merge pull request #1628 from micro/registry
...
Misc Muti-Tenancy / Auth Fixes
2020-05-13 16:53:39 +01:00
ben-toogood
15d1967aaf
Merge branch 'master' into registry
2020-05-13 16:50:12 +01:00
Ben Toogood
410fec8ee4
Fix auth bug
2020-05-13 16:49:17 +01:00
Ben Toogood
c831b6c03a
Fix
2020-05-13 16:35:57 +01:00
Asim Aslam
290595f88e
Strip down router code ( #1627 )
2020-05-13 16:13:36 +01:00
ben-toogood
ba64518ebd
Merge pull request #1626 from PieterVoorwinden/master
...
Check if auth is nil to prevent nilpointer
2020-05-13 15:18:58 +01:00
Pieter Voorwinden
b14d63b4a1
Check if auth is nil to prevent nilpointer
2020-05-13 16:13:23 +02:00
x1nchen
af2db0a0d9
fix: update dependency certmagic ( #1625 )
...
module github.com/mholt/certmagic has been renamed github.com/caddyserver/certmagic,
so upgrade on this module will fail.
fix : micro/micro#835
caddyserver/certmagic@v0.10 .6 is Maximum upgradeable version with go version 1.13
Higher version use *tls.ClientHelloInfo.SupportsCertificate which only supported in go 1.14
2020-05-13 15:00:13 +01:00
ben-toogood
fb255a7e5a
Merge pull request #1622 from micro/registry-multi-tenancy
...
Registry mutli-tenancy
2020-05-13 13:54:39 +01:00
Ben Toogood
47c1cb433e
Store account credentials
2020-05-13 13:48:25 +01:00
Ben Toogood
3fac7d79ab
Remove service type role
2020-05-13 13:42:56 +01:00
Ben Toogood
25c937fd0e
Naming changes
2020-05-13 13:38:13 +01:00
Ben Toogood
e5c1fbc591
Merge branch 'master' of https://github.com/micro/go-micro into registry-multi-tenancy
2020-05-13 13:35:47 +01:00
Ben Toogood
d781c9ae2d
Remove namespace specific logic
2020-05-13 13:35:34 +01:00
Ben Toogood
54951740bf
Authenticate on service start
2020-05-13 13:13:11 +01:00
Janos Dobronszki
0fb4734e67
Upload local source code to micro server ( #1613 )
2020-05-13 12:07:53 +02:00
Ben Toogood
346e034d0a
Add mutli-tenancy support to the registry
2020-05-13 10:40:08 +01:00
Asim Aslam
116cc1e9ee
Stop parsing proxy address ( #1619 )
2020-05-12 17:38:22 +01:00
ben-toogood
762a5bc9e8
Merge pull request #1618 from micro/auth-namespace-flag
...
Auth Namespace Flag
2020-05-12 16:45:42 +01:00
Ben Toogood
d39b723511
Auth Namespace Flag
2020-05-12 16:41:29 +01:00
ben-toogood
5494e935f4
Merge pull request #1617 from micro/k8s/secret-type
...
K8s: Add Secret Type to yaml template
2020-05-12 14:21:30 +01:00
Ben Toogood
e0863bb7eb
K8s: Add Secret Type to yaml template
2020-05-12 14:10:39 +01:00
ben-toogood
89f86167ad
Merge pull request #1616 from micro/k8s/secret-template-fix
...
Fix k8s secret template (yaml)
2020-05-12 11:45:12 +01:00
ben-toogood
dfec1ad6b1
Merge branch 'master' into k8s/secret-template-fix
2020-05-12 11:41:41 +01:00
Ben Toogood
66d3e4a595
Fix k8s secret template (yaml)
2020-05-12 11:40:54 +01:00
Asim Aslam
19a03babc4
Update server.go
2020-05-12 11:32:01 +01:00
ben-toogood
ee24b4f083
Merge pull request #1615 from micro/disable-auth-client
...
Disable auth service client
2020-05-11 20:38:49 +01:00
Ben Toogood
937ecc8d2f
Disable auth service client
2020-05-11 20:38:05 +01:00
ben-toogood
6078adb8bc
Merge pull request #1614 from micro/runtime-clients
...
Runtime Options: Replace client.DefaultClient
2020-05-11 20:05:00 +01:00
ben-toogood
39f18b0b70
Merge branch 'master' into runtime-clients
2020-05-11 18:03:11 +01:00
Ben Toogood
efb64b7dbb
Pass client to more of the runtime
2020-05-11 17:57:39 +01:00
Ben Toogood
f892b41299
Add runtime to service.Options()
2020-05-11 17:09:28 +01:00
Janos Dobronszki
1eb63635b5
Adding file upload and download capabilities ( #1610 )
2020-05-11 14:08:27 +02:00
ben-toogood
688228377b
Merge pull request #1612 from micro/auth-options
...
Auth: pass options in service RPC
2020-05-11 11:53:38 +01:00
Ben Toogood
506006f0fa
Auth Options
2020-05-11 11:47:59 +01:00
ben-toogood
22de001a80
Merge pull request #1611 from micro/auth-has-role
...
Auth account.HasRole
2020-05-11 11:40:20 +01:00
ben-toogood
d90cc8bf2f
Merge branch 'master' into auth-has-role
2020-05-11 11:36:06 +01:00
Ben Toogood
5a8f19589b
Auth account.HasRole
2020-05-11 11:34:22 +01:00
gggwvg
d61df6363b
web: fix advertise address ( #1608 )
...
* web: fix advertise address
* web: fix test
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
Co-authored-by: Asim Aslam <asim@aslam.me >
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-08 12:31:03 +03:00
ben-toogood
f062013a7b
Merge pull request #1607 from micro/k8s-debug
...
Log k8s Requests
2020-05-07 11:41:43 +01:00
Ben Toogood
fea93a5b7a
Log k8s Requests
2020-05-07 11:35:56 +01:00
fztcjjl
30dc29e17f
fix ring buffer ( #1606 )
2020-05-07 10:45:48 +01:00
ben-toogood
5387f73b5d
Handle cockroach createDB error ( #1603 )
2020-05-06 10:58:14 +01:00
Vasiliy Tolstov
90dd1f63c8
api/handler/rpc: fix encoding of inner message ( #1601 )
...
* api/handler/rpc: fix encoding of inner message
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-04 15:50:53 +03:00
Asim Aslam
38cdb9cc2f
Set table name in store
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-05-01 18:24:35 +01:00
Asim Aslam
b3915b6020
Add store to options ( #1600 )
2020-05-01 18:05:09 +01:00
Asim Aslam
08a2de1ef5
Account for missing options database/table in cockroach store
2020-05-01 15:31:55 +01:00
Asim Aslam
7a2dea6cc2
Set database/table from init first
2020-05-01 15:22:44 +01:00
Asim Aslam
2a14feed93
force codec on call not on dial ( #1599 )
2020-05-01 14:59:50 +01:00
Asim Aslam
e8105d22ad
cruft
2020-05-01 00:25:17 +01:00
Asim Aslam
c76a5e608d
sql fixes
2020-04-30 23:53:54 +01:00
Asim Aslam
359b8bc503
Add opts to service proto ( #1517 )
...
* Add opts to service proto
* Support database/table opts
2020-04-30 22:51:25 +01:00
Janos Dobronszki
fccab8ad27
Runtime name should be base folder outside repos ( #1598 )
2020-04-30 18:20:51 +02:00
Socket
46d09ec2bc
unsubscribe can async ( #1596 )
...
Co-authored-by: huangshaojie <huangshaojie@corp.netease.com >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-04-30 10:42:13 +01:00
Asim Aslam
7792dbc34d
Update FUNDING.yml
2020-04-29 18:45:55 +01:00
ben-toogood
1d29f126f9
Merge pull request #1595 from micro/auth-client-wrapper
...
Auth Client Wrapper
2020-04-29 15:43:30 +01:00
Ben Toogood
bcddb98867
Fix Tests
2020-04-29 15:37:02 +01:00
Ben Toogood
f48dec1fb0
Use Server ID in account name
2020-04-29 15:27:18 +01:00
Ben Toogood
ef9f65c78b
Improve Comments
2020-04-29 15:15:38 +01:00
Ben Toogood
99f8be5b3d
Auth Client Wrapper
2020-04-29 15:11:06 +01:00
ben-toogood
9d2fdb84be
Merge pull request #1592 from micro/jwt-auth
...
JWT auth implementation
2020-04-29 14:10:05 +01:00
ben-toogood
8b004feb9a
Merge branch 'master' into jwt-auth
2020-04-29 13:33:47 +01:00
Ben Toogood
70736e24c0
Set RefreshToken
2020-04-29 13:33:22 +01:00
Vasiliy Tolstov
d44adafca5
api/router: avoid unneeded loops and fix path match ( #1594 )
...
* api/router: avoid unneeded loops and fix path match
* if match found in google api path syntax, not try pcre loop
* if path is not ending via $ sign, append it to pcre to avoid matching other strings like
/api/account/register can be matched to /api/account
* api: add tests and validations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-29 15:23:10 +03:00
ben-toogood
e57b20c1f8
Merge branch 'master' into jwt-auth
2020-04-29 13:22:09 +01:00
Ben Toogood
94971aee77
Complete JWT implementation
2020-04-29 13:21:51 +01:00
Ben Toogood
0ed66d0664
Fix Typo
2020-04-29 09:38:39 +01:00
Ben Toogood
7e27c97c6c
Remove Comment
2020-04-29 09:22:15 +01:00
Ben Toogood
669364985e
JWT auth implementation
2020-04-29 09:21:17 +01:00
Asim Aslam
c7440274dd
touch
2020-04-28 19:35:13 +01:00
Asim Aslam
8ccbf53dfc
secret cookie unused
2020-04-28 18:12:07 +01:00
Asim Aslam
f908110fb6
swap out context access for account ( #1589 )
2020-04-28 17:35:18 +01:00
Vasiliy Tolstov
9bb1904a38
broker: add publish context ( #1590 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-28 19:29:00 +03:00
Vasiliy Tolstov
06220ab8c8
client: add context publish option ( #1588 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-28 19:03:37 +03:00
Janos Dobronszki
da66561d1e
Fixing too large offsets for default runtime logs ( #1587 )
2020-04-28 13:42:15 +01:00
Dmitry Kozlov
52861310b0
fix HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0} ( #1586 )
...
fix file=bot.go:426 level=error service=bot error starting bot HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0}
see https://github.com/bwmarrin/discordgo#usage
2020-04-28 13:06:01 +01:00
Vasiliy Tolstov
414b2ec5f8
web: fix deadlock ( #1585 )
...
* web: fix deadlock
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add web tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-28 12:23:52 +01:00
Janos Dobronszki
b875868a39
Don't ignore errors from checkout source code ( #1584 )
...
Don't check out code for builtin services.
2020-04-28 10:51:39 +02:00
Janos Dobronszki
8148e0a0f8
Micro log fixes ( #1570 )
2020-04-28 09:49:39 +02:00
ben-toogood
25c82245b1
Merge pull request #1582 from micro/k8s-srv-accounts
...
Runtime: Add Kubernetes ServiceAccounts & Remove imagePullSecrets
2020-04-27 15:24:16 +01:00
ben-toogood
95a7e21f5f
Merge branch 'master' into k8s-srv-accounts
2020-04-27 15:08:24 +01:00
Asim Aslam
83ab47333f
rename Codec to Secrets ( #1581 )
2020-04-27 14:57:57 +01:00
Ben Toogood
8d7d6ef358
Add k8s secrets
2020-04-27 14:37:28 +01:00
Ben Toogood
494e0b5060
Runtime: Add Kubernetes ServiceAccounts & Remove imagePullSecrets
2020-04-27 14:13:51 +01:00
Janos Dobronszki
434997e676
Display only logging file name as opposed to path in logs ( #1580 )
2020-04-27 09:55:50 +01:00
Janos Dobronszki
ec44b67e9f
Fixing log file path in logs ( #1578 )
2020-04-27 09:36:09 +01:00
Vasiliy Tolstov
e0c9234c0e
web: use default logger ( #1577 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-27 00:03:05 +03:00
Vasiliy Tolstov
980b772801
fix races in web and logger ( #1576 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-26 17:41:36 +03:00
Vasiliy Tolstov
a22da39e1c
logger: add caller info to default implementation ( #1575 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-26 17:11:53 +03:00
徐旭
7253635cd3
delete invalid copy ( #1573 )
...
* prealloc
* delete invalid copy
2020-04-26 12:44:59 +01:00
Asim Aslam
0a030f3d8a
strip unused list endpoint
2020-04-24 18:05:38 +01:00
Asim Aslam
edee3b6765
Add proxy env test ( #1569 )
2020-04-24 11:26:46 +01:00
Asim Aslam
d62ae23a9c
Strip label
2020-04-23 20:20:48 +01:00
Asim Aslam
c68226e9b0
only do namespace check if not default
2020-04-23 19:19:13 +01:00
ben-toogood
041d68b1ce
Merge pull request #1566 from micro/image-pull-secret-fix
...
Fix Runtime Namespace List
2020-04-23 18:16:38 +01:00
ben-toogood
85a8f36565
Merge branch 'master' into image-pull-secret-fix
2020-04-23 18:15:04 +01:00
Ben Toogood
f34d58cfbd
Remove Debug
2020-04-23 18:14:06 +01:00
Asim Aslam
e0a651bfc3
set namespace on create
2020-04-23 18:10:13 +01:00
Ben Toogood
cd35f503a0
Remove hardcoded labels
2020-04-23 18:08:02 +01:00
Ben Toogood
8b3d223fc0
Remove hardcoded labels:
2020-04-23 18:05:58 +01:00
Ben Toogood
bb25bd94c8
Log k8s requests
2020-04-23 17:56:00 +01:00
ben-toogood
986e3d3c35
Merge pull request #1565 from micro/image-pull-secret-fix
...
Runtime: Fix ImagePullSecret
2020-04-23 17:53:09 +01:00
Ben Toogood
616db3442a
Debugging
2020-04-23 17:44:40 +01:00
Ben Toogood
5fe3c0bfe5
Merge branch 'image-pull-secret-fix' of https://github.com/micro/go-micro into image-pull-secret-fix
2020-04-23 17:37:33 +01:00
Ben Toogood
8849b85a7f
Merge branch 'master' of https://github.com/micro/go-micro into image-pull-secret-fix
2020-04-23 17:37:15 +01:00
ben-toogood
893bbafa03
Merge branch 'master' into image-pull-secret-fix
2020-04-23 17:28:06 +01:00
Ben Toogood
4c05623a3c
Image pull secret fix
2020-04-23 17:26:59 +01:00
Asim Aslam
ec929b3d2f
log error and ensure we pass through namespace
2020-04-23 17:14:30 +01:00
Asim Aslam
2299559397
Check for namespace ( #1564 )
2020-04-23 16:22:41 +01:00
ben-toogood
6be53536d3
Merge pull request #1562 from micro/git-secrets
...
Runtime - Image Pull Secrets
2020-04-23 15:45:32 +01:00
ben-toogood
99d4b2b31a
Merge branch 'master' into git-secrets
2020-04-23 15:39:37 +01:00
Janos Dobronszki
ff8ad7d4ca
Default runtime now checks out code on demand ( #1563 )
...
* Default runtime now checks out code on demand
* Go mod tidy
2020-04-23 16:30:43 +02:00
ben-toogood
b692c045b5
Merge branch 'master' into git-secrets
2020-04-23 15:01:47 +01:00
Ben Toogood
b5f53595ca
Pass image_pull_secrets in runtime service
2020-04-23 14:22:23 +01:00
Ben Toogood
88176dca53
Remove debugging
2020-04-23 14:13:07 +01:00
Ben Toogood
020476614c
Tweak CreateImagePullSecret
2020-04-23 14:06:33 +01:00
Ben Toogood
0f42346976
Additonal Debugging
2020-04-23 14:03:04 +01:00
ben-toogood
692b27578c
Runtime Namespace ( #1547 )
...
* Add context option to runtime; Add dynamic namespace to kubectl client
* Add namespace runtime arg
* Fixes & Debugging
* Pass options in k8s runtime
* Set namespace on k8s resources
* Additional Logging
* More debugging
* Remove Debugging
* Ensure namespace exists
* Add debugging
* Refactor namespaceExists check
* Fix
* Fix
* Fix
* Fix
* Change the way we check for namespace
* Fix
* Tidying Up
* Fix Test
* Fix merge bugs
* Serialize k8s namespaces
* Add namespace to watch
* Serialize namespace when creating k8s namespace
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-04-23 13:53:42 +01:00
Micro
316b81f790
Debugging
2020-04-23 13:11:00 +01:00
Micro
5e3262a62c
Passs img pull secrets using name key
2020-04-23 12:52:59 +01:00
Micro
053fa0e457
Fix template syntax
2020-04-23 12:38:00 +01:00
Micro
501a6bf3ea
Add imagePullSecrets to PodSpec
2020-04-23 12:27:36 +01:00
Asim Aslam
7345ce9192
change logging for service startup
2020-04-23 11:24:39 +01:00
Vasiliy Tolstov
6fa27373ed
bundle qson lib in util ( #1561 )
...
* copy qson from https://github.com/joncalhoun/qson
as author not want to maintain repo
* latest code contains our fix to proper decode strings
with escaped & symbol
* replace package in api/handler/rpc
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-23 11:08:09 +03:00
徐旭
e55c23164a
fix prealloc in trace ( #1558 )
2020-04-22 16:10:59 +03:00
Asim Aslam
e25ab9f4ca
Fix typo for proxy
2020-04-22 10:44:34 +01:00
Vasiliy Tolstov
bea092f082
server: set registered only after configuring subscribers ( #1557 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-21 23:01:59 +03:00
Asim Aslam
d7ecb58f6c
Add network proxying ( #1556 )
...
* Add network proxying
* go fmt
2020-04-21 15:54:40 +01:00
Jake Sanders
05d2b34e10
Add util/pki for creating and signing certificates ( #1555 )
2020-04-21 15:03:33 +01:00
ben-toogood
211fd9b9a3
Merge pull request #1554 from micro/oauth-login-hint
...
Add oauth login hint param
2020-04-21 13:40:47 +01:00
Ben Toogood
19f0836e70
Add oauth login hint param
2020-04-21 13:37:26 +01:00
Janos Dobronszki
075d7d4fef
Renaming ShutdownSignals -> Shutdown ( #1553 )
2020-04-21 14:14:20 +02:00
Janos Dobronszki
e5c215556e
Add SIGKILL to shutdown signals ( #1552 )
...
* Add SIGKILL to shutdown signals
* go mod tidy
* Add missing file
2020-04-21 14:00:12 +02:00
Janos Dobronszki
7c31edd5f8
Enabling default runtime to run multiple versions ( #1545 )
...
* Enabling default runtime to run multiple versions
* Trigger build
* Fix
* Sprintf
2020-04-20 15:54:29 +02:00
Asim Aslam
c4acf3c2cb
Static serving disabled
2020-04-19 20:30:38 +01:00
Asim Aslam
53db26a614
Use go.micro.mu
2020-04-19 17:03:25 +01:00
Asim Aslam
dde8f18b52
Update readme
2020-04-19 00:46:33 +01:00
Asim Aslam
6071b74fb5
Update readme
2020-04-19 00:45:29 +01:00
Asim Aslam
ab041012b2
Update readme
2020-04-19 00:44:52 +01:00
Asim Aslam
226d6ad22b
log whats happening in http handler
2020-04-19 00:41:03 +01:00
Asim Aslam
a08ff90976
fix this bs logging issue
2020-04-18 23:36:00 +01:00
Asim Aslam
ae8404d760
Log listening port
2020-04-18 23:32:20 +01:00
Vasiliy Tolstov
f00fd7a49e
api/router: support pcre and google.api pattern matching ( #1549 )
...
* api/router: support pcre and google.api pattern matching
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-19 00:31:34 +03:00
Asim Aslam
ecbc42755c
set network nodes in http resolver
2020-04-18 21:00:00 +01:00
Asim Aslam
16db76bee2
remove list endpoint from runtime and stop checking type in update
2020-04-17 17:54:34 +01:00
Asim Aslam
dca5305e8a
replaced build with updated timestamp in runtime
2020-04-17 16:29:05 +01:00
Asim Aslam
c0b0f63757
Update docker workflow to push releases
2020-04-17 10:50:44 +01:00
Janos Dobronszki
ac5822f1ee
Fix local runtime updates ( #1543 )
2020-04-16 17:50:24 +02:00
ben-toogood
ae56becbbd
Merge pull request #1542 from micro/stream-auth
...
Set authorization header on grpc stream
2020-04-16 15:06:19 +01:00
ben-toogood
5bb18e685e
Merge branch 'master' into stream-auth
2020-04-16 15:03:12 +01:00
Ben Toogood
2dfaab439c
Set authorization header on grpc stream
2020-04-16 15:01:16 +01:00
Vasiliy Tolstov
62cedf64da
api/router/registry: extract path based parameters from url to req ( #1530 )
...
Run tests / Test repo (push) Waiting to run
* api/router/registry: extract path based parameters from url to req
* api/handler/rpc: fix empty body request parsing
* bundle grpc-gateway util funcs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-15 17:50:51 +03:00
ben-toogood
9961ebb46e
Merge pull request #1538 from micro/rule-priority
...
Add priority to auth.CreateRequest and auth.DeleteRequest
2020-04-15 11:54:01 +01:00
Ben Toogood
fe31a71557
Fix formatting
2020-04-15 11:50:52 +01:00
Ben Toogood
c9a6b07c52
Add priority to auth.CreateRequest and auth.DeleteRequest
2020-04-15 11:49:24 +01:00
ben-toogood
f1e6eff303
Merge pull request #1537 from micro/rule-priority
...
Add Priority to auth rules
2020-04-15 11:42:53 +01:00
Ben Toogood
2de03e5fd7
Tidy go mod
2020-04-15 11:39:53 +01:00
Ben Toogood
234c192faf
Update protoc-gen-micro
2020-04-15 11:39:12 +01:00
Ben Toogood
ea29920afb
Add Priority to auth rules
2020-04-15 11:31:19 +01:00
Vasiliy Tolstov
4d177a782e
vendor proto files from google ( #1536 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-15 13:22:32 +03:00
Vasiliy Tolstov
b700d425a4
api/handler/rpc: improvements and fixes ( #1535 )
...
* api/handler/rpc: fix empty body case
* api/handler/rpc: copy all request headers to metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-15 01:37:15 +03:00
Asim Aslam
9a5b8ff50d
use api
2020-04-14 22:14:55 +01:00
Asim Aslam
c787fd0483
fix missing pointer
2020-04-14 17:13:38 +01:00
Asim Aslam
1134ea5ff3
make proto.Message compatible with raw json
2020-04-14 16:59:24 +01:00
ben-toogood
fd16cd298f
Merge pull request #1532 from micro/registry-namespace
...
Registry Namespace
2020-04-14 16:14:18 +01:00
ben-toogood
67e7aa223a
Merge branch 'master' into registry-namespace
2020-04-14 16:03:29 +01:00
Asim Aslam
9d0381306d
add a proto message without serialisation
2020-04-14 15:54:25 +01:00
ben-toogood
f8837bfcbd
Merge branch 'master' into registry-namespace
2020-04-14 15:37:44 +01:00
Vasiliy Tolstov
268651df18
regenerate all proto based files ( #1531 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-14 16:25:09 +03:00
Ben Toogood
e17825474f
Add context options to the runtime
2020-04-14 12:32:59 +01:00
Ben Toogood
0c75a0306b
Merge master into registry-namespace
2020-04-14 09:15:13 +01:00
Ben Toogood
d61d30ef66
Inject Namespace into Context
2020-04-14 09:14:07 +01:00
Asim Aslam
71d4253927
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-04-13 23:05:47 +01:00
Asim Aslam
e515005083
Remove only allowing certain methods
2020-04-13 23:05:39 +01:00
Asim Aslam
4bdc18d64a
Update README.md
2020-04-13 22:15:21 +01:00
Asim Aslam
f840a5003e
Remove runtime List
2020-04-12 23:46:06 +01:00
Asim Aslam
5ef1698632
remove readme
2020-04-12 23:43:55 +01:00
Asim Aslam
1bb6967a38
reorder
2020-04-12 23:41:21 +01:00
Asim Aslam
a056bdce7c
fix metadata parsing
2020-04-12 14:40:37 +01:00
Asim Aslam
b08c636b44
fixup handler tests
2020-04-12 14:29:38 +01:00
Asim Aslam
d03a02f2e4
fix import
2020-04-12 11:25:12 +01:00
Asim Aslam
08ca61c121
add metadata set
2020-04-12 11:17:23 +01:00
Asim Aslam
962588b649
Strip MetadataKey global var
2020-04-12 11:16:08 +01:00
Asim Aslam
cf67d460b7
strip down mdns watcher
2020-04-12 11:01:09 +01:00
Asim Aslam
4e539361fa
strip file
2020-04-12 10:58:12 +01:00
Vasiliy Tolstov
3ce2ab88f5
broker/nats: remove embed nats server reference ( #1527 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-11 22:37:29 +03:00
Vasiliy Tolstov
0a2363b49b
api minor improvements ( #1526 )
...
* api/handler/rpc: unblock all http methods and set Host meta
* api/router/static: add debug log
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-11 22:21:55 +03:00
Asim Aslam
ec80ceb8c2
Update readme
2020-04-11 18:23:37 +01:00
Asim Aslam
ea2bb0275c
Strip external use of mdns
2020-04-11 13:02:53 +01:00
Asim Aslam
51d4f737b8
fixup store cache#
2020-04-11 12:10:19 +01:00
Asim Aslam
3f81f685df
Move sync
2020-04-11 12:00:34 +01:00
Asim Aslam
bb1ccf09e8
prefix store dir
2020-04-11 11:23:41 +01:00
Asim Aslam
c878237567
fix log file creation
2020-04-11 11:22:02 +01:00
Asim Aslam
ac8b6f944e
Prefix logs dir micro/logs for runtime
2020-04-11 11:15:01 +01:00
Asim Aslam
0f2006ac50
fix compilation issues
2020-04-11 11:02:06 +01:00
Asim Aslam
c697eed1be
Update comments
2020-04-11 10:48:32 +01:00
Asim Aslam
b887d91f94
remove readme
2020-04-11 10:38:13 +01:00
Asim Aslam
39470c1b11
Completely replace sync implementation
2020-04-11 10:37:54 +01:00
Asim Aslam
6d553cb6fe
add whitespace
2020-04-11 09:34:04 +01:00
Asim Aslam
c612d86480
Move sync store
2020-04-11 09:33:10 +01:00
Asim Aslam
3f3d2f5027
fixup broker http address
2020-04-11 01:51:26 +01:00
Vasiliy Tolstov
bc71640fd9
broker: swap default broker from eats to http ( #1524 )
...
* broker: swap default broker from eats to http
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-11 03:46:54 +03:00
Asim Aslam
b979db6d9d
remove sync event
2020-04-10 23:29:15 +01:00
Asim Aslam
57b758db7e
push
2020-04-10 22:09:06 +01:00
Asim Aslam
b5f546b137
go mod tidy
2020-04-10 19:55:45 +01:00
Asim Aslam
d4b2c948dd
Remove cloudflare store
2020-04-10 19:50:57 +01:00
Asim Aslam
b9a5e9d610
fixup sync map
2020-04-10 17:47:13 +01:00
Asim Aslam
57853b2849
remove etcd store
2020-04-10 17:43:02 +01:00
Asim Aslam
e5268dd0a6
move reg util to own package ( #1523 )
...
* move reg util to own package
* fix test
* fix broken static router
2020-04-10 17:41:10 +01:00
Asim Aslam
4fd12430d0
cleanup mdns files
2020-04-10 17:19:26 +01:00
Asim Aslam
d134b469be
rename file
2020-04-10 17:17:24 +01:00
Asim Aslam
9a685b2df5
delete k8s registry ( #1522 )
2020-04-10 17:15:20 +01:00
Jake Sanders
6a666c9c7d
Add json tags to store.Record ( #1518 )
2020-04-09 19:38:43 +01:00
Asim Aslam
53549b6b30
Add options for Database/Table ( #1516 )
...
* Add options for Database/Table
* fix opts
2020-04-09 17:56:13 +01:00
Jake Sanders
0a27a08184
Add Databases and Tables endpoints to store RPC proto ( #1515 )
...
* Add Databases and Tables to store RPC
* add Database to TablesRequest
2020-04-09 16:37:32 +01:00
Janos Dobronszki
77f0abb0ba
Enabling micro run for subfolders ( #1510 )
...
* Enabling micro run for subfolders
* Use source instead of os.Args[2]
* Works now
* PR comments
* WorkDir -> Dir
2020-04-09 15:44:39 +01:00
Asim Aslam
29cccd0b4a
minor tweak add log line to proxy and basic auth provider by default ( #1513 )
2020-04-09 14:10:17 +01:00
ben-toogood
bf65dc71c7
Merge pull request #1505 from micro/resover-refactor
...
Extract Micro Resolver (Namespace)
2020-04-09 13:14:49 +01:00
Asim Aslam
5bc8ee39f7
Merge branch 'master' into resover-refactor
2020-04-09 13:07:05 +01:00
Vasiliy Tolstov
8c1b477279
store/cockroach: fixup test ( #1512 )
...
* store/cockroach: fixup test
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-09 14:58:50 +03:00
Ben Toogood
f9cfbe96c0
Merge master into resover-refactor
2020-04-09 12:42:34 +01:00
Jake Sanders
2e379ca7d0
Don't break the build!
2020-04-09 12:18:02 +01:00
Jake Sanders
2659215d5e
cockroachDB doesn't support this syntax ( #1509 )
2020-04-09 12:11:24 +01:00
Vasiliy Tolstov
1063b954de
dont display t.Log/t.Logf as errors in github actions ( #1508 )
...
* fix tests and github action annotations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-09 14:05:46 +03:00
Ben Toogood
4ff959ef50
Dynamic Namespace
2020-04-09 11:03:33 +01:00
Janos Dobronszki
bc1c8223e6
Remove ugly unneeded log in runtime local ( #1507 )
2020-04-09 11:50:12 +02:00
Ben Toogood
27eb7db1c2
Add default resolver to api router
2020-04-09 10:34:21 +01:00
Ben Toogood
3ede494945
Change import name
2020-04-09 10:32:08 +01:00
Ben Toogood
f102aba4c1
Fix HTTP tests
2020-04-09 10:28:38 +01:00
Asim Aslam
f2dd091ec0
strip log
2020-04-09 10:28:16 +01:00
Asim Aslam
c1ad6d6c7c
set service name in web
2020-04-09 09:41:50 +01:00
Jake Sanders
1e7cd8c484
Make the constraint explicit rather than inferred ( #1506 )
2020-04-08 23:52:35 +01:00
Asim Aslam
bf8ebf8ad2
add namespace
2020-04-08 23:27:32 +01:00
Asim Aslam
1768958af7
fix typo
2020-04-08 22:50:56 +01:00
Asim Aslam
bf41d8d28e
fix store table env var
2020-04-08 19:44:49 +01:00
Asim Aslam
45700eaabe
set database/table in header
2020-04-08 19:25:57 +01:00
Asim Aslam
48dd30c4c2
fix http test
2020-04-08 19:20:43 +01:00
Ben Toogood
8ff86ae08b
Extract micro resolver
2020-04-08 16:21:53 +01:00
Asim Aslam
b2079669f7
Strip namespace from router
2020-04-08 15:39:01 +01:00
Asim Aslam
2c1d1afd71
Strip namespace from registry router
2020-04-08 15:38:02 +01:00
Asim Aslam
9a73828782
Remove unused handlers
2020-04-08 15:34:11 +01:00
ben-toogood
c5d085cff8
Merge pull request #1496 from micro/namespace
...
Configurable Namespace & Public Suffix Domain Resolution
2020-04-08 13:48:50 +01:00
ben-toogood
9f4286fc4e
Merge branch 'master' into namespace
2020-04-08 13:44:46 +01:00
Jake Sanders
77f5cc5023
Fix nil dereference in cloudflare store ( #1504 )
2020-04-08 13:00:30 +01:00
Vasiliy Tolstov
8400aba81c
broker/memory: small memory improvements ( #1501 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-08 14:56:54 +03:00
Jake Sanders
cc027d900e
Close statements, add default table if the store was not initialised through service.Init() ( #1502 )
2020-04-08 12:08:08 +01:00
Edward
bc0dc2e509
fix :no syscall.Kill on windows #1474 ( #1474 )
2020-04-08 10:50:44 +01:00
Vasiliy Tolstov
1fbc056dd4
minimize allocations ( #1472 )
...
* server: minimize allocations on re-register
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: stop old instance before Init()
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* client/grpc: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* codec/json: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* remove stop from init
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* codec/grpc: expose MaxMessageSize
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* codec: use buffer pool
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* metadata: minimize reallocations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* util/wrapper: use metadata helper
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* registry/cache: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: cache service only when Advertise is ip addr
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: use metadata.Copy
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-08 10:50:19 +01:00
Asim Aslam
98fc3dfbad
use single data bucket
2020-04-08 09:57:51 +01:00
Asim Aslam
4b0e27413e
add Store Close method ( #1500 )
...
* add Store Close method
* Update sync store build failure
2020-04-08 09:51:10 +01:00
ben-toogood
6b524e2c55
Merge branch 'master' into namespace
2020-04-08 09:12:28 +01:00
Asim Aslam
4cac7dcc48
fix file tests
2020-04-07 19:45:27 +01:00
Ben Toogood
e907d24e3b
API Wrappers
2020-04-07 19:29:26 +01:00
Asim Aslam
39c352f210
Remove the test that takes 30 seconds sleeping
2020-04-07 18:22:40 +01:00
Ben Toogood
67cd59d7bc
Rename namespace from Resolver.Endpoint
2020-04-07 16:27:59 +01:00
Ben Toogood
3735b0e529
Remove global namespace option
2020-04-07 16:27:01 +01:00
Ben Toogood
4362a885eb
Refactor Namespace Resolver
2020-04-07 16:24:51 +01:00
Janos Dobronszki
038b936ce9
Setting up file store in constructor and not in init which is o… ( #1499 )
2020-04-07 16:43:43 +02:00
Vasiliy Tolstov
6aaad7d63f
api/router/static: allow to specify body dst ( #1486 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-07 15:38:27 +01:00
Janos Dobronszki
aaee01b1a7
Use file store by default (as opposed to memory store) ( #1498 )
...
* Use file store by default (as opposed to memory store)
* Default table for file store
2020-04-07 15:19:45 +02:00
Jake Sanders
71538adfdc
Explicitly set the table name during service init ( #1497 )
2020-04-07 13:00:05 +01:00
Janos Dobronszki
2ea5b33955
Disk backed local store ( #1491 )
2020-04-07 13:53:22 +02:00
Ben Toogood
3df87510a1
Add namespace
2020-04-07 12:46:44 +01:00
Ben Toogood
9d598836c3
Fix Tests
2020-04-07 11:37:04 +01:00
Ben Toogood
05ac3ff274
Tweak
2020-04-07 11:24:13 +01:00
Ben Toogood
76f6f80318
Default to Hostname
2020-04-07 11:23:21 +01:00
Ben Toogood
cb96949551
Merge branch 'master' of https://github.com/micro/go-micro into namespace
2020-04-07 10:58:54 +01:00
ben-toogood
87cc4f273b
Merge pull request #1495 from micro/log-level
...
Change cross namespace request err level
2020-04-07 10:58:22 +01:00
Ben Toogood
f0980e9b30
Change cross namespace request err level
2020-04-07 10:54:27 +01:00
Ben Toogood
977934f8fd
ServiceNamespace => ServicePrefix in api server
2020-04-07 10:39:27 +01:00
Ben Toogood
9e116731b1
ServiceNamespace => ServicePrefix in api server
2020-04-07 10:38:27 +01:00
Ben Toogood
316424f0f7
Fix comments typo
2020-04-07 10:35:57 +01:00
Ben Toogood
bd23dc1f18
Improve micro.mu check
2020-04-07 10:34:26 +01:00
Ben Toogood
501fc5c059
Refactor to use publicsuffix
2020-04-07 10:28:39 +01:00
Ben Toogood
11e1e9120a
Remove debugging
2020-04-07 10:10:37 +01:00
Ben Toogood
a81d86ed08
Merge Asim's Fixes
2020-04-07 10:08:06 +01:00
Ben Toogood
7206d5f964
Add Namespace to CombinedAuthHandler
2020-04-07 09:40:40 +01:00
Asim Aslam
b5f5027549
Move store scope to util
2020-04-07 02:23:16 +01:00
Asim Aslam
e8a86585da
contains missing host port
2020-04-07 00:54:27 +01:00
Asim Aslam
5374896ed0
clone request
2020-04-07 00:29:35 +01:00
Asim Aslam
b6348ba59a
Fix cruft
2020-04-07 00:25:11 +01:00
Asim Aslam
ca11c4a672
Few nitpicks
2020-04-07 00:19:49 +01:00
Lars Lehtonen
900b2d24f9
config/secrets/box: fix dropped test error ( #1494 )
2020-04-06 23:09:42 +01:00
Jake Sanders
3324d140c0
Rename store Namespace / Prefix options to Database and Table ( #1492 )
...
* Rename Namespace to DB, Rename Prefix to table, Remove Suffix Option
* Rename options
* Rename options
* Add store_table option
* Table per service, not Database per service
2020-04-06 16:45:55 +01:00
ben-toogood
3a378eb7d6
Merge pull request #1493 from micro/auth-encode-endpoint
...
Encode Endpoint in API auth wrapper
2020-04-06 16:21:14 +01:00
Ben Toogood
574bf5ac69
Set value in context, not metadata
2020-04-06 16:10:08 +01:00
Ben Toogood
774c0d30a7
Encode Endpoint in API auth wrapper
2020-04-06 16:01:42 +01:00
ben-toogood
0f570d98e1
Merge pull request #1475 from micro/auth-resolver
...
Auth integrate resolver to support micro web & api
2020-04-06 14:57:41 +01:00
ben-toogood
7f07e1a642
Merge branch 'master' into auth-resolver
2020-04-06 14:43:22 +01:00
ben-toogood
9b546a7242
Change auth namespace log level ( #1490 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-04-06 13:51:28 +01:00
Asim Aslam
c4442a7533
Don't set the registry in new options for web services ( #1489 )
2020-04-06 13:40:40 +01:00
ben-toogood
bea7c3f7e7
Merge pull request #1488 from micro/disable-warn-log
...
Change namespace error log level
2020-04-06 12:55:47 +01:00
ben-toogood
cca9773269
Merge branch 'master' into disable-warn-log
2020-04-06 12:51:47 +01:00
Ben Toogood
600b20fb81
Change namespace error log level
2020-04-06 12:50:04 +01:00
Edward
31a1ea6fae
fix: use registry from opts not use default directly:( #1436 ) ( #1468 )
...
web: use passed user registry, or default
2020-04-05 13:15:38 +03:00
Vasiliy Tolstov
bc7579f1d8
api/handler/rpc: fix panic on invalid error conversation ( #1483 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-04 00:55:15 +03:00
Vasiliy Tolstov
38aed6f0f6
api/handler/rpc: not log error on client disconnect ( #1482 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-04 00:37:18 +03:00
ben-toogood
7f8b35e295
Merge pull request #1480 from micro/host-fix
...
Add Debugging
2020-04-03 15:07:22 +01:00
ben-toogood
b09dd9a689
Merge branch 'master' into host-fix
2020-04-03 15:03:49 +01:00
Ben Toogood
a82ce4d1ae
Add Debug
2020-04-03 15:03:18 +01:00
ben-toogood
34234fc486
Merge pull request #1479 from micro/host-fix
...
Auth host fix
2020-04-03 14:43:35 +01:00
Ben Toogood
4a850ff8a0
Auth host fix
2020-04-03 14:40:24 +01:00
ben-toogood
350dd41732
Merge branch 'master' into auth-resolver
2020-04-03 14:19:03 +01:00
ben-toogood
d8cca31738
Merge pull request #1478 from micro/auth-hosts-fix
...
Fix auth hosts bug
2020-04-03 14:13:51 +01:00
Ben Toogood
b864b3e350
Fix auth hosts bug
2020-04-03 14:09:25 +01:00
ben-toogood
41b746e435
Merge pull request #1477 from micro/fix
...
Hotfix
2020-04-03 13:37:50 +01:00
Ben Toogood
906263291b
Hotfix
2020-04-03 13:37:02 +01:00
ben-toogood
46f0bda31e
Merge pull request #1476 from micro/namespace-fix
...
Namespace Fix
2020-04-03 13:30:30 +01:00
Ben Toogood
d0e47206cc
Fix
2020-04-03 13:29:48 +01:00
ben-toogood
ed6fe67880
Merge pull request #1471 from micro/namespace
...
Detect & Propagate Namespace
2020-04-03 13:07:26 +01:00
Ben Toogood
1374a9e528
Fix namespace bug in auth wrapper
2020-04-03 13:03:27 +01:00
Ben Toogood
a9c0e043d2
Fix nil grpc server auth bug
2020-04-03 12:50:50 +01:00
Ben Toogood
49a568e9c0
Set default server auth
2020-04-03 12:33:19 +01:00
Ben Toogood
dea2d7ab9f
Fix go-micro auth wrapper init
2020-04-03 12:27:01 +01:00
Ben Toogood
ebb1a42d48
Merge branch 'namespace' of https://github.com/micro/go-micro into namespace
2020-04-03 12:14:26 +01:00
Ben Toogood
1096c8fb39
Fix failing test
2020-04-03 10:16:19 +01:00
Ben Toogood
91b9c3f92e
Add defaults
2020-04-03 10:08:39 +01:00
Ben Toogood
183c8bfb81
Apply fix for apis
2020-04-03 09:45:39 +01:00
Ben Toogood
49a1130281
Merge branch 'auth-resolver' of https://github.com/micro/go-micro into auth-resolver
2020-04-03 09:34:57 +01:00
Ben Toogood
760233b858
Reverse Change
2020-04-03 09:34:52 +01:00
ben-toogood
ede076e899
Merge branch 'master' into auth-resolver
2020-04-03 09:33:13 +01:00
Ben Toogood
fdcb013f24
Fix web registry compatability bugs
2020-04-03 09:18:30 +01:00
Ben Toogood
ce23ab36cb
Improve Err Handling
2020-04-02 18:41:06 +01:00
ben-toogood
61f0619e97
Merge branch 'master' into namespace
2020-04-02 18:05:21 +01:00
Ben Toogood
cfde3ec3d9
Remove resolver logic
2020-04-02 18:03:57 +01:00
Ben Toogood
4a4c666528
Remove resolver logic
2020-04-02 18:03:21 +01:00
Ben Toogood
8b35c264eb
Pass resolver to api auth handler
2020-04-02 17:44:48 +01:00
Ben Toogood
4999f6dfd4
Namespace requests coming via api & web
2020-04-02 17:01:06 +01:00
Asim Aslam
31c4452fc7
delete monitor ( #1470 )
2020-04-02 14:05:17 +01:00
Janos Dobronszki
2cafa289b6
Stop LogStream if there is an error in k8s pod log streaming ( #1469 )
...
* Stop LogStream if there is an error in k8s pod log streaming
* Locking stream Stops
* PR comment
2020-04-02 12:16:35 +01:00
Vasiliy Tolstov
0241197c6a
api/handler/rpc: binary streaming support ( #1466 )
...
* api/handler/rpc: binary streaming support
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix sec webscoekt protol
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-02 10:13:04 +01:00
Asim Aslam
0a15ae9b9d
Move String method ( #1467 )
2020-04-01 23:27:15 +01:00
Janos Dobronszki
d2b6d35220
log.Errorf when pod streaming fails ( #1463 )
...
* log.Errorf when pod streaming fails
* Error method added for loggers
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-04-01 23:03:26 +01:00
Asim Aslam
e1bc0f6288
replace strings for store prefix ( #1465 )
...
Co-authored-by: ben-toogood <bentoogood@gmail.com >
2020-04-01 20:19:21 +01:00
ben-toogood
cd3d704aa5
Merge pull request #1459 from micro/auth-interface-update
...
Auth Interface Iteration
2020-04-01 17:56:38 +01:00
Ben Toogood
9de69529ce
Fix token tests
2020-04-01 17:29:17 +01:00
ben-toogood
623f0c0c90
Merge branch 'master' into auth-interface-update
2020-04-01 17:24:01 +01:00
Ben Toogood
c766679687
Fix typo
2020-04-01 17:22:01 +01:00
Ben Toogood
df8c0bb5e1
Auth Generate, make secret optional
2020-04-01 17:20:02 +01:00
Ben Toogood
d577c32563
Add back auth.PrivateKey
2020-04-01 17:17:40 +01:00
Ben Toogood
365dfe9df5
Code => State
2020-04-01 17:11:46 +01:00
Ben Toogood
ae15793fc3
Support oauth codes
2020-04-01 15:36:22 +01:00
Janos Dobronszki
15fcd5ecef
Remove Go micro 1.18 dependency ( #1462 )
2020-04-01 16:14:08 +02:00
Ben Toogood
1750fd8d10
Merge branch 'auth-interface-update' of https://github.com/micro/go-micro into auth-interface-update
2020-04-01 14:42:37 +01:00
Ben Toogood
525ab094c8
Remove LoginOptions
2020-04-01 14:42:11 +01:00
Janos Dobronszki
bb51b8203e
Runtime logs ( #1447 )
...
* Runtime logs
* Slightly broken
* Pushing for diff
* Log trailing works locally
* LogsOptions
* Comments and streamcount support for local logs
* Adding kubernetes logs
* Fixing k8s logs
* K8s fixes
* StreamCount is now nuked
* PR comments
* PR comments again
* Fix typo
2020-04-01 15:40:15 +02:00
ben-toogood
75a75c56ad
Merge branch 'master' into auth-interface-update
2020-04-01 14:37:06 +01:00
Ben Toogood
26cb6bf5b9
Remove Legacy JWT fields
2020-04-01 14:27:56 +01:00
Ben Toogood
9cbbd71855
Remove default login
2020-04-01 14:26:24 +01:00
Ben Toogood
f7655b71ea
Merge branch 'auth-interface-update' of https://github.com/micro/go-micro into auth-interface-update
2020-04-01 14:25:07 +01:00
Ben Toogood
8e4d9e1702
Further Refactoring
2020-04-01 14:25:00 +01:00
Asim Aslam
20c95d94cd
api completeness ( #1460 )
2020-04-01 12:07:50 +01:00
ben-toogood
0a7d8afe67
Merge branch 'master' into auth-interface-update
2020-04-01 09:42:45 +01:00
Vasiliy Tolstov
7b7a859a03
api: use http request Clone ( #1458 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-01 01:50:37 +03:00
Vasiliy Tolstov
8a8742f867
api/handler/rpc: dont change types of url fields ( #1457 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-01 01:26:58 +03:00
Asim Aslam
68b0238a5d
add stream timeout option which defaults to 0 ( #1456 )
...
* add stream timeout option which defaults to 0
* fix option
2020-03-31 23:22:11 +01:00
Vasiliy Tolstov
1490aff38e
api/handler/rpc: correctly parse nested url vars ( #1455 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-01 00:23:17 +03:00
Vasiliy Tolstov
3a22efbd7d
metadata: change method name ( #1454 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 23:39:18 +03:00
Vasiliy Tolstov
5e65a46be3
metadata: allow to remove key from metadata ( #1453 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 22:55:33 +03:00
Vasiliy Tolstov
18061723bb
fix api metadata extract from context ( #1452 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 22:36:51 +03:00
Vasiliy Tolstov
d6bef84de0
api/handler/rpc: fix metadata cleanup ( #1451 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 21:59:35 +03:00
Ben Toogood
82bc3cbf8d
Update interface to add provider and make secret optional
2020-03-31 19:01:43 +01:00
Ben Toogood
cffb0a1eae
Remove ContextWithToken
2020-03-31 18:34:31 +01:00
Ben Toogood
134bc1c68a
Implement new interface
2020-03-31 18:17:01 +01:00
Asim Aslam
6c6c5359b1
Add options to config ( #1450 )
2020-03-31 17:13:21 +01:00
Ben Toogood
8dbb5153f4
Tweak Auth Interface
2020-03-31 17:01:51 +01:00
ben-toogood
2674790694
Service => Service Auth ( #1448 )
...
* Service => Service Auth
* WithServicePrivileges => ServicePrivileges
* Fixes for CLI login
* ServicePrivileges => ServiceToken
* Fallback to service token
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-31 16:18:04 +01:00
ben-toogood
9fb1d476a2
Merge branch 'master' into auth-srv-srv
2020-03-31 16:15:17 +01:00
Ben Toogood
36386354d7
Fallback to service token
2020-03-31 13:51:32 +01:00
Ben Toogood
bd70820b6b
ServicePrivileges => ServiceToken
2020-03-31 13:48:28 +01:00
Ben Toogood
956029ae3d
Fixes for CLI login
2020-03-31 13:30:14 +01:00
Ben Toogood
e0c7f48d20
WithServicePrivileges => ServicePrivileges
2020-03-31 12:57:38 +01:00
Ben Toogood
d659e435c6
Service => Service Auth
2020-03-31 12:44:34 +01:00
Jake Sanders
3d274ab6a2
Add namespace support to Kubernetes client ( #1446 )
...
* Add namespace support to Kubernetes client
* Fix LastUpdateTime Condition
2020-03-31 12:03:32 +01:00
Asim Aslam
1222d076f2
There can be only one! ( #1445 )
...
Run tests / Test repo (push) Waiting to run
* There can be only one
* fix proto?
2020-03-31 10:18:50 +01:00
ben-toogood
76ade7efd9
Auth - Swap Refresh to Token and change secrets to be strings, not tokens ( #1444 )
...
* Refresh => Token
* Secret is no longer a token
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-31 10:06:13 +01:00
Vasiliy Tolstov
c706ebe3fb
auth proto: provide help to protoc-gen-go ( #1442 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 00:35:11 +03:00
Vasiliy Tolstov
9e6db79860
regenerate all proto ( #1440 )
...
* regenerate all proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-30 21:58:32 +01:00
Vasiliy Tolstov
756b346672
auth/service: move all proto files to single dir ( #1439 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-30 18:23:00 +03:00
ben-toogood
4db2f5e79d
Add Namespace to Auth ( #1438 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-30 09:51:37 +01:00
Vasiliy Tolstov
3d7d5ce6b4
api: add static router and improve path parser in rpc handler ( #1437 )
...
* api: add static router and improve path parser in rpc handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* expose metadata context key to be able to get unmodified map keys
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: fix jsonpb codec for protobuf msg
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/handler/rpc: write 204 status code when rsp is nil
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/handler/rpc: add check for nil response for non javascript
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-30 09:04:59 +01:00
Socket
8282e781e4
grpc pool should check state ( #1435 )
...
Co-authored-by: huangshaojie <huangshaojie@corp.netease.com >
2020-03-28 08:48:25 +00:00
Vasiliy Tolstov
e4acc63d5f
add mdns registry debug ( #1434 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-27 22:33:49 +03:00
Asim Aslam
45ee5e9ad1
Move error for api validation to trace level ( #1432 )
...
* remove error on endpoint validation
* trace level
2020-03-27 14:01:47 +00:00
Asim Aslam
b60fde0e64
Pass through source and metadata in Update and Delete calls to runtime ( #1431 )
2020-03-27 11:37:12 +00:00
Lars Lehtonen
011a783a9e
store/cockroach: fix dropped test errors ( #1419 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-27 10:15:37 +00:00
ben-toogood
6723d17b22
Default auth, return account secret on Inspect ( #1430 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-27 09:54:29 +00:00
ben-toogood
47c7181d41
Default Auth: Add blank secret to account to prevent nil errors ( #1429 )
...
* Remove debug auth logs
* Default auth, return account secret on Inspect
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-27 09:46:17 +00:00
Vasiliy Tolstov
b38da6ced0
api/handler/rpc: process all methods and merge url params to json body ( #1427 )
...
* api/handler/rpc: process all methods and merge url params to json body
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add merge json test
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-27 07:59:31 +00:00
ben-toogood
1a53307a78
Remove debug auth logs ( #1426 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 19:00:24 +00:00
Asim Aslam
e204f3e2e8
Add metadata Get method ( #1425 )
2020-03-26 18:50:00 +00:00
ben-toogood
329bd09f93
Fix Auth Init bug ( #1424 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 18:09:51 +00:00
ben-toogood
4648fd0d09
Auth debugging ( #1423 )
...
* More auth debugging
* More auth debugging
* Increase auth debugging
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 17:55:35 +00:00
ben-toogood
c905df3be6
Log auth verify requests ( #1422 )
...
* More auth debugging
* More auth debugging
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 17:35:28 +00:00
Asim Aslam
62f9a054a4
100mb ( #1421 )
2020-03-26 16:57:31 +00:00
ben-toogood
00e7804f96
Auth - Add debugging to loading rules ( #1420 )
...
* Fix auth multi-rule edgecase
* Add logging to auth rules
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 16:30:31 +00:00
ben-toogood
42b6bf5bbf
Fix auth multi-rule edgecase ( #1418 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 15:52:48 +00:00
ben-toogood
844c456839
Refactor Auth Service Protos, Add Access Rules ( #1411 )
...
* Refactor auth/service into two protos
* Accounts Proto
* Store Prefixes
* Misc
* Tweak Protos
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-26 13:12:43 +00:00
Asim Aslam
7182ca1fd0
fix server logging ( #1417 )
2020-03-26 13:08:06 +00:00
Vasiliy Tolstov
02839cfba5
api/handler: use http.MaxBytesReader and buffer pool ( #1415 )
...
* api/handler: use http.MaxBytesReader
protect api handlers from OOM cases
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-26 14:29:28 +03:00
Asim Aslam
776a7d6cd6
Update filter comment for proxy ( #1416 )
2020-03-26 08:05:00 +00:00
Vasiliy Tolstov
beaa434610
logger: fix reading env var ( #1414 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-25 22:00:43 +00:00
Asim Aslam
6efc5556e5
use requested service ( #1413 )
2020-03-25 20:59:37 +00:00
Asim Aslam
8d0826a031
Add check for k8s condition ( #1412 )
2020-03-25 19:32:41 +00:00
ben-toogood
378d03eb66
Tidying up auth ( #1410 )
...
* Don't clear auth rules if request fails
* Add jitter to auth service loading rules
* Remove unused error from ContextWithToken result
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 18:34:13 +00:00
ben-toogood
56af826230
Update auth to pass seconds and not nanoseconds ( #1409 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 17:03:45 +00:00
ben-toogood
511ebd8ec2
Fix Token Expiry Bug ( #1408 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 14:40:37 +00:00
ben-toogood
1057ef6acb
Add ContextWithToken ( #1407 )
...
* Add ContextWithToken
* Tidying up BearerScheme
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 11:20:53 +00:00
ben-toogood
35e2a68a98
Fix auth bug restricting access to unauthorised endpoints ( #1405 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 10:31:33 +00:00
ben-toogood
0e56382107
Fix service level auth, add improved error descriptions to aid with debugging ( #1403 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 09:35:29 +00:00
Jake Sanders
dff98355be
Missing ; in SQL query
2020-03-24 23:49:09 +00:00
Vasiliy Tolstov
8100d26430
api/router/registry: use logger ( #1402 )
...
* api/router/registry: use logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/server/acme: use logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-24 20:45:11 +00:00
Jake Sanders
397a8638f4
Cockroach Store bugfix ( #1401 )
2020-03-24 17:16:38 +00:00
Jake Sanders
eb4d2ae6aa
Remove useless variable from cockroach store ( #1400 )
2020-03-24 15:37:30 +00:00
Jake Sanders
914340585c
Trim space from env variables ( #1399 )
2020-03-24 14:51:43 +00:00
ben-toogood
84b4eb5404
Fix missing loop ( #1398 )
...
* WithRoles variadic args
* Load Rules
* Timer => Ticker
* Add missing for loop in auth service
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 14:16:57 +00:00
ben-toogood
fd664f4392
Auth load rules ( #1397 )
...
* WithRoles variadic args
* Load Rules
* Timer => Ticker
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 13:48:37 +00:00
ben-toogood
86272a3064
WithRoles variadic args ( #1395 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 10:18:34 +00:00
ben-toogood
c1978265ab
Auth Wildcard Endpoints ( #1394 )
...
* Auth Wildcard Endpoints
* Fix joinkey bug, improve tests
* Change joinKey
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 09:39:33 +00:00
ben-toogood
e0e77f3983
Updated auth interface ( #1384 )
...
* Updated auth interface
* Add Rule
* Remove Rule
* Return token from Renew
* Renew => Refresh
* Implement Tokens & Default Auth Implementation
* Change default auth to noop
* Change default auth to noop
* Move token.Token to auth.Token
* Remove Token from Account
* Auth service implementation
* Decode JWT locally
* Cookie for secret
* Move string to bottom of interface definition
* Depricate auth_exclude
* Update auth wrappers
* Update go.sum
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-23 16:19:30 +00:00
Vasiliy Tolstov
9826ddbd64
api/handler/rpc: log errors ( #1390 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-23 10:31:35 +03:00
0987363
87617be227
Add client header to rpcRequest header; issue #957 ( #1378 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-21 23:25:23 +00:00
Vasiliy Tolstov
d559587807
client/grpc: remove json-iterator usage ( #1387 )
...
* minimize external deps and binary size
* if user wants json-iterator codec it must be used in server and
client code. so best to use it via go-plugins
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-21 09:40:58 +00:00
Janos Dobronszki
9501512219
Auth util func RequestToContext ( #1386 )
2020-03-20 15:23:12 +00:00
Asim Aslam
d2f153d795
Add type of service ( #1385 )
2020-03-20 12:48:12 +00:00
Asim Aslam
e49be1da42
fix local runtime ( #1383 )
2020-03-19 22:38:37 +00:00
Jake Sanders
4c6f68d537
Implement store read cache ( #1366 )
...
* Implement store read cache
* Added cache tests and fixed a bug in memory store
2020-03-19 18:19:07 +00:00
Vasiliy Tolstov
cbb958def5
config: fix panic on multiple Close() ( #1374 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-19 12:54:59 +03:00
Asim Aslam
40ff6ddfcf
sigh, further status changes ( #1371 )
2020-03-18 22:47:03 +00:00
Asim Aslam
5ad7c36bd4
Fix labels for k8s ( #1370 )
2020-03-18 22:13:21 +00:00
Asim Aslam
99c3fe2bb8
fix status parsing ( #1368 )
2020-03-18 21:50:52 +00:00
Asim Aslam
1bd340701b
add k8s service ip to metadata ( #1367 )
...
* add k8s service ip to metadata
* go fmt
* use same port as container
2020-03-18 18:27:29 +00:00
Jake Sanders
c91bf7e9e7
[WIP] Store Sync ( #1365 )
...
* Initial cache implementation
* Write queue implementation
* Accidentally started writing the storage sync service
2020-03-18 16:39:36 +00:00
Vasiliy Tolstov
41f8a8cb00
errors: add FromError func ( #1362 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-18 03:10:38 +03:00
ben-toogood
cd04111e3d
Pass redirect_to param on auth ( #1361 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 20:04:16 +00:00
ben-toogood
00cd2448a4
Fix bug where auth token is not set from cookie when excluded endpoint ( #1360 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 19:24:10 +00:00
ben-toogood
8a41d369f2
Auth JWT ID Fix ( #1359 )
...
* Auth JWT ID Fix
* Remove unused ID in jwt claims
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 16:59:57 +00:00
Jake Sanders
638c219736
Cockroach store feature completion ( #1358 )
...
* Start fixing cockroach store
* Add prefix, suffix, limit, offset for cockroachdb store
2020-03-17 16:15:23 +00:00
ben-toogood
b3c631dd38
Support Wildcard Auth Excludes ( #1357 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 16:03:49 +00:00
Vasiliy Tolstov
ab73127063
grpc client/server fixes ( #1355 )
...
Run tests / Test repo (push) Waiting to run
* grpc client/server fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-17 14:27:20 +03:00
Asim Aslam
03031a694d
use pod phase/status ( #1356 )
2020-03-16 23:47:34 +00:00
li.peng
5712aafba9
fix: context cancel ( #1350 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-16 10:45:33 +00:00
Vasiliy Tolstov
ac333d9d47
client/grpc: unwrap error after call ( #1352 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-16 13:33:38 +03:00
ben-toogood
247707f583
Return store.ErrNotFound if not found when calling over rpc ( #1353 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-16 10:30:56 +00:00
ben-toogood
d91c14eb30
grpc client error fix ( #1351 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-16 12:53:15 +03:00
Asim Aslam
ca8684a886
fix k8s issues ( #1349 )
2020-03-15 15:09:18 +00:00
Asim Aslam
0449138f61
fix panic ( #1348 )
2020-03-14 21:18:41 +00:00
Vasiliy Tolstov
609f4826b3
server: remove duplicate code ( #1346 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-13 22:15:09 +00:00
Vasiliy Tolstov
60993e6275
config/source/service: base64 fix ( #1345 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-13 21:44:55 +00:00
Asim Aslam
e803fb0855
Runtime hacks ( #1344 )
...
* Add Args/Image to runtime
* remove the hacks
2020-03-13 18:39:59 +00:00
Vasiliy Tolstov
3543b275e0
fix log level helper ( #1342 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-13 17:36:42 +03:00
Vasiliy Tolstov
fbde872e7f
Revert "server/grpc: fix ordering of register and check for registered ( #1338 )" ( #1341 )
...
This reverts commit 62a644ddd8 .
2020-03-13 09:30:44 +00:00
Asim Aslam
078dd4eb9b
fix etcd ( #1340 )
...
* fix etcd
* update go mod
2020-03-13 08:55:23 +00:00
Vasiliy Tolstov
62a644ddd8
server/grpc: fix ordering of register and check for registered ( #1338 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-12 22:04:11 +00:00
Asim Aslam
d8cfa7a295
add config to cmd ( #1337 )
...
* add config to cmd
* fix build
2020-03-12 18:47:40 +00:00
ben-toogood
47f1203e97
Add Config to service options ( #1336 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-12 18:13:03 +00:00
Jake Sanders
1b4e881d74
Rewrite the store interface ( #1335 )
...
* WIP store rewrite
* Fix memory store tests
* Store hard expiry times rather than duration!
* Clarify memory test
* Add limit to store interface
* Implement suffix option
* Don't return nils from noop store
* Fix syncmap
* Start fixing store service
* wip service and cache
* Use _ for special characters in cockroachdb namespace
* Improve cockroach namespace comment
* Use service name as default store namespace
* Fixes
* Implement Store Scope
* Start fixing etcd
* implement read and write with expiry and prefix
* Fix etcd tests
* Fix cockroach store
* Fix cloudflare interface
* Fix certmagic / cloudflare store
* comment lint
* cache isn't implemented yet
* Only prepare DB staements once
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: ben-toogood <bentoogood@gmail.com >
2020-03-12 13:41:30 +00:00
ben-toogood
20ce61da5a
Oauth google fixes ( #1330 )
...
* Fix Auth Headers
* Tweak Oauth to work for Google
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-12 13:11:35 +00:00
chengguoqiang
eef4825be4
Update etcd.go ( #1334 )
...
add leaseId to the trace log
2020-03-12 10:09:38 +00:00
Asim Aslam
be9c6141f5
delete options ( #1333 )
2020-03-12 09:05:09 +00:00
Asim Aslam
1ca4619506
return store.ErrNotFound ( #1332 )
2020-03-11 23:09:42 +00:00
Asim Aslam
f55493993c
set namespace rather than key ( #1331 )
2020-03-11 22:31:24 +00:00
Vasiliy Tolstov
7b385bf163
minimize allocations in logger and tunnel code ( #1323 )
...
* logs alloc
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* tunnel allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* try to fix tunnel
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* cache cipher for send
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-11 17:55:39 +00:00
Jake Sanders
4125ae8d53
Add secrets interface to config/secrets ( #1325 )
...
* Interface for secrets
* Add secretbox secrets implementation
* Start working on box
* typo
* Add asymmetric encryption implementation
* go mod tidy
* Fix review comments
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-10 22:52:06 +00:00
ben-toogood
48b2a5c37c
Fix Auth Headers ( #1324 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-10 16:47:01 +00:00
Asim Aslam
ed83c27f0e
add websocket streaming to api rpc handler ( #1326 )
2020-03-10 15:21:43 +00:00
Vasiliy Tolstov
241614ff68
add helper function to determine logger level ( #1321 )
...
* add helper function to determine logger level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-09 23:43:05 +03:00
mlboy
1a4f608ed1
add: auth add generate options Expiry for set token expires ( #1319 )
...
Co-authored-by: mlboy <ml3@meitu.com >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-09 17:16:31 +00:00
Vasiliy Tolstov
43b0dbb123
tunnel: reduce allocation and improve performance ( #1320 )
...
* tunnel: reduce allocation and improve performance
BenchmarkSha256Old-16 100000 156748 ns/op 11835 B/op 168 allocs/op
BenchmarkSha256Old-16 100000 156229 ns/op 11819 B/op 168 allocs/op
BenchmarkSha256New-16 100000 154751 ns/op 11107 B/op 161 allocs/op
BenchmarkSha256New-16 100000 154263 ns/op 11110 B/op 161 allocs/op
simple change lowers allocations and brings performance
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* tunnel: reuse buf in Decrypt
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix unneeded conversations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* base32 string is smaller than hex string
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-09 17:10:08 +00:00
ben-toogood
b344171c80
URL Encode Provider.Endpoint() ( #1317 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-09 10:21:49 +00:00
ben-toogood
e3ce45495a
os.Exit on log.Fatal ( #1316 )
...
* os.Exit on log.Fatal
* Fix TestOptions
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-09 09:23:42 +00:00
Vasiliy Tolstov
f01664a551
Merge pull request #1313 from micro/upstream
...
fix ipv6 address usage in mdns registry and util/addr
2020-03-07 23:50:03 +03:00
Vasiliy Tolstov
8ecbdc1cd6
registry/mdns: add logging for invalid endpoint
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-07 23:19:48 +03:00
Vasiliy Tolstov
55c19afb0b
registry/mdns: fix ipv6 addr in mdns registry
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-07 23:17:00 +03:00
Vasiliy Tolstov
077063c212
util/addr: check ip addrs before return
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-07 23:13:56 +03:00
ben-toogood
9a7a65f05e
Auth Provider ( #1309 )
...
* auth provider mock interface
* Auth Provider Options
* Implement API Server Auth Package
* Add weh utils
* Add Login URL
* Auth Provider Options
* Add auth provider scope and setting token in cookie
* Remove auth_login_url flag
Co-authored-by: Asim Aslam <asim@aslam.me >
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-07 11:06:57 +00:00
Vasiliy Tolstov
8ee5607254
[WIP]: broker ErrorHandler option ( #1296 )
...
* broker ErrorHandler option
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* rewrite Event interface, add error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* implement new interface
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* change ErrorHandler func to broker.Handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-06 21:25:16 +00:00
Vasiliy Tolstov
11be2c68b9
util/stream: fix imports ( #1310 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-06 21:17:57 +00:00
Vasiliy Tolstov
a864f812f1
web: fix ipv6 address issue ( #1308 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-06 18:44:56 +03:00
Asim Aslam
ae60bea8d8
add stream fix ( #1305 )
2020-03-06 14:40:47 +00:00
Jake Sanders
a851b9db7a
Comment typo in gRPC subscriber ( #1304 )
2020-03-05 14:55:46 +00:00
Vasiliy Tolstov
d807dac2a7
server/grpc: avoid panic in case of nil Header ( #1303 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-05 17:45:31 +03:00
Vasiliy Tolstov
ce2ba71002
server: subscribe to topic with own name if router not nil ( #1295 )
...
* server: subscribe to topic with own name if router not nil
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-05 10:29:50 +03:00
Asim Aslam
67c26c71b6
add jitter ( #1298 )
2020-03-04 15:37:17 +00:00
ben-toogood
9386f36a13
Exit on log.Fatal ( #1297 )
2020-03-04 13:46:01 +00:00
ben-toogood
6d803d9e45
Implement api/server/cors ( #1294 )
2020-03-04 11:40:53 +00:00
ben-toogood
6a9001bdb1
Set auth account in context ( #1293 )
2020-03-04 09:54:52 +00:00
Jake Sanders
3f0c28a815
Expiration is actually a unix timestamp ( #1290 )
...
* Expiration is actually a unix timestamp
* int -> int64
2020-03-03 18:15:50 +00:00
Asim Aslam
49ffc60afb
Use Foo.Call on /foo ( #1286 )
...
Co-authored-by: Jake Sanders <i@am.so-aweso.me >
2020-03-03 16:47:15 +00:00
Jake Sanders
beb5e80e87
Fix nil pointer dereference ( #1289 )
2020-03-03 13:54:56 +00:00
Jake Sanders
eebd69c995
Change from renekroon/ttlcache to patrickmn/go-cache ( #1288 )
2020-03-03 13:35:49 +00:00
Jake Sanders
bc71989e2c
int64 -> time.Duration ( #1287 )
2020-03-03 13:15:26 +00:00
Vasiliy Tolstov
89ba602e17
logger fixes and improvements ( #1285 )
...
* fix helper fields
* add metadata output for default logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-03 11:07:37 +03:00
Jake Sanders
f6102bde70
Add a cache to workers KV storage implementation ( #1284 )
...
* cloudflare-cache
* go mod tidy
2020-03-02 18:14:25 +00:00
Pieter Voorwinden
7cad77bfc0
Initialize header to prevent assignment to entry in nil map error ( #1282 )
...
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-02 19:17:26 +03:00
ben-toogood
1f2e067f71
k8s runtime - get status from pods ( #1283 )
2020-03-02 15:49:10 +00:00
Vasiliy Tolstov
b555269b1b
copy fields in helper ( #1281 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-02 14:18:36 +00:00
ben-toogood
9200c70202
Replace validation error with regex for cockroach namespace ( #1270 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-01 22:09:06 +00:00
Sumanth Chinthagunta
d8377e09c9
feat(dockerfile): adding dumb-init to base image ( #1278 )
2020-02-29 21:55:15 +00:00
Vasiliy Tolstov
0754229878
broker/memory: add codec support ( #1276 )
...
allow easy testing of other services with memory broker
and also allows to more deeply simulate real brokers
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-29 23:00:29 +03:00
Vasiliy Tolstov
6b8930a960
add new helper method to logger ( #1273 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-29 00:39:41 +00:00
Vasiliy Tolstov
d0a978bd50
redesign logger ( #1272 )
...
* redesign logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-29 03:31:59 +03:00
ben-toogood
afe6861e2f
Update the k8s deployment to use metadata labels & custom source ( #1271 )
Run tests / Test repo (push) Waiting to run
2020-02-28 15:07:55 +00:00
ben-toogood
962567ef42
Implement config singleton ( #1268 )
...
* Implement config singleton
* Pass token in grpc request headers
* Refactor BearerScheme
* Fix typo
2020-02-28 12:58:27 +00:00
Asim Aslam
e21ed3a183
gen account on base32 decode failure ( #1269 )
2020-02-27 16:11:05 +00:00
Vasiliy Tolstov
64a5ce9607
various fixes ( #1267 )
...
* logger: remove Panic log level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: add missing Unlock in Subscribe error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: minor code change
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: extend test suite with pub/sub testing
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: fix invalid check and allow subscriber error to be returned
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: add pubsub tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* client/grpc: check for nil req/rsp
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-26 18:34:40 +00:00
Asim Aslam
d651b16acd
generate pseudo accounts ( #1264 )
...
* generate pseudo accounts
* when you think you're being clever
* return garbage pseudo account when no token
2020-02-26 13:42:32 +00:00
Eric
1034837f69
Adjusting the BeforeStart () position ( #1263 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-26 11:44:10 +03:00
Lars Lehtonen
80f2bfd5d0
config: remove unused sep variable ( #1262 )
2020-02-26 08:25:33 +00:00
Asim Aslam
6aaaf54275
add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and othe… ( #1261 )
...
* add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and other things
* fix wrapper panic
2020-02-25 22:15:44 +00:00
Di Wu
603d37b135
Set option and cli args to the service profile ( #1259 )
2020-02-25 16:42:42 +00:00
Eric
53c3bff819
add Panic & Panicf to logger ( #1258 )
...
* add Panic & Panicf to logger
2020-02-25 17:44:29 +03:00
ben-toogood
dcf859098b
Fix k8s commands for github ( #1257 )
2020-02-25 11:39:03 +00:00
Vasiliy Tolstov
b4a743898e
fix router panic ( #1254 )
...
Run tests / Test repo (push) Waiting to run
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 23:15:59 +00:00
ben-toogood
f1e7ea3020
Handle non IsNotExist errors in config ( #1251 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-24 18:07:11 +00:00
ben-toogood
5e8d5834eb
Dynamic Runtime source for k8s with github packages ( #1252 )
...
* Dynamic Runtime source for k8s
* Still check for source
* Replace / with - for k8s service names
* Simplify sourceForName function
2020-02-24 17:47:47 +00:00
ben-toogood
ffdf986aac
Refactor auth: add token and store implementations ( #1230 )
...
* Refactor auth: add token and memory implementations
* Fix typo
* Remove memory auth (implemented already by the store implementation), revert default to noop
* Add grpc header
* Global Config
* config/global => util/config
* Rename package to remove confict
* Tweak
* Improve Error Handling
2020-02-24 15:07:27 +00:00
Jake Sanders
56f8115ea8
Rename PR job ( #1250 )
2020-02-24 14:16:51 +00:00
Vasiliy Tolstov
5b0175c2e5
allocations improvements and tunnel fixes ( #1248 )
...
* reduce allocations in tunnel code
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* another allocation fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* allocate maps with len if it known
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* allocate key for send once
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 14:15:20 +00:00
Jake Sanders
01d88601c0
Split PR and merge tests ( #1249 )
2020-02-24 14:11:17 +00:00
Lars Lehtonen
d467236f8f
broker/nats: remove unused setPublishOption() ( #1234 )
...
broker/nats: remove unused setSubscribeOption()
2020-02-24 13:49:27 +00:00
Vasiliy Tolstov
24d574ae71
server/grpc: add MaxConn option to limit max inflight requests ( #1247 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 13:48:56 +00:00
Vasiliy Tolstov
cf0b39eaac
logger fixes ( #1244 )
...
* logger: fix race conditions
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* restore util/log for compatibility
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 13:07:40 +00:00
Vasiliy Tolstov
1f767ba18c
update go modules ( #1240 )
...
Run tests / Test repo (push) Waiting to run
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-23 20:47:44 +00:00
Asim Aslam
915c424213
Add docker build ( #1239 )
2020-02-23 15:57:21 +00:00
Vasiliy Tolstov
117f56ebf7
prune util/log and user logger ( #1237 )
...
* prune util/log and user logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* plaintext logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add newline
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-23 13:45:20 +00:00
Gao.QiLin
ceed8942fc
Update README.md change godoc => go.dev ( #1236 )
...
* Update README.md add go dev
* Update README.zh-cn.md add go dev
2020-02-22 08:56:42 +00:00
Vasiliy Tolstov
d1e25e7ead
add metadata set method ( #1232 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-21 23:04:47 +03:00
Jake Sanders
7e24c0c1cf
Also run tests on PR ( #1233 )
2020-02-21 17:57:07 +00:00
Jake Sanders
ca251ba111
Switch from Travis CI to GitHub Actions ( #1231 )
...
* Create Github Action to run tests on push
* -v
* Update tests.yml
* TODO: Fix tests
* Fix colours
* Delete .travis.yml
* Update tests.yml
* builds -> build
2020-02-21 17:43:50 +00:00
Asim Aslam
116855572b
Add log level helper funtions ( #1229 )
2020-02-21 08:43:23 +00:00
Asim Aslam
ee977acfef
strip SetGlobalLevel ( #1228 )
2020-02-21 08:28:21 +00:00
Sumanth Chinthagunta
3fa7c26946
logger with helper methods ( #1216 )
...
* support unix daemon socket
* refactor(logger): logger fields changed to map[string]interface{}
* improvement(logger): adding string to Level Parser
* improvement(logger): rename ParseLevel to GetLevel
* refactor(logger): adding basic logger
adding micro default logger, and refactor logger interface
* refactor(logger): moved basic logger to top level package
* refactor(logger): adding default logger
2020-02-21 07:57:59 +00:00
Lars Lehtonen
88457b812e
tunnel: Prune Unused Functions ( #1224 )
...
* tunnel: remove unused link.setLoopback()
* tunnel: remove unused link.accept()
* tunnel: remove unused link.connect()
2020-02-20 17:05:49 +00:00
Asim Aslam
78df154a4d
move log level setting to option ( #1222 )
2020-02-20 08:26:12 +00:00
Lars Lehtonen
c7eed618c2
server/grpc: Prune Unused Code ( #1220 )
...
* server/grpc: remove unused grpcServer.newCodec()
* server/grpc: remove unused defaultRPCCodecs
2020-02-19 20:58:22 +00:00
ben-toogood
36bcd3bd82
Improve JWT Package Errors ( #1206 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-19 09:51:43 +01:00
Asim Aslam
f4118dc357
secure the grpc client ( #1215 )
...
* secure the grpc client
* make compile
* Add system cert pool
* Revert manually adding ca certs
* Tweak comment
Co-authored-by: ben-toogood <bentoogood@gmail.com >
2020-02-19 08:44:35 +00:00
Vasiliy Tolstov
58598d0fe0
fixes for safe conversation and avoid panics ( #1213 )
...
* fixes for safe convertation
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix client publish panic
If broker connect returns error we dont check it status and use
it later to publish message, mostly this is unexpected because
broker connection failed and we cant use it.
Also proposed solution have benefit - we flag connection status
only when we have succeseful broker connection
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/handler/broker: fix possible broker publish panic
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-18 23:05:38 +00:00
Vasiliy Tolstov
6248f05f74
add missing option to client.NewMessage ( #1212 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-18 14:18:59 +03:00
ben-toogood
aa9a0a8d23
Fix Micro Proxy nil Transport Bug ( #1208 )
2020-02-17 12:28:48 +03:00
ben-toogood
1e40c86dfe
Ignore gRPC Proxy ( #1205 )
2020-02-17 08:14:45 +00:00
Asim Aslam
9696efde02
reorder auth interface ( #1204 )
2020-02-16 19:36:45 +00:00
Asim Aslam
b3fc8be24e
normalise proxy name ( #1203 )
2020-02-15 21:57:30 +00:00
Sumanth Chinthagunta
fc5339a368
[W.I.P] refactor(logger): logger fields changed to map[string]interface{} ( #1198 )
...
* support unix daemon socket
* refactor(logger): logger fields changed to map[string]interface{}
* improvement(logger): adding string to Level Parser
* improvement(logger): rename ParseLevel to GetLevel
2020-02-15 18:19:28 +00:00
Asim Aslam
964b7dee3f
add tls config to server ( #1202 )
...
* add tls config
* add TLSConfig to acme provider
2020-02-15 15:10:26 +00:00
Asim Aslam
158949d0d0
accept Listen option in grpc server ( #1201 )
2020-02-15 14:09:24 +00:00
Asim Aslam
eed8a0bf50
delete proxy cached route before updating ( #1200 )
2020-02-15 12:05:22 +00:00
Asim Aslam
c691d116ab
when the stream errors cleanup the connection ( #1199 )
2020-02-15 11:35:08 +00:00
Eric
cbe8b7dd09
Removed redundant spaces ( #1196 )
2020-02-14 10:32:02 +03:00
Asim Aslam
203486fd31
check for etcd watcher canceled value
2020-02-13 22:34:56 +00:00
Asim Aslam
d9b3b17582
set dial timeout in stream
2020-02-13 18:51:32 +00:00
ben-toogood
e080ecb43a
Auth Improvements ( #1195 )
...
* Exclude Stats & Trace from Auth
* Update Excluded Endpoints Format
* Tweak Implementation
2020-02-13 14:07:14 +00:00
ben-toogood
ea70711dd3
Exclude Stats & Trace from Auth ( #1192 )
2020-02-13 12:02:29 +00:00
Vasiliy Tolstov
6dc942bc19
client/grpc: fix panic on invalid message ( #1191 )
...
* client/grpc: fix panic on invalid message
* travis: disable lint and race for now
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-13 14:57:21 +03:00
Janos Dobronszki
d76baf59de
Trace type is now being recorded ( #1188 )
2020-02-12 10:57:17 +00:00
Vasiliy Tolstov
79ad1e6fe3
various fixes for broker and messaging in server ( #1187 )
...
* provide broker disconnect messages in server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* broker/eats: another fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-11 18:41:23 +00:00
Vasiliy Tolstov
2764de9a1a
broker/eats: broker disconnect fix ( #1186 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-11 15:46:50 +00:00
Asim Aslam
d1d6eada98
parse url encoded form in rpc handler ( #1183 )
...
* parse url encoded form in rpc handler
* Remove comment
2020-02-11 11:27:16 +00:00
ben-toogood
4a03183481
Return a 401 error on invalid auth tokens ( #1184 )
2020-02-11 11:22:22 +00:00
Asim Aslam
8ea84ac3eb
Fix router panic for nil watcher
2020-02-10 15:38:41 +00:00
ben-toogood
4401c12e6c
Auth Wrapper ( #1174 )
...
* Auth Wrapper
* Tweak cmd flag
* auth_excludes => auth_exclude
* Make Auth.Excludes variadic
* Use metadata.Get (passes through http and http2 it will go through various case formats)
* fix auth wrapper auth.Auth interface initialisation
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-10 08:26:28 +00:00
Vasiliy Tolstov
c706afcf04
logger helper to pass down it via context ( #1180 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-09 21:26:46 +00:00
Lars Lehtonen
ca1d0b94c3
config/cmd: remove 8 unused variables ( #1175 )
2020-02-08 11:19:10 +00:00
Vasiliy Tolstov
67acd9288b
config/source/cli: fix tests ( #1179 )
...
* config/source/cli: fix tests
* skip mdns test in travis
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-08 02:45:32 +03:00
Vasiliy Tolstov
0bf6c9fc08
config/source/cli: fix default flag value loading ( #1178 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-08 02:14:34 +03:00
Vasiliy Tolstov
99807a680c
strip Micro-Topic header from incoming context in client.Call ( #1177 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-07 22:09:52 +00:00
Vasiliy Tolstov
f0f7f860d6
add some docs ( #1176 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-07 21:48:24 +00:00
Asim Aslam
ef537270ad
Don't store traces for Debug endpoints
2020-02-07 20:58:03 +00:00
Asim Aslam
c7f075d157
rename file
2020-02-07 14:00:27 +00:00
Asim Aslam
812ea78604
Fix runtime deadlock
2020-02-07 14:00:09 +00:00
Asim Aslam
0755084a59
fix deadlock
2020-02-07 13:55:55 +00:00
ben-toogood
fe7f5a4134
Runtime Retries Limit ( #1163 )
...
* Implement Runtime Retries
* Remove Debug
* Action Feedback
* Refactor Retries
* Fix WithRetires Typo
2020-02-07 12:02:41 +00:00
ben-toogood
19c454ec4b
Fix Local Runtime Default Command ( #1173 )
...
* Auth API Proto
* Fix local runtime bug
* Add Platform Proto
* Restructuring
2020-02-07 11:39:26 +00:00
Asim Aslam
0e9b4c26a4
import with braces
2020-02-06 21:39:08 +00:00
Asim Aslam
d40b13a045
mux to mtx
2020-02-06 21:37:17 +00:00
Asim Aslam
4079b22c1e
reorder logger methods
2020-02-06 21:36:33 +00:00
Shu xian
fdfb2bc4c1
[WIP] logger first ( #1161 )
...
* logger first
* log->logger
* update comment
* add context in Options
* add Fields
* remove logfi
* add field encode
* add common Field Types
* update logger field
2020-02-06 21:35:46 +00:00
Asim Aslam
dbeb7cfe9c
remove errors import
2020-02-06 18:45:12 +00:00
Asim Aslam
512df2628f
trim source url if its set to github.com/
2020-02-06 18:34:16 +00:00
Janos Dobronszki
92571db693
Tracing: traces now correctly form a tree ( #1170 )
...
* First cut of trace
* Dial it back yo
* Defensive programming
2020-02-06 17:22:16 +00:00
ben-toogood
16552620e0
Runtime Custom Source (Part 2) ( #1169 )
2020-02-06 16:16:01 +00:00
Ben Toogood
5414195dc3
Add Args
2020-02-06 12:31:54 +00:00
Ben Toogood
0591760932
Arg => Args
2020-02-06 12:17:16 +00:00
Ben Toogood
48b9f3f5e9
Fix
2020-02-06 11:28:34 +00:00
Ben Toogood
e46278a766
Test
2020-02-06 11:24:56 +00:00
Ben Toogood
2925b1615c
Fix
2020-02-06 11:15:30 +00:00
Ben Toogood
fc4191c647
Fix
2020-02-06 11:12:40 +00:00
Ben Toogood
111126c780
Debugging
2020-02-06 11:00:14 +00:00
Ben Toogood
54371bba6a
Debugging
2020-02-06 10:55:41 +00:00
Ben Toogood
c28737e88e
Debugging
2020-02-06 10:54:11 +00:00
Ben Toogood
c7d922fac2
Debugging
2020-02-06 10:49:01 +00:00
Ben Toogood
f8e696bd30
Debugging
2020-02-06 10:44:12 +00:00
Ben Toogood
6aef28dad2
Runtime set service source
2020-02-06 10:33:23 +00:00
Vasiliy Tolstov
7105e4099c
pass micro errors from grpc server to grpc client ( #1167 )
...
* pass micro errors from grpc server to grpc client
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* wrap micro errors.Error to grpc status
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-06 10:18:33 +00:00
Ben Toogood
f0762bbb6b
Improve Logging
2020-02-06 10:16:32 +00:00
Ben Toogood
243c6a4246
Debug
2020-02-06 10:08:56 +00:00
Ben Toogood
9983aea928
Tidying Up
2020-02-06 09:29:27 +00:00
Ben Toogood
aa58a9749b
Action Asim's Feedback
2020-02-06 09:17:10 +00:00
ben-toogood
d8110b70a3
Runtime custom docker img ( #1168 )
...
* Add DeploymentOptions to K8s Client
* WithBaseImage for Runtime
* Revert Change
* Fix sequencing
2020-02-06 08:52:25 +00:00
Vasiliy Tolstov
a44dc90d45
fix ctx.Done issue #720 ( #1166 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-05 21:13:14 +00:00
Shu xian
12181bd441
fix LevelInfo > LevelWarn ( #1162 )
2020-02-05 18:16:57 +00:00
Ben Toogood
8d44f7226f
Merge branch 'master' of https://github.com/micro/go-micro
2020-02-05 13:59:51 +00:00
ben-toogood
bf747a86f4
Runtime ( #1160 )
...
* Add String to Runtime interface
* Setup Dynamic Runtime Configuration
2020-02-05 13:59:35 +00:00
Lars Lehtonen
4333f00a43
runtime/kubernetes: remove unused constants ( #1159 )
2020-02-04 21:02:05 +00:00
Vasiliy Tolstov
7ab3a31ac4
update micro/cli, tidy mod ( #1156 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-03 23:29:44 +00:00
Ben Toogood
a1d5d6831f
Add String to Runtime interface
2020-02-03 15:56:16 +00:00
ben-toogood
1b9cabd654
Update Micro Auth Protocol Buffer to use V2 ( #1155 )
2020-02-03 08:26:57 +00:00
ben-toogood
d621548120
Auth ( #1147 )
...
Implement the Auth interface, with JWT and service implementations.
* Update Auth Interface
* Define Auth Service Implementation
* Support Service Auth
* Add Auth Service Proto
* Remove erronious files
* Implement Auth Service Package
* Update Auth Interface
* Update Auth Interface. Add Validate, remove Add/Remove roles
* Make Revoke interface more explicit
* Refactor serializing and deserializing service accounts
* Fix srv name & update interface to be more explicit
* Require jwt public key for auth
* Rename Variables (Resource.ID => Resource.Name & ServiceAccount => Account)
* Implement JWT Auth Package
* Remove parent, add ID
* Update auth imports to v2. Add String() to auth interface
2020-02-03 08:16:02 +00:00
tpam28
449bcb46fe
New backoff ( #1153 )
...
* new backoff function
* use backoff from util/backoff
* remove reset atemts
* change comment
* fmt
2020-02-02 20:32:55 +00:00
Asim Aslam
079102ea59
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-02-02 19:50:09 +00:00
Asim Aslam
a9d371e727
fatal on command error
2020-02-02 19:49:59 +00:00
Asim Aslam
27efbc8779
Merge pull request #1150 from unistack-org/grpc_race
...
fix map race condition in grpc server
2020-02-01 00:10:46 +00:00
Vasiliy Tolstov
efb59d9709
fix map race condition in grpc server
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-01 02:52:53 +03:00
Asim Aslam
003f00b483
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-30 23:24:54 +00:00
Asim Aslam
0be22c98c6
add tracing
2020-01-30 23:24:46 +00:00
Asim Aslam
bafedf1aad
Merge pull request #1149 from alrs/remove-unused-kubernetes-variable
...
runtime/kubernetes: remove unused name variable
2020-01-30 17:30:43 +00:00
Lars Lehtonen
98d55545fd
runtime/kubernetes: remove unused name variable
2020-01-30 09:25:50 -08:00
Asim Aslam
5f6271b044
Merge pull request #1148 from tpam28/master
...
fix test and description
2020-01-30 17:09:41 +00:00
Evgeniy
87753ad289
format results in TestBacloff
2020-01-30 20:08:03 +03:00
Evgeniy
ffb9da0230
fix test and description
2020-01-30 19:43:03 +03:00
Asim Aslam
50ac642666
Merge pull request #1146 from tpam28/master
...
exponentialBackoff was changed from power function to exponential
2020-01-30 14:35:17 +00:00
Evgeniy
f6fcfcb8fc
exponentialBackoff was changed from power function to exponential function
2020-01-30 17:25:07 +03:00