Shelley
1af588df2f
Fix systemd ProtectHome setting
...
Run Tests / Unit Tests (push) Waiting to run
Run Tests / Etcd Integration Tests (push) Waiting to run
ProtectHome=true prevents services from writing to /home, which breaks
the default micro store that uses ~/.micro. Changed to ProtectHome=false.
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 13:40:18 +00:00
Shelley
2d65ceac6b
Fix non-constant format string in deploy error
...
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 13:27:45 +00:00
Shelley
f9236b4e6b
Add install script for micro CLI
...
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 13:22:54 +00:00
Shelley
45feec63aa
Fix systemd template escaping and rsync permission warnings
...
- Fix %i escaping in systemd template (was being interpreted by fmt.Sprintf)
- Handle rsync exit code 23/24 gracefully (metadata permission warnings)
- Add --omit-dir-times to rsync to avoid directory timestamp errors
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 13:22:32 +00:00
Shelley
b27dca0a69
Add deployment section to CLI documentation
...
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 13:14:38 +00:00
Shelley
de7a34b16e
Add deployment documentation
...
- docs/deployment.md: Comprehensive guide for server deployment
- README.md: Updated deployment section with full workflow
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 13:13:43 +00:00
Shelley
603c5db778
Add systemd-based deployment support
...
- micro init --server: Initialize server to receive deployments
- Creates /opt/micro/{bin,data,config} directories
- Generates systemd template unit (micro@.service)
- Creates 'micro' system user
- micro deploy: Deploy services via SSH + systemd
- Builds linux/amd64 binaries automatically
- Copies via rsync/scp to server
- Manages services via systemctl
- Helpful error messages for common issues
- micro status --remote: Check remote service status
- micro logs --remote: Stream remote logs via journalctl
- micro stop --remote: Stop services on remote server
- Config: Added 'deploy' blocks to micro.mu for named targets
The deployment model:
- systemd is the process supervisor (battle-tested)
- SSH is the transport (standard, secure)
- No custom daemons or platforms needed
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 13:12:44 +00:00
Asim Aslam
239dbfc27e
fix: make build/deploy Go-native, Docker optional ( #2835 )
...
micro build:
- Default: builds Go binaries to ./bin/
- Cross-compile with --os and --arch
- Docker is optional via --docker flag
micro deploy:
- Requires --ssh user@host
- Copies pre-built binaries (if ./bin/ exists)
- Or syncs source and builds on remote
- No Docker dependency
Go binaries are self-contained. No runtime needed.
Co-authored-by: Shelley <shelley@exe.dev >
2026-01-27 12:47:07 +00:00
Asim Aslam
de2b3031f3
feat: add micro build and micro deploy commands ( #2834 )
...
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:40:04 +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
Asim Aslam
21e0932339
Merge pull request #1144 from unistack-org/v2
...
fix import paths for v2 release
2020-01-30 11:46:29 +00:00
Vasiliy Tolstov
f23638c036
fix import paths for v2 release
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-30 14:44:40 +03:00
Asim Aslam
2b1e0a6fd6
go mod tidy
2020-01-30 10:33:40 +00:00
Asim Aslam
0889b814bb
Merge pull request #1143 from crufter/bump-dep
...
Bump dep to fix platform web using new debug.Stats proto fields
2020-01-30 10:31:12 +00:00
Janos Dobronszki
a648c0d99c
Bump dep to fix platform web using new debug.Stats proto fields
2020-01-30 10:27:21 +00:00
Asim Aslam
a291af59c4
Merge pull request #1142 from micro/tracing
...
Fix null tracer bug
2020-01-30 07:55:58 +00:00
Ben Toogood
d9f12731e1
Fix null tracer bug
2020-01-30 07:53:31 +00:00
Asim Aslam
4a838a8210
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-29 23:14:16 +00:00
Asim Aslam
5969cc358e
nats-e => eats
2020-01-29 23:14:05 +00:00
Asim Aslam
9f1a7e1139
Merge pull request #1127 from Allenxuxu/master
...
handle Loader.Load return value error
2020-01-29 22:44:29 +00:00
Asim Aslam
dc257f5066
update to fix tracer
2020-01-29 22:43:40 +00:00
Asim Aslam
49b86c56e3
go fmt
2020-01-29 22:40:43 +00:00
Asim Aslam
1be8258721
fix initialisation
2020-01-29 22:39:31 +00:00
Asim Aslam
b2980aecb7
fix debug handler in proxy
2020-01-29 22:31:57 +00:00
Asim Aslam
de3c3b27b2
Merge pull request #1140 from micro/tracing
...
Tracing by Ben Toogood
2020-01-29 22:28:49 +00:00
Micro
a09eea8d4d
Update the Debug Handler to use the servers tracer
2020-01-29 16:05:58 +00:00
Micro
62c067adcd
Refactor debug/trace ready for Jaeger
2020-01-29 15:45:11 +00:00
Asim Aslam
59f6ca5564
Merge pull request #1139 from alrs/prune-unused-config-reader-func
...
config/reader/json: remove unused newValue()
2020-01-28 19:50:03 +00:00
Lars Lehtonen
895aa896bc
config/reader/json: remove unused newValue()
2020-01-28 11:38:55 -08:00
Asim Aslam
74762edc42
Merge pull request #1138 from printfcoder/master
...
cockroach store supports URL connection string
2020-01-28 17:59:49 +00:00
shu xian
101017a29c
cockroach supports URL connection string
2020-01-29 00:47:41 +08:00
Shu xian
c725b4c797
Merge pull request #3 from micro/master
...
merge
2020-01-29 00:45:27 +08:00
Asim Aslam
1108cc5e91
Merge pull request #1136 from unistack-org/flags
...
update micro/cli to urfave/cli/v2 and fix go-micro
2020-01-26 19:12:06 +00:00
Asim Aslam
6a9f5fac61
fire send in a go routine to prevent blocking other requests
2020-01-25 23:16:00 +00:00
Vasiliy Tolstov
e6a34bcbe7
update micro/cli to urfave/cli/v2 and fix go-micro
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-25 15:57:08 +03:00
Asim Aslam
1d00f2f771
add trace handler
2020-01-24 22:02:35 +00:00
Asim Aslam
4a6570a772
trace wrapper
2020-01-24 21:58:29 +00:00
Asim Aslam
a997a86e49
add trace context
2020-01-24 21:44:48 +00:00
Asim Aslam
2d28ff72d7
add trace
2020-01-24 21:32:07 +00:00
Asim Aslam
2b1844971c
go fmt
2020-01-24 21:31:57 +00:00
Asim Aslam
49cc022ca2
add trace to handler
2020-01-24 21:29:29 +00:00
Asim Aslam
8d2dc8a822
trace Read endpoint
2020-01-24 21:24:51 +00:00
Asim Aslam
eeb6944ce5
Merge pull request #1133 from alrs/drop-unused-broker-code
...
broker: drop unused registryKey variable
2020-01-23 21:57:58 +00:00
Lars Lehtonen
add78f2967
broker: drop unused registryKey variable
2020-01-23 12:51:57 -08:00
Shu xian
bd6a5af2b5
Merge pull request #2 from micro/master
...
merge
2020-01-23 22:17:54 +08:00
Asim Aslam
ae08e9c106
check if event is nil
2020-01-23 12:41:22 +00:00
Asim Aslam
77c2a021da
Add event id to router events
2020-01-23 11:44:06 +00:00
Asim Aslam
1c19678d04
Update proto Service => Config
2020-01-23 11:37:54 +00:00
Asim Aslam
6d636b7ab3
whoa bad commit, bad asim
2020-01-22 17:07:56 +00:00
Asim Aslam
009c598049
Change version to latest
2020-01-22 17:03:38 +00:00
Asim Aslam
5cceb00df2
Merge pull request #1131 from micro/router-refactor
...
refactor and cleanup some router code
2020-01-22 16:54:20 +00:00
Asim Aslam
3e24276eb1
fix break
2020-01-22 16:44:34 +00:00
Asim Aslam
29c1076950
refactor and cleanup some router code
2020-01-22 16:33:31 +00:00
Asim Aslam
8dbacb34f8
Merge pull request #1118 from printfcoder/master
...
add mucp for config/source
2020-01-21 22:35:35 +00:00
Asim Aslam
8b306780ee
Merge pull request #1130 from micro/net-noloop
...
avoid connecting to self
2020-01-21 15:05:33 +00:00
Asim Aslam
9f7d374691
avoid connecting to self
2020-01-21 12:36:05 +00:00
Asim Aslam
a18e53f028
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-20 21:31:16 +00:00
Asim Aslam
2208839027
Merge pull request #1129 from alrs/remove-unused-server-var
...
server: remove unused invalidRequest
2020-01-20 18:24:42 +00:00
Lars Lehtonen
7a17a221ff
server: remove unused invalidRequest
2020-01-20 10:09:27 -08:00
Shu xian
8e1ff80b9e
Merge pull request #1 from micro/master
...
merge
2020-01-20 20:08:21 +08:00
shu xian
94bb0f4c08
watch supports path
2020-01-20 18:31:18 +08:00
Allenxuxu
dbe209ebe4
Merge branch 'master' of https://github.com/micro/go-micro
2020-01-20 08:37:34 +08:00
Asim Aslam
fa0d884cfe
fix bad import
2020-01-19 23:31:09 +00:00
Asim Aslam
ed2bd68d28
fix break in router service
2020-01-19 23:22:41 +00:00
Asim Aslam
97928e88f8
stop watcher
2020-01-19 23:15:57 +00:00
Asim Aslam
04cf86070c
close stream
2020-01-19 22:55:57 +00:00
Asim Aslam
9df19e826e
cancel stream
2020-01-19 22:53:56 +00:00
Asim Aslam
3f3c1919f4
strip certain plugins
2020-01-19 17:56:59 +00:00
Asim Aslam
d918694346
reorganise runtime
2020-01-19 17:47:27 +00:00
Asim Aslam
54fb61bba4
Move proto to service/
2020-01-19 17:31:24 +00:00
Asim Aslam
fac75866d9
Move pool to util
2020-01-19 17:30:49 +00:00
Asim Aslam
a47ff65529
remove mock client
2020-01-19 17:24:22 +00:00
Asim Aslam
093bcedfe7
remove http broker
2020-01-19 17:21:55 +00:00
Asim Aslam
7b6d560bec
Update README.md
2020-01-19 13:55:23 +00:00
Asim Aslam
43aa4e23bd
update readme
2020-01-19 13:51:31 +00:00
Asim Aslam
bdd9ec560b
strip sub comments
2020-01-19 13:47:14 +00:00
Asim Aslam
0c03bf064b
only connect broker if there are subscribers
2020-01-19 13:45:28 +00:00
Asim Aslam
9a8c1b7ab8
update broker
2020-01-19 13:35:23 +00:00
Asim Aslam
e1ca40c1fc
go fmt
2020-01-19 13:32:30 +00:00
Asim Aslam
e75b99f89c
go fmt
2020-01-19 13:32:24 +00:00
Allenxuxu
ee7304a795
NewConfig return value error
2020-01-19 16:42:05 +08:00
Allenxuxu
a82fd19209
handle Loader.Load return value error
2020-01-19 16:31:02 +08:00
Asim Aslam
1983d607f3
set nats-e
2020-01-19 01:47:30 +00:00
Asim Aslam
10093a0ea2
set to nats-e
2020-01-19 01:29:00 +00:00
Asim Aslam
fc08a9146c
Add broker comments on server subscribe
2020-01-19 01:16:36 +00:00
Asim Aslam
cafd280718
Default to grpc in registry service for now
2020-01-19 01:13:14 +00:00
Asim Aslam
11b104677a
Shift embedded nats to the default
2020-01-19 00:55:01 +00:00
Asim Aslam
105596a0e5
use mucp server
2020-01-18 20:48:08 +00:00
Asim Aslam
0a37767127
Fix service registration with registry service
2020-01-18 19:53:51 +00:00
Asim Aslam
31e195bac7
strip image pull policy always
2020-01-18 18:37:38 +00:00
Asim Aslam
bdf1d20f4e
extract an ip that can be advertised in embedded nats
2020-01-18 15:39:26 +00:00
shu xian
8d6f82707a
update to standard name convention
2020-01-18 23:16:23 +08:00
Asim Aslam
058fd8adbf
trace 1
2020-01-18 10:20:46 +00:00
Asim Aslam
13d1d2fa08
hard stop if graceful stop fails after 1 second
2020-01-18 10:18:23 +00:00
Asim Aslam
e666d0b807
add missing commit
2020-01-18 02:28:44 +00:00
Asim Aslam
39d7938405
Extract k8s run error
2020-01-18 02:13:24 +00:00
Asim Aslam
65df711b01
move nats local logic
2020-01-18 01:29:53 +00:00
Asim Aslam
fd6eb23307
do not wait to stop
2020-01-18 00:58:27 +00:00
Asim Aslam
fb3927fb8c
Merge pull request #1126 from milosgajdos83/metric-update
...
Update route metric when receiving Sync routes
2020-01-17 18:29:55 +00:00
Milos Gajdos
891af703be
Update route metric when receiving Sync routes
2020-01-17 18:24:36 +00:00
Asim Aslam
474472eedd
Merge pull request #1124 from milosgajdos83/flush-advert-query
...
Use the same logic for advertising routes in Router and Network
2020-01-17 16:49:11 +00:00
Milos Gajdos
23d65145e6
Use the same logic for advertising routes in Router and Network
...
router.Query() allows to query the routes with given router.Strategy.
It uses the same logic as was implemented in flushRoutes but the code
was never updated. This way we are consistent across both router and
network packages.
2020-01-17 16:25:18 +00:00
shu xian
9ea4919b9b
rename mucp source directory to service
2020-01-17 23:53:33 +08:00
Asim Aslam
f78e30770e
Merge pull request #1123 from milosgajdos83/sync-metric
...
Update route metric before sending the Sync message
2020-01-17 15:44:49 +00:00
Milos Gajdos
bf9f319cdf
Update route metric before sending the Sync message
2020-01-17 15:38:28 +00:00
shu xian
ad28b72dd3
rename mucpSource to service
2020-01-17 23:27:41 +08:00
Asim Aslam
8425ae77f8
Merge pull request #1122 from micro/blocking
...
don't block forever
2020-01-17 15:24:03 +00:00
Asim Aslam
d7b9b2713b
don't block forever
2020-01-17 15:23:10 +00:00
Asim Aslam
be788415ad
minor runtime fixes
2020-01-17 14:14:47 +00:00
shu xian
a03791c581
set DefaultClient
2020-01-17 21:32:00 +08:00
Asim Aslam
ee922a3da6
Merge pull request #1121 from milosgajdos83/no-routes-found
...
Continue processing Sync if no routes were returned from router Query
2020-01-17 13:05:47 +00:00
Milos Gajdos
624f1c1980
Continue processing Sync if no routes were returned from router Query
2020-01-17 12:58:13 +00:00
Milos Gajdos
607a226e34
Updated debug logs to make them less verbose
2020-01-17 12:14:56 +00:00
Asim Aslam
bac1bbfd97
Merge pull request #1120 from milosgajdos83/remove-solicit
...
Remove Solicitation from the network
2020-01-16 20:02:05 +00:00
Milos Gajdos
7f9b3b5556
Remove Solicitation from the network
...
Instead, when a new peer is discovered it is sent a sync message i.e. we
do the full sync when discovering peers
2020-01-16 19:43:10 +00:00
Asim Aslam
ba12513199
Merge pull request #1119 from milosgajdos83/sync-best-routes-only
...
Send only best routes via Sync. Only apply best routes.
2020-01-16 18:17:26 +00:00
Milos Gajdos
8fcfbc0d20
Strip unnecessary continue statement
2020-01-16 17:33:53 +00:00
Milos Gajdos
472186c1be
Code consistency. Small bug fix.
2020-01-16 17:04:04 +00:00
Milos Gajdos
60c05bd899
Find the best routes in the routes we would advertise based on Strategy
2020-01-16 16:53:39 +00:00
Milos Gajdos
793e6013e5
Advertise routes with configured strategy. Simplify Sync apply logic
2020-01-16 16:42:23 +00:00
shu xian
071ab7aede
add mucp for config/source
2020-01-17 00:10:15 +08:00
Milos Gajdos
eda8b00f84
Send only best routes via Sync. Only apply best routes.
2020-01-16 16:08:49 +00:00
Asim Aslam
eac2ab3c28
Merge pull request #1117 from micro/scheduler
...
Switch notifier to scheduler
2020-01-16 13:41:13 +00:00
Asim Aslam
76fba34c2f
Merge pull request #1116 from milosgajdos83/query-strategy
...
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 13:39:39 +00:00
Asim Aslam
491a42d352
Switch notifier to scheduler
2020-01-16 13:34:04 +00:00
Milos Gajdos
5e85194a13
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 12:48:36 +00:00
Asim Aslam
689ae7cfc7
Storing tunnel.Session rather than transport.Client
2020-01-16 00:28:58 +00:00
Asim Aslam
19dbd77402
fix net masking in listed routes
2020-01-16 00:12:38 +00:00
Asim Aslam
b194b3adc9
Merge pull request #1115 from micro/net-mask
...
mask the route before sending
2020-01-15 23:13:53 +00:00
Asim Aslam
33a9b3bc17
mask the route before sending
2020-01-15 23:06:58 +00:00
Asim Aslam
6562154573
Fix the next panic
2020-01-15 21:38:37 +00:00
Asim Aslam
b32ebddf85
update nlopes/slack dep
2020-01-15 21:22:07 +00:00
Asim Aslam
b3e3dac975
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-15 21:02:58 +00:00
Asim Aslam
f20e4daa60
fix rand panic
2020-01-15 21:02:53 +00:00
Asim Aslam
f67d87e99d
Merge pull request #1114 from milosgajdos83/network-backward-compatibility
...
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:57:57 +00:00
Milos Gajdos
36928b716c
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:45:43 +00:00
Asim Aslam
7c7b0ced5f
Merge pull request #1104 from milosgajdos83/network-hackery
...
[WIP] Network hackery
2020-01-14 20:28:32 +00:00
Milos Gajdos
c67ef7e017
Bug fix: skip sending sync message if the peer is not in our graph
2020-01-14 19:37:50 +00:00
Milos Gajdos
dcd925f1e5
Code cleanup; Indentation.
2020-01-14 18:48:42 +00:00
Milos Gajdos
0ea56a5ffe
Fixed tests
2020-01-14 18:22:58 +00:00
Milos Gajdos
821fda41ae
Added Status method to network.Node fixed random segfaults.
2020-01-14 18:12:36 +00:00
Asim Aslam
1d311ab457
Embedded NATS Broker ( #1110 )
...
* if the address is produced by a default route don't hash it
* embedded nats
* fix url parsing
* don't override help
* add ready flag
2020-01-14 13:23:16 +00:00
Asim Aslam
b699d969e4
if the address is produced by a default route don't hash it ( #1108 )
2020-01-14 11:20:13 +00:00
Milos Gajdos
994d371ff1
Removed redundant comments. Add proper PruneStalePeers test.
2020-01-14 10:49:34 +00:00
Milos Gajdos
a91dad04ee
Increment node error count and prune when Max limit is hit
2020-01-13 22:22:12 +00:00
Milos Gajdos
b4261e8cf9
Updated log and comments
2020-01-13 20:14:30 +00:00
Milos Gajdos
efcac3d009
Define tunnel errors
2020-01-13 20:14:30 +00:00
Milos Gajdos
770c7686ba
Fix nasty bug when graph action may not have been executed in some
...
branches
2020-01-13 20:14:30 +00:00
Milos Gajdos
11904e1137
Regular sync with network every 5 minutes. Apply routes before peering.
2020-01-13 20:14:29 +00:00
Milos Gajdos
1e009e52dd
Avoid having the same log statements in initNodes and resolveNodes
2020-01-13 20:14:29 +00:00
Milos Gajdos
bf42c028fb
Added sync message. Refactored connect flow. Adverts are gossipped.
...
This commit adds a Sync message which is sent as a reply to Connect
message. This should in theory speed up convergence of a (re)connecting
node.
We respond to Sync message by sending a peer message back to the peer
origin of the Sync message. We consequently update our routing table and
peer graph with the data sent in via Sync message.
We now gossip advertse to up to 3 randomly selected peers instead of
sending a multicast message to the network.
Equally, Solicitation i.e. full table adverts are gossipped to a
randomly selected peer. If that fails we send a multicast message to the
network.
2020-01-13 20:14:29 +00:00
Milos Gajdos
0a4bd02503
Add RefreshSync method for Sync bookkeeping
2020-01-13 20:14:29 +00:00
Milos Gajdos
63edfaa852
Added Sync message
...
Sync message will be sent between peers when a new node connects/joins
the network
2020-01-13 20:14:29 +00:00
Milos Gajdos
802cc8239a
Send solicit message properly. Updated comments.
2020-01-13 20:14:29 +00:00
Matthew Costa
75b1a62af3
Replace service prefix with FQDN style prefix ( #1107 )
...
* Replace service prefix with FQDN style prefix
According to the k8s documentation, the label and annotation prefixes should be in the format of a FQDN, with dot separated labels of no more than 63 characters. The current label and annotation paramteres are rejected by the k8s api, most likely because they have two forward slashes in them.
* Use go.micro as service and annotation prefix
2020-01-12 14:37:12 +00:00
Maarten Bezemer
50b20413d3
RPC stream client/server mutex fix ( #884 )
...
* Unlock RPC client while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Unlock RPC server while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Protect Close() against race conditions
* Concurrency and Sequence tests
2020-01-12 09:13:14 +00:00
Shu xian
fa5b3ee9d9
config/reader.Values add Set for specific path merge ( #1099 )
...
* add Set for specific path merge
* add Set
* add Del
2020-01-11 20:50:09 +00:00
Asim Aslam
f50a50eeb3
go fmt
2020-01-10 21:54:36 +00:00
Asim Aslam
e1e6199743
normalise runtime service status
2020-01-10 21:54:28 +00:00
Asim Aslam
61dd2b8489
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-10 19:13:59 +00:00
Asim Aslam
6ca298c61d
set default store, fix store options bug, add String method
2020-01-10 19:13:55 +00:00
Vasiliy Tolstov
f4fb923fb2
pass additional context for broker subscribe ( #1105 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-10 15:04:15 +00:00
shikbupt
32a2005f6d
add option for web service signal handler ( #1091 )
2020-01-10 14:25:28 +00:00
Asim Aslam
37d1139a57
ensure we close the grpc stream ( #1098 )
...
* ensure we close the grpc stream
* use g.Close
* use closed bool flag for checking connection close
2020-01-09 17:00:14 +00:00
Asim Aslam
a90a74c9e2
Change the store interface to remove variadic args ( #1095 )
2020-01-08 22:23:14 +00:00
Milos Gajdos
78aed5beed
Fixed tunnel race conditions. ( #1094 )
2020-01-08 14:48:38 +00:00
Milos Gajdos
59fccb82ec
Updated comments. Tiny cleanup changes. ( #1093 )
2020-01-08 13:18:11 +00:00
Asim Aslam
048065fe96
support ability to set store, address and namespace via flags and env vars ( #1092 )
2020-01-08 12:11:31 +00:00
Asim Aslam
0b8ff3a8bb
fix grpc json streaming by setting content sub type ( #1089 )
2020-01-07 18:37:34 +00:00
Asim Aslam
1892bd05a5
only add api endpoint metadata if it exists ( #1087 )
2020-01-06 22:22:36 +00:00
Asim Aslam
be6e8a7c78
add store to defaults ( #1086 )
2020-01-06 17:44:32 +00:00
Asim Aslam
df9055f69c
continue to process messages even after the connection is closed
2020-01-03 20:43:53 +00:00
Asim Aslam
649dd235c3
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-03 19:46:24 +00:00
Asim Aslam
1af82df8b1
Check link is grpc
2020-01-03 19:46:14 +00:00
Eagle Wu
7098e59b5c
remove ignore error in method publish ( #1075 )
2020-01-03 17:24:19 +00:00
Shu xian
31362bc331
prevent resource leak ( #1080 )
2020-01-03 13:31:47 +00:00
Asim Aslam
4e2339749c
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-02 21:19:50 +00:00
Asim Aslam
9cecf2e097
make grpc proxy streaming work
2020-01-02 21:11:25 +00:00
Lars Lehtonen
fe9c68238f
runtime/kubernetes: remove unused name variable ( #1078 )
2020-01-02 20:42:46 +00:00
Asim Aslam
225b17559b
fix log streaming
2020-01-02 18:23:43 +00:00
Asim Aslam
e697912ee5
don't panic on nil
2020-01-01 21:56:29 +00:00
Asim Aslam
6358b9277d
don't write anything if theres no data
2019-12-31 22:58:14 +00:00
Asim Aslam
45c986c5f1
don't marshal frame values
2019-12-31 21:36:22 +00:00
Asim Aslam
fa01ff6604
update ctx test
2019-12-31 13:53:48 +00:00
Asim Aslam
fe1e018e8e
update wrapper test
2019-12-31 13:45:49 +00:00
Asim Aslam
60ea537bbc
upper case the metadata
2019-12-31 13:37:29 +00:00
Asim Aslam
488dc31743
log when starting the service
2019-12-31 12:07:52 +00:00
Asim Aslam
b6915f0898
set grpc by default ( #1070 )
2019-12-30 18:33:21 +00:00
Asim Aslam
04dfe4e867
fix breaking test
2019-12-30 17:39:02 +00:00
Asim Aslam
d8fe030a4b
go fmt
2019-12-30 17:29:57 +00:00
Asim Aslam
f40d4578d5
go fmt
2019-12-30 17:29:45 +00:00
Asim Aslam
e0078bbcd5
Remove use of config/cmd in api
2019-12-30 17:29:20 +00:00
Asim Aslam
c145f355dd
Moving to gRPC by default ( #1069 )
...
* Step 1
* Fix the test panics
2019-12-29 21:07:55 +00:00
Vasiliy Tolstov
943445270f
fix registry check issue ( #1067 )
...
fix #1066
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-28 11:11:46 +00:00
Asim Aslam
61cde4a9f4
Kubernetes Registry ( #1064 )
...
* add teh k8s registry
* add k8s reg config/cmd
* go mod update
2019-12-27 20:08:46 +00:00
jamsonzan
22aa7d14b3
support streams pool for grpc ( #1062 )
...
* Update grpc_pool.go
* Update options.go
* Update grpc.go
* Update grpc_pool_test.go
* streams pool for grpc
* use busy list to speed up allocate while pool is very busy
* fix idle bug
2019-12-27 12:25:58 +00:00
Eagle Wu
a09b6729cc
Fix missing recover while occur panic in handler ( #1063 )
2019-12-27 10:53:11 +00:00
Asim Aslam
2fe64001c0
Start runtime services inline
2019-12-24 17:51:30 +00:00
Asim Aslam
14c9c412cd
Move and rename
2019-12-24 17:45:17 +00:00
Asim Aslam
361fdfba04
move around k8s api
2019-12-24 17:42:22 +00:00
Asim Aslam
5c8d1ae2b9
Update k8s log options
2019-12-24 17:33:05 +00:00
Asim Aslam
81e20160f5
reorder
2019-12-23 08:49:53 +00:00
Asim Aslam
ef95b28e3d
add Write method to config source
2019-12-23 08:42:57 +00:00
shikbupt
1781542964
fix etcd LogConfig bug ( #1056 )
2019-12-23 07:29:13 +00:00
Asim Aslam
45208992b5
NewLog
2019-12-20 23:36:16 +00:00
Asim Aslam
847a01df82
Cleanup k8s logs
2019-12-20 23:34:08 +00:00
Jake Sanders
ce33e3b072
Kubernetes logging ( #1054 )
...
* wip
* Implementation of Kubernetes Logger
* Missing file
* Skip test in Travis
2019-12-20 23:16:05 +00:00
Asim Aslam
ae12fd1021
update crap logging
2019-12-19 18:25:22 +00:00
Asim Aslam
95ae2688a2
add formatters
2019-12-19 12:29:03 +00:00
Asim Aslam
2bcfb85613
Add log Format option
2019-12-19 12:20:33 +00:00
Asim Aslam
d52a111735
add requests/errors to stats
2019-12-18 18:36:42 +00:00
Asim Aslam
d4bec24eb7
Add os log buffer
2019-12-18 17:06:29 +00:00
Asim Aslam
2338e7c9d2
Cleanup go mod
2019-12-18 16:12:25 +00:00
Asim Aslam
f0e841595c
move to structured logging
2019-12-18 16:02:11 +00:00
Asim Aslam
a82af19d43
strip newline
2019-12-18 15:19:20 +00:00
Asim Aslam
5d7254e79a
fix the os logger
2019-12-18 15:06:25 +00:00
Asim Aslam
7c21a1b92a
go fmt
2019-12-18 15:06:02 +00:00
Asim Aslam
587f64a87a
Merge pull request #1051 from micro/event
...
publisher => event
2019-12-18 15:04:38 +00:00
Asim Aslam
cb9c4c3aef
publisher => event
2019-12-17 23:05:46 +00:00
Asim Aslam
dda96cb87e
Merge pull request #976 from micro/auth
...
First interface for auth
2019-12-17 21:38:11 +00:00
Asim Aslam
ebae497a72
use service rather than resource
2019-12-17 21:37:20 +00:00
Asim Aslam
515014fbeb
update with resource
2019-12-17 21:27:05 +00:00
Asim Aslam
e9efcbe8dc
strip logger
2019-12-17 18:34:21 +00:00
Asim Aslam
5a52593e66
go fmt
2019-12-17 18:24:00 +00:00
Asim Aslam
c61e12d5ee
add event proto for runtiem
2019-12-17 18:17:32 +00:00
Asim Aslam
c2d59c1f4d
Move logger
2019-12-17 18:16:45 +00:00
Jake Sanders
812fe9e640
Merge pull request #1049 from micro/kubernetes-logging
...
Kubernetes logging
2019-12-17 17:44:24 +00:00
Jake Sanders
f95bccce84
Use UTC in tests
2019-12-17 17:36:01 +00:00
Jake Sanders
81e7edd666
Adhere to new interfaces
2019-12-17 17:24:01 +00:00
Asim Aslam
46fd205eda
rename files
2019-12-17 17:08:38 +00:00
Jake Sanders
c2b307e5bb
Merge branch master of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 17:08:31 +00:00
Jake Sanders
b7ac62f7d2
Merge branch 'master' of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 17:06:07 +00:00
Asim Aslam
50d5c6402b
Merge pull request #1048 from micro/logging
...
Move stream to interface
2019-12-17 17:05:13 +00:00
Asim Aslam
d2a3fd0b04
Move stream to interface
2019-12-17 16:56:55 +00:00
Jake Sanders
51f4bc6d56
Add logs to Interface
2019-12-17 16:30:09 +00:00
Jake Sanders
c3607c23e7
Fix after merge
2019-12-17 16:27:17 +00:00
Jake Sanders
34b1c403bb
Merge branch 'master' of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 16:13:36 +00:00
Asim Aslam
91e057440d
Merge pull request #1047 from micro/decruft-logger
...
Decruft logger
2019-12-17 16:13:20 +00:00
Jake Sanders
53ca742c66
Update the util/kubernetes client to retrieve logs
2019-12-17 16:09:51 +00:00
Asim Aslam
b35dfb1086
fix further breaks
2019-12-17 15:56:49 +00:00
Asim Aslam
d502e2f58a
fix breaks
2019-12-17 15:46:09 +00:00
Asim Aslam
bc30efcf70
Decruft the debug logger interface
2019-12-17 15:38:03 +00:00
Jake Sanders
0415ead504
First commit for Kubernetes logger
2019-12-17 12:11:26 +00:00
Jake Sanders
e95f44d3f8
Move runtime/kubernetes/client to util/kubernetes/client
2019-12-17 11:32:38 +00:00
Asim Aslam
0489ae91e9
Merge pull request #1021 from unistack-org/registry_check
...
add RegisterCheck web server option for internal health checks
2019-12-17 08:49:00 +00:00
Asim Aslam
4e02f444fd
Merge pull request #1024 from unistack-org/server
...
add server Context option to pass own context
2019-12-17 08:48:39 +00:00
Asim Aslam
6027a81f06
Update router comments
2019-12-17 08:28:45 +00:00
Asim Aslam
01f0e70213
add some commented out stuff
2019-12-16 17:37:11 +00:00
Asim Aslam
cb15fadcee
go fmt
2019-12-16 17:36:47 +00:00
Asim Aslam
1c8d15fe4b
Merge pull request #1046 from micro/storefix
...
Fix cockroachdb store implementation
2019-12-16 17:24:53 +00:00
Jake Sanders
55f5937c8b
Remove debug
2019-12-16 17:16:10 +00:00
Jake Sanders
56619f2745
Fix cockroachdb store implemetation
2019-12-16 17:11:13 +00:00
Asim Aslam
0b59e2ce3d
Merge pull request #1028 from Astone-Chou/fix
...
named return value for error defer modify.
2019-12-16 15:39:58 +00:00
Asim Aslam
1ea6390eae
Add proxy string method
2019-12-16 15:18:20 +00:00
Asim Aslam
303adca500
rename postgres to cockroach
2019-12-16 15:09:59 +00:00
Asim Aslam
03700ae6c0
Replace proxy options
2019-12-16 14:55:47 +00:00
Asim Aslam
a1ddfa827e
Merge pull request #1045 from micro/store-options
...
change store options
2019-12-16 14:46:15 +00:00
Asim Aslam
59751c02e6
change store options
2019-12-16 14:38:51 +00:00
Jake Sanders
e8e112144f
Create database should take the name of the database
2019-12-16 14:15:30 +00:00
Asim Aslam
59246e0412
Merge pull request #1044 from micro/store-namespace
...
change use of store namespace/prefix in sql store
2019-12-16 12:20:57 +00:00
Asim Aslam
0131e9468f
change use of store namespace/prefix in sql store
2019-12-16 12:13:18 +00:00
Asim Aslam
d5951f1d7c
Merge pull request #1042 from ZGeomantic/feat-client-mock
...
support ctx as input params, error as output for MockClient.Call
2019-12-15 15:12:17 +00:00
Asim Aslam
f33b562c16
Merge pull request #1043 from jamsonzan/branch0
...
comment
2019-12-15 10:50:52 +00:00
jamsonzan
572fe58314
comment
2019-12-15 15:05:19 +08:00
gemantic
5602b93d7a
support ctx as input params, error as output for MockClient.Call
2019-12-14 10:36:12 +08:00
Asim Aslam
64e438a8d4
Merge pull request #1038 from micro/tun
...
Next level tunnel optimisation
2019-12-13 15:34:03 +00:00
Asim Aslam
b0b6b8fce2
final updates
2019-12-13 15:27:47 +00:00
Asim Aslam
417a05db60
Merge pull request #1039 from xpunch/etcdLogConfig
...
Etcd log config
2019-12-13 09:23:54 +00:00
johnson
11e42aac69
etcd can set log config
...
default log level is info, which will log o log of unused logs
2019-12-13 11:22:05 +08:00
potato
885ba8f905
Merge pull request #6 from micro/master
...
Pull latest go-micro
2019-12-13 11:10:29 +08:00
Asim Aslam
caa74d1b5f
fix build
2019-12-12 23:29:44 +00:00
Asim Aslam
f6b4a9da1c
strip some code
2019-12-12 23:20:31 +00:00
Asim Aslam
74c5102e41
strip a couple things
2019-12-12 21:49:39 +00:00
Asim Aslam
7bd50cd251
fix more broken cruft
2019-12-12 17:10:32 +00:00
Asim Aslam
df728aaddd
remove go routines from tunnel, fire network messages in go routines
2019-12-12 13:34:08 +00:00
Asim Aslam
ae934c19f1
fix tunnel test
2019-12-12 13:04:34 +00:00
Asim Aslam
e260cc4a24
save cruft
2019-12-12 12:27:46 +00:00
Asim Aslam
631faff7b8
Merge pull request #1035 from alrs/fix-grpc-test-goroutines
...
Fix service/grpc Test Goroutines
2019-12-11 16:39:22 +00:00
Lars Lehtonen
fd531349d7
service/grpc: t.Fatal out of TestGRPCTLSService() goroutine
2019-12-11 08:29:23 -08:00
Lars Lehtonen
27bab29e3c
service/grpc: t.Fatal out of TestGRPCService() goroutine
2019-12-11 08:29:14 -08:00
Asim Aslam
27af221fd2
batch metric updates
2019-12-11 15:23:08 +00:00
Asim Aslam
6e28e7a86f
Save current state of the world
2019-12-11 14:37:03 +00:00
Asim Aslam
ff69d46c98
strip some cruft from config/cmd
2019-12-10 18:12:29 +00:00
Asim Aslam
e966944ae5
sort resolved node list in network by lowest priority
2019-12-10 17:57:04 +00:00
Asim Aslam
8da77a3ddc
use fixed port names for runtime k8s
2019-12-10 14:05:05 +00:00
Asim Aslam
8289dbabc4
Merge pull request #1034 from micro/strip-handlers
...
Strip handlers
2019-12-10 11:54:06 +00:00
Asim Aslam
d50f30d743
strip handlers
2019-12-10 11:46:13 +00:00
Asim Aslam
f8533551a4
move debug to trace for network peer refresh
2019-12-10 09:09:24 +00:00
Asim Aslam
7e46ff5d92
strip some more logging down
2019-12-10 09:08:03 +00:00
Asim Aslam
6b1eef5354
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-09 22:56:33 +00:00
Asim Aslam
b29da80539
Move a few things around
2019-12-09 22:56:26 +00:00
Asim Aslam
a725ab2c94
Merge pull request #1032 from jankremlacek/patch-1
...
nlopes/slack dep update to fix broken unmarshal
2019-12-09 21:17:34 +00:00
Jan Kremlacek
1582aa1572
proper go.mod, go.sum
2019-12-09 22:08:57 +01:00
Jan Kremlacek
5352d53346
nlopes/slack dep update to fix broken unmarshal
...
About a month ago Slack introduced the updated structure of RTM messages which resulted in an inability to unmarshal received msg (original issue: https://github.com/nlopes/slack/issues/630 ). It's not an issue of micro itself, but of the github.com/nlopes/slack lib. The fix was already merged into master (https://github.com/nlopes/slack/pull/618 ), but the lib has not been released in any new version.
Thus so I propose to update directly to the commit:
go get github.com/nlopes/slack@d06c2a2b3249b44a9c5dee8485f5a87497beb9ea
The MicroBot does now work now with any Slack client newer than around a month old.
2019-12-09 21:52:28 +01:00
Asim Aslam
7d884eff9d
Merge pull request #1031 from alrs/fix-web-test-goroutines
...
web: fix test goroutines
2019-12-09 18:03:07 +00:00
Lars Lehtonen
c9af88184b
web: fix test goroutine in TestService()
2019-12-09 09:44:14 -08:00
Lars Lehtonen
f25ad35f0a
web: fix test goroutine in TestTLS()
2019-12-09 09:28:42 -08:00
Asim Aslam
55ab44c8be
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-09 09:32:33 +00:00
Asim Aslam
59c1680594
Move Debug to Trace in router
2019-12-09 09:32:17 +00:00
Asim Aslam
b804303aa0
Merge pull request #1029 from Astone-Chou/lint_fix_fix
...
fix tiny error in linting fixes
2019-12-09 07:47:46 +00:00
Astone
55a15ecf12
fix tiny error in linting fixes
2019-12-09 11:18:45 +08:00
Astone
caa1bcf9fe
named return value for error defer modify.
2019-12-09 11:08:21 +08:00
Asim Aslam
e2b2a30668
add net/http/pprof profiler
2019-12-08 20:31:16 +00:00
Asim Aslam
a9be1288d2
Merge pull request #1026 from micro/tun
...
Network & Tunnel refactor
2019-12-08 16:01:46 +00:00
Asim Aslam
679214e598
just return filtered routes
2019-12-08 15:39:45 +00:00
Asim Aslam
6064e1426c
fix some potential go routine leaks
2019-12-08 15:02:54 +00:00
Asim Aslam
d28a868e46
Fix network startup connect
2019-12-08 14:37:17 +00:00
Asim Aslam
398acc67ca
fix broken test
2019-12-08 13:45:24 +00:00
Asim Aslam
ce578800d0
n.initNodes
2019-12-08 12:17:31 +00:00
Asim Aslam
6307d6ba51
further cleanup of tunnel/network
2019-12-08 12:12:20 +00:00
Asim Aslam
283c85d256
done
2019-12-08 00:53:55 +00:00
Asim Aslam
9bd0fb9125
save changes
2019-12-07 23:28:39 +00:00
Asim Aslam
c445aed6b1
Cleanup and speedup network convergence along with direct messaging for connect and solicit
2019-12-07 19:54:29 +00:00
Asim Aslam
1d8c66780e
save working solution
2019-12-06 00:18:40 +00:00
Asim Aslam
219efd27e9
Optimise the multicast to use one session in the tunnel
2019-12-05 23:11:42 +00:00
Asim Aslam
ac9001ac74
advert ttl inline with router table tick
2019-12-05 17:50:32 +00:00
Asim Aslam
2896614595
Merge pull request #1025 from milosgajdos83/router-knobs
...
Changed a few router knobs to avoid storms ⛈
2019-12-05 17:50:02 +00:00
Milos Gajdos
bca12a7003
Changed a few router knobs to avoid storms ⛈
2019-12-05 17:11:17 +00:00
Vasiliy Tolstov
1c5a4c470f
add server Context option to pass own context
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-05 19:37:03 +03:00
Asim Aslam
744b19d625
Merge pull request #1023 from milosgajdos83/dead-code
...
Fixing dead code and go vet moaning
2019-12-05 16:18:13 +00:00
Milos Gajdos
5865e89bed
Fixing dead code and go vet moaning
2019-12-05 16:10:49 +00:00
Asim Aslam
3a10b1cdde
Merge pull request #1022 from milosgajdos83/tunnel-races
...
This PR fixes various tunnel race conditions
2019-12-05 15:59:29 +00:00
Milos Gajdos
5db7514a91
This PR fixes various tunnel race conditions
2019-12-05 15:50:32 +00:00
Vasiliy Tolstov
a957e90ca8
add RegisterCheck web server option for internal health checks
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-05 17:28:11 +03:00
Asim Aslam
18cf025056
Merge pull request #1020 from Allenxuxu/master
...
Avoid excessive memory usage
2019-12-05 11:56:44 +00:00
Allenxuxu
b55b7d6b20
replace map with list
2019-12-05 19:29:48 +08:00
Asim Aslam
26b5d1994a
Merge pull request #1019 from tboerger/no-newlin
...
No newlines at end of log messages
2019-12-05 10:08:16 +00:00
Thomas Boerger
30aec5b872
No newlines at end of log messages
...
Log messages should not end with a new line, this should be entirely
handled by the underlying log library.
Signed-off-by: Thomas Boerger <thomas@webhippie.de >
2019-12-05 10:56:45 +01:00
Asim Aslam
b0626089f3
Merge pull request #1016 from unistack-org/lint
...
lint fixes mostly for prealloc also remove deadcode from grpc client
2019-12-05 08:33:52 +00:00
Asim Aslam
af3d4e595f
in memory stats buffer
2019-12-05 00:08:46 +00:00
Asim Aslam
40c09eed1c
Logs to Log
2019-12-05 00:01:17 +00:00
Asim Aslam
fe46e7a9e9
Logs to Log
2019-12-04 23:58:29 +00:00
Asim Aslam
78647c7027
add timestamp to stats
2019-12-04 23:51:07 +00:00
Asim Aslam
26755f86b1
Merge pull request #1018 from micro/debug-service
...
Debug service
2019-12-04 14:40:58 +00:00
Asim Aslam
898848795b
tab indent
2019-12-04 12:28:16 +00:00
Asim Aslam
24efbe6a41
Move debug handler to service dir
2019-12-04 12:27:30 +00:00
Asim Aslam
97433f716f
add service name to debug proto
2019-12-04 12:02:44 +00:00
Asim Aslam
5200febaea
add stats debug interface
2019-12-04 11:53:20 +00:00
Vasiliy Tolstov
a1eaf9cc20
linting fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-04 00:22:02 +03:00
Asim Aslam
3f8af8c1e0
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-03 20:32:10 +00:00
Asim Aslam
becaeefcba
Revert. DO NOT peer solicit until we know better
2019-12-03 20:32:02 +00:00
Vasiliy Tolstov
7d5bdcf993
fix pointer dereference in memory registry
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 23:05:03 +03:00
Asim Aslam
81a7cf458c
Merge pull request #1013 from unistack-org/linting
...
add golanglint-ci
2019-12-03 16:57:00 +00:00
Asim Aslam
a4ea61334b
Merge pull request #1015 from milosgajdos83/router-race
...
Fix router race condition
2019-12-03 16:55:56 +00:00
Asim Aslam
3fbba9f83d
Merge pull request #1014 from milosgajdos83/memreg-race
...
Fix memory registry race
2019-12-03 16:51:36 +00:00
Milos Gajdos
4a11a4c546
Fix router race condition
2019-12-03 15:22:54 +00:00
Milos Gajdos
265233517e
Fix memory registry race
2019-12-03 14:53:07 +00:00
Vasiliy Tolstov
c581ceb1dc
add golanglint-ci
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 16:31:43 +03:00
Asim Aslam
bb1a1358b7
Merge pull request #1012 from Astone-Chou/lint
...
improve code quality
2019-12-03 13:10:04 +00:00
Astone
29fb58db39
improve code quality
2019-12-03 20:59:02 +08:00
Asim Aslam
b6f0164501
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-03 08:11:46 +00:00
Asim Aslam
2c0801fc1c
couple bug fixes in tunnel
2019-12-03 08:11:36 +00:00
Asim Aslam
34c92f4964
Merge pull request #1011 from Astone-Chou/master
...
optimize: a better way for return error
2019-12-03 07:48:21 +00:00
Astone
f9b900b2ca
optimize: a better way for return error
2019-12-03 12:47:29 +08:00
Asim Aslam
b5d65305db
Merge pull request #1009 from unistack-org/panics
...
recover panics
2019-12-02 23:30:17 +00:00
Vasiliy Tolstov
b8e96f45d4
add recovery in case of panics
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 02:25:40 +03:00
Vasiliy Tolstov
90f9b0d0c9
initialize client options context if not provided
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 01:35:59 +03:00
Asim Aslam
972c0989af
Merge pull request #1008 from micro/connect-fast
...
Optimizations to connect fast
2019-12-02 19:09:56 +00:00
Asim Aslam
5f04fd58ab
optimizations to connect fast
2019-12-02 18:48:19 +00:00
Asim Aslam
da04aa8ae8
Switch to AdvertiseLocal by default
2019-12-02 17:36:20 +00:00
Asim Aslam
62bf0df864
Merge pull request #1007 from micro/ultra-hacks
...
ultra hacks to make debug handler work in proxy
2019-12-02 15:11:56 +00:00
Asim Aslam
91e9c0cb62
ultra hacks to make debug handler work in proxy
2019-12-02 14:55:35 +00:00
Asim Aslam
3356b83f24
register debug handler
2019-12-01 21:04:09 +00:00
Asim Aslam
795ec509fd
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-01 19:43:45 +00:00
Asim Aslam
93d66afe8c
fix that broken logic
2019-12-01 19:43:36 +00:00
Asim Aslam
c840cee404
A variety of fixes to try combat the multicast issue
2019-12-01 19:36:16 +00:00
Milos Gajdos
e48cce6485
Merge pull request #1005 from milosgajdos83/nano-seconds
...
Time resolution change to be in line with debug/handler.Handler
2019-12-01 18:39:59 +00:00
Milos Gajdos
b2ecd93404
Time resolution change to be in line with debug/handler.Handler
2019-12-01 18:33:08 +00:00
Asim Aslam
2928c66624
Merge pull request #1004 from milosgajdos83/debug-logs
...
[WIP] Debug logs
2019-12-01 17:40:40 +00:00
Milos Gajdos
4613a820ca
Small refactoring og logs
...
* log.Write now accepts log.Record
* we stream last 10 records first
* regenerate proto because of the above
2019-12-01 13:16:44 +00:00
Milos Gajdos
ecdadef633
Added hack support for logs streaming cruft
2019-12-01 13:16:44 +00:00
Milos Gajdos
7f1dea72f2
Simplified Logs RPC. Cleaned up code. Added comments.
2019-12-01 13:16:44 +00:00
Milos Gajdos
612f872f76
Server should not close the stream when done
2019-12-01 13:16:44 +00:00
Milos Gajdos
13d2a9ec7a
Register proto handler properly
2019-12-01 13:16:44 +00:00
Milos Gajdos
9fab47ecdb
Added DefaultLog variables
2019-12-01 13:16:44 +00:00
Milos Gajdos
265e8ade05
Embed DebugHandler proto
2019-12-01 13:16:44 +00:00
Milos Gajdos
60e0e81523
Added debug/service to grab the logs from a service
2019-12-01 13:16:43 +00:00
Milos Gajdos
b01357058a
Regenerate proto cruft
2019-12-01 13:16:43 +00:00
Milos Gajdos
7deafbc5ce
Added ReadOptions; Changed proto; Reimplemented Log(er)
2019-12-01 13:16:43 +00:00
Milos Gajdos
9e177be560
Embed logger into debug.Handler
2019-12-01 13:16:43 +00:00
Milos Gajdos
ee9776e7b2
Added debug.Logger interface
2019-12-01 13:16:43 +00:00
Milos Gajdos
3f7f2afc7b
Dont be stupid -- stream does not require pointer.
2019-12-01 13:16:43 +00:00
Milos Gajdos
4e965e4ce5
First commit. Modified proto. Added empty handler method.
2019-12-01 13:16:43 +00:00
Asim Aslam
6f1c30aef5
remove unused value in router
2019-11-30 21:39:03 +00:00
Asim Aslam
00bbb3ac61
revert some protocol changes for now
2019-11-30 21:20:33 +00:00
Asim Aslam
ce1942c578
why didn't we think of this before...single service name for http broker
2019-11-30 21:00:36 +00:00
Asim Aslam
df7169c9f2
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-30 01:16:53 +00:00
Asim Aslam
5e59db4c6d
revert mdns timeout
2019-11-30 01:16:32 +00:00
Asim Aslam
25b3fda25b
Merge pull request #1002 from micro/tun-fix
...
fix bug in the tunnel which causes multicast connections to be closed
2019-11-30 01:16:12 +00:00
Asim Aslam
9678daeafa
fix bug in the tunnel which causes multicast connections to be closed
2019-11-30 01:14:40 +00:00
Asim Aslam
9ed257f151
Merge pull request #1001 from micro/storm
...
Changes for the storm
2019-11-29 17:33:23 +00:00
Asim Aslam
107124e5dc
Changes for the storm
2019-11-29 17:27:29 +00:00
Asim Aslam
ce4acfa892
fix type filtering for k8s runtime
2019-11-29 13:05:18 +00:00
Asim Aslam
6bf4828296
triple the mdns timeout
2019-11-29 13:05:07 +00:00
Asim Aslam
76b4e78a6a
fix command to accept variadic args
2019-11-29 11:55:25 +00:00
Asim Aslam
8b6475b8d4
Merge pull request #1000 from micro/runtime-type
...
Support service types in runtime
2019-11-29 11:46:21 +00:00
Asim Aslam
c3ed83dfba
Support service types in runtime
2019-11-29 11:35:00 +00:00
Asim Aslam
114bc1e18b
Merge pull request #995 from micro/rpc-leak
...
Fix rpc go routine leak
2019-11-27 17:24:19 +00:00
Asim Aslam
af94899b54
Fix rpc go routine leak
2019-11-27 17:12:07 +00:00
Asim Aslam
266b6dbc64
add debug buffer time based access
2019-11-27 13:57:19 +00:00
Asim Aslam
5932dd753c
Merge pull request #981 from unistack-org/subscriber
...
subscriber recovery
2019-11-27 10:28:51 +00:00
Vasiliy Tolstov
86a6328254
subscriber recovery
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-27 13:21:20 +03:00
Asim Aslam
0d33c029a9
Merge pull request #994 from milosgajdos83/validator-regexp
...
Remove validator regexp as its no longer needed.
2019-11-27 08:10:00 +00:00
Milos Gajdos
8ecd2381a4
Remove validator regexp as its no longer needed.
2019-11-26 23:10:45 +00:00
Asim Aslam
7318807dce
Merge pull request #993 from micro/k8s-fixes
...
Add fixes for label selector and skipping things that don't match
2019-11-26 22:32:58 +00:00
Asim Aslam
811275be26
Add fixes for label selector and skipping things that don't match
2019-11-26 22:28:08 +00:00
Asim Aslam
3f3fd38601
Add spec.template.metadata.annotations to the k8s template
2019-11-26 18:14:49 +00:00
Asim Aslam
44dd0b1302
Merge pull request #991 from micro/k8s-update
...
Patch spec template annotations and use event timestmap
2019-11-26 17:38:56 +00:00
Asim Aslam
6475c1f3ad
Patch spec template annotations and use event timestmap
2019-11-26 17:33:41 +00:00
Asim Aslam
deabf0b8c9
fix entry into nil map
2019-11-26 14:56:23 +00:00
Asim Aslam
04ee4b04ad
Merge pull request #990 from micro/buffer
...
Add debug/buffer package as a simple ring buffer
2019-11-26 14:27:39 +00:00
Asim Aslam
2892686c5f
Merge pull request #988 from micro/k8s-update
...
Change the k8s runtime notifier update to get the deployment and upda…
2019-11-26 14:21:42 +00:00
Asim Aslam
8ee31a63f1
Add debug/buffer package as a simple ring buffer
2019-11-26 14:20:45 +00:00
Asim Aslam
4e363da91f
Merge pull request #989 from micro/proto
...
Regenerate the protos
2019-11-26 13:57:49 +00:00
Asim Aslam
8b63df7a98
regenerate the protos
2019-11-26 13:53:33 +00:00
Asim Aslam
b06854b0d5
Change the k8s runtime notifier update to get the deployment and update build
2019-11-26 13:49:52 +00:00
Jake Sanders
39bf71376a
Add some more issue templates ( #987 )
...
* Add some more issue templates
* Update bug_report.md
* Update bug_report.md
2019-11-26 11:48:14 +00:00
Jake Sanders
12d9c5b187
Merge pull request #986 from micro/bug-report-template
...
Create Bug Report Issue Template
2019-11-26 11:25:42 +00:00
Jake Sanders
d2eba3f8f9
Create Bug Report Issue Template
...
To encourage users to provide context with bug reports
2019-11-26 11:17:32 +00:00
Milos Gajdos
19f2f8b161
Merge pull request #982 from xmlking/master
...
go-micro docker now includes unprivileged user
2019-11-26 10:54:18 +00:00
Sumanth Chinthagunta
d41185eb84
go-micro docker now includes unprivileged user
2019-11-25 18:42:24 -08:00
Asim Aslam
c420fa2dec
Merge pull request #979 from milosgajdos83/tunnel-encrypt
...
[WIP] Tunnel encryption
2019-11-25 19:12:24 +00:00
Asim Aslam
db03a564fb
Merge pull request #980 from unistack-org/issue-940
...
grpc client goroutine leak fix
2019-11-25 19:10:34 +00:00
Vasiliy Tolstov
9763820c75
grpc client goroutine leak fix
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-25 22:02:24 +03:00
Milos Gajdos
9095b99f6b
Token has been stripped; Headers are encrypted
2019-11-25 18:56:00 +00:00
Asim Aslam
080363e8c4
The mega cruft proxy PR ( #974 )
...
* the mega cruft proxy PR
* Rename broker id
* add protocol=grpc
* fix compilation breaks
* Add the tunnel broker to the network
* fix broker id
* continue to be backwards compatible in the protocol
2019-11-25 16:31:43 +00:00
Asim Aslam
252667398e
Update the runtime for k8s name formatting and move Get to Read endpoint ( #978 )
...
* Update the runtime for k8s name formatting and move Get to Read endpoint
* strip regex validation
2019-11-25 16:31:14 +00:00
Milos Gajdos
f82c267d81
Encrypt session communication
2019-11-25 15:37:38 +00:00
Milos Gajdos
61fe552ac4
First commit: Outline of tunnel encryption code
2019-11-25 14:58:12 +00:00
Asim Aslam
7013e7467f
Undefined time
2019-11-25 09:33:30 +00:00
Asim Aslam
dbc537007d
First interface for auth
2019-11-25 09:30:26 +00:00
Asim Aslam
95045be83d
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-23 22:50:45 +00:00
Asim Aslam
52ccd900c7
reorder service struct fields
2019-11-23 22:50:13 +00:00
罗泽轩
64a251d69a
improve the syncMap.Iterate test to make it 100% reproducible ( #970 )
...
* improve the syncMap.Iterate test to make it 100% reproducible
* rename store/mocks/Store.go
* rename mocks/store to mock/store
2019-11-23 14:13:17 +00:00
Asim Aslam
cae4148594
Fix platform specific os/process build
2019-11-23 08:25:56 +00:00
Milos Gajdos
38e29c5101
Svc metadata ( #972 )
...
* Added service metadata
* Added metadata to runtime service
* Add Annotations metadata to service metadata
* Add micro/micro as default service owners
* Update runtime/kubernetes/client/kubernetes.go
Change comment
Co-Authored-By: Jake Sanders <i@am.so-aweso.me >
2019-11-22 17:10:00 +00:00
Milos Gajdos
8dc3fb964e
Pass source of service to Deployment API; render templates properly ( #969 )
...
* Pass source of service to Deployment API; render templates properly
* Enable Go modules by default. Honor runtime.Service.Exec
* Make sure you remove go.mod and go.sum
2019-11-21 17:31:13 +00:00
Asim Aslam
212144d658
fix windows compilation error
2019-11-21 11:19:52 +00:00
Milos Gajdos
11d81221cc
Runtime service implementation ( #965 )
2019-11-20 14:54:42 +00:00
Milos Gajdos
55252cbc32
Fix the router test; get rid of time dependency ( #964 )
2019-11-20 14:53:12 +00:00
Asim Aslam
c87a58db0a
add ability to set web icon
2019-11-20 12:43:43 +00:00
Vasiliy Tolstov
49d73faa5f
return error to caller on grpc server request processing ( #962 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-20 10:28:30 +00:00
Vasiliy Tolstov
da6c1be607
dont panic on missing headers in broker event ( #963 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-20 07:55:47 +00:00
Milos Gajdos
94d409b180
Change DefaultImage to micro/go-micro
2019-11-19 20:49:01 +00:00
Milos Gajdos
d6e97c5970
Service.Exec is a slice of strings ( #960 )
2019-11-19 19:36:29 +00:00
Asim Aslam
64d5a528ca
fix broken build
2019-11-19 16:55:33 +00:00
Milos Gajdos
538d3752f9
Added Dockerfile for go-micro ( #959 )
2019-11-19 16:50:31 +00:00
Asim Aslam
fb5b358ae2
fix mdns test
2019-11-19 16:50:16 +00:00
Milos Gajdos
6a0082741c
Packager is now builder ( #958 )
2019-11-19 16:09:43 +00:00
Shu xian
5744050943
api event supports for GET url params ( #956 )
2019-11-18 16:37:45 +00:00
Asim Aslam
168cc06827
increase timeout on travis
2019-11-18 12:58:06 +00:00
Asim Aslam
fa01cadc35
lower the mdns timeout to 10ms ( #955 )
2019-11-18 12:50:51 +00:00
Asim Aslam
342c29de7d
fix TestMemoryRegistryTTLConcurrent test
2019-11-16 21:13:06 +00:00
Asim Aslam
eeed493766
move test data
2019-11-16 18:52:27 +00:00
Asim Aslam
90d7a87914
Move wrapper internally since its not top level relevant
2019-11-16 18:48:24 +00:00
Erik Hollensbe
a1c6cdf193
Now specify HandleSignal as an option to toggle signal handling. ( #948 )
...
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 11:13:34 +00:00
Erik Hollensbe
bec13a45cd
Attempt to fix the timing error in the memory concurrency test ( #952 )
...
Only shows in travis
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 11:11:13 +00:00
Erik Hollensbe
4107733453
Memory registry from #801 with additional tweaks ( #951 )
...
* PoC: memory registry using maps instead of slice madness
* Updated proto and handlers. Fixed tests across codebase.
* Implemented ttl pruning for memory registry
* Added extensive memory registry tests
* Squased a bunch of bugs
* Proto indent; memory.Registry.String() returns "memory"
* Write a test to prove memory registry TTLs are busted
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
* Additional memory testing and fixups:
* DefaultTTL removed
* When TTL == 0, it is automatically removed from expiry conditions
* Additional improvements to new tests
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 10:55:11 +00:00
Milos Gajdos
97c1300f53
[WIP] Micro Runtime ( #947 )
...
* Add Get() and GetOptions.
* Removed watcher. Outline of client. YAML templates
* Added default service and deployment templates and types
* Added API tests and cleaned up errors.
* Small refactoring. Template package is no more.
* Ripped out existing code in preparation to small rework
* Reshuffled the source code to make it organized better
* Create service and deployment in kubernetes runtime
* Major cleanup and refactoring of Kubernetes runtime
* Service now handles low level K8s API calls across both K8s deployment
an service API objects
* Runtime has a task queue that serves for queueing runtime action
requests
* General refactoring
* No need for Lock in k8s service
* Added kubernetes runtime env var to default deployment
* Enable running different versions of the same service
* Can't delete services through labels
* Proto cruft. Added runtime.CreateOptions implementation in proto
* Removed proxy service from default env variables
* Make service name mandatory param to Get method
* Get Delete changes from https://github.com/micro/go-micro/pull/945
* Replaced template files with global variables
* Validate service names before sending K8s API request
* Refactored Kubernetes API client. Fixed typos.
* Added client.Resource to make API resources more explicit in code
2019-11-15 13:41:40 +00:00
mirwaisx
0af8be35bb
-bugfix #889 set body corretly in case of missing content-type ( #950 )
2019-11-15 13:03:45 +00:00
Asim Aslam
a91b3f3e8b
windows specific os tag
2019-11-15 08:20:05 +00:00
Asim Aslam
383658edf2
Fix a runtime deadlock as well as fixing some graceful exiting issues ( #945 )
2019-11-14 14:26:21 +00:00
Asim Aslam
16754a7477
Set theme jekyll-theme-architect
2019-11-14 11:55:07 +00:00
Asim Aslam
58b25d7241
Update CNAME
2019-11-14 11:54:16 +00:00
Asim Aslam
1c7d44282e
Set theme jekyll-theme-minimal
2019-11-14 11:17:02 +00:00
Asim Aslam
8e9eef794f
Set theme jekyll-theme-minimal
2019-11-14 11:15:50 +00:00
Asim Aslam
920c026f14
Create CNAME
2019-11-14 11:01:36 +00:00
Asim Aslam
946c76cb03
Delete CNAME
2019-11-14 11:01:27 +00:00
Asim Aslam
43d11a9b8d
Create CNAME
2019-11-14 10:50:51 +00:00
Asim Aslam
9f481542f3
Fix a codec race by locking the buffers. Include a buffer pool for perf. ( #941 )
...
* Fix a codec race by locking the buffers. Include a buffer pool for perf.
* Read Lock on buffer Read
2019-11-13 11:05:53 +00:00
Asim Aslam
cffa5b6b50
Make use of cloudflare 1.0.0.1 by default to resolve addresses
2019-11-12 15:46:30 +00:00
Asim Aslam
8867539d78
Update FUNDING.yml
2019-11-12 12:35:09 +00:00
Asim Aslam
671408b3a5
Create FUNDING.yml
2019-11-12 12:27:51 +00:00
Lars Lehtonen
bdb62e8ed1
store/postgresql: fix dropped error ( #938 )
2019-11-12 07:54:33 +00:00
Asim Aslam
72522a869a
fix endpoint extractor panic
2019-11-11 17:37:48 +00:00
Asim Aslam
fd5c29addc
Add the ability to only advertise local routes or don't advertise at all ( #932 )
...
* Add the ability to only advertise local routes or don't advertise at all
* Reorder processing to shortcircuit no advertising
2019-11-11 15:28:37 +00:00
Asim Aslam
65b1283459
add metadata.Get(context, key) as short hand
2019-11-11 09:13:02 +00:00
Huang.X
5ffe367cae
fix# Change the Log level and add WarnLevel ( #935 )
...
* fix# Change the Log level and add WarnLevel
* fix# Change the Log level and add WarnLevel
2019-11-11 07:57:13 +00:00
Till Knuesting
5ae3e179b9
preallocated slices ( #934 )
2019-11-11 00:03:51 +00:00
Vasiliy Tolstov
c696a859be
fix data race for server Wait option ( #931 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-09 21:52:41 +00:00
Asim Aslam
174b01ca29
update link in readme
2019-11-09 16:20:54 +00:00
Asim Aslam
c433de80cd
Update go mod
2019-11-09 15:44:52 +00:00
Asim Aslam
f2b4c07a00
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-09 15:37:54 +00:00
Asim Aslam
929ffdcc42
Update readme
2019-11-09 15:37:30 +00:00
Lars Lehtonen
5aa28dfb0d
store/cloudflare: fix dropped error ( #930 )
2019-11-09 15:18:51 +00:00
Asim Aslam
a9e8fc6039
Don't set stream unless its true
2019-11-09 10:32:52 +00:00
Milos Gajdos
0b1e6d7eaf
Simplified k8s API Body watcher code and test. ( #923 )
2019-11-08 15:57:32 +00:00
Milos Gajdos
1ffa289d39
Make build timestamp parsing errors clearer ( #929 )
2019-11-08 15:57:07 +00:00
Milos Gajdos
68419cc024
Patch deployment spec metadata ( #928 )
2019-11-08 14:12:03 +00:00
Vasiliy Tolstov
8227206208
use service id in profile file name ( #925 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-08 09:11:55 +00:00
Milos Gajdos
6f28852e1b
K8s list deployments ( #921 )
...
* Outline of ListDeployments method
* Added implementation of DeploymentList
2019-11-07 07:44:57 +00:00
Asim Aslam
0e3550229b
update readme
2019-11-06 22:04:02 +00:00
Asim Aslam
f9400ba713
update readme
2019-11-06 22:03:35 +00:00
Asim Aslam
ce080d76c6
add debug/profile package ( #920 )
...
* add debug/profile package
* set service+version for profile
2019-11-06 19:36:04 +00:00
Asim Aslam
254045e9f3
Remove go routines for mdns watcher and cache registry ( #919 )
2019-11-06 15:49:40 +00:00
Milos Gajdos
b84134581c
Flap detection vol2 ( #915 )
...
* We now purge flapping routes before regular tick processes them
* Updated comments
* Record the timestamp as soon as you receive the event
* Set route Address to routing table test
* Fixed a bunch of deadlocks. Added basic Router tests.
2019-11-05 17:44:24 +00:00
Till Knuesting
f67c5e779f
preallocated slices ( #917 )
2019-11-05 17:43:12 +00:00
Milos Gajdos
4a694c9d02
Change flap detection configuration ( #914 )
...
* Change flap detection configuration
* Make PenaltyHalfLife a float, not int 🤦♂️
* Lower event suppression to 200
2019-11-04 19:01:52 +00:00
Till Knuesting
24b8d2a315
preallocating slices ( #904 )
...
* preallocated some slices when size is known
* gofmt
* gofmt
2019-11-04 10:33:53 +00:00
Asim Aslam
2f3c251b00
Recovery should be < 500
2019-11-03 17:10:00 +00:00
Asim Aslam
c1b0a968ae
Augment the router penalty and decay as a hack fix ( #912 )
...
* Augment the router penalty and decay as a hack fix
* increase recovery cost
2019-11-03 16:29:10 +00:00
Asim Aslam
81e9298be6
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-03 16:12:24 +00:00
Asim Aslam
45cd14c4b7
Suppress log messages
2019-11-03 16:12:17 +00:00
罗泽轩
8579c8b321
avoid deadlock in syncMap.Iterate ( #909 )
...
Previously, when syncMap iterates a list of records which have the same
content in different order, a deadlock might happen. By enforcing a certain
order, the deadlock can be avoided.
2019-11-03 08:18:48 +00:00
罗泽轩
bd37e67839
fix a typo in sync/lock/memory package ( #910 )
2019-11-03 08:17:01 +00:00
Asim Aslam
d3151f1f0f
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-02 23:13:10 +00:00
Asim Aslam
c45ea62ea8
Do not deregister services in the monitor unless Reap is called
2019-11-02 23:13:01 +00:00
Yang Shi
c14bf5dc4e
improve the log of panic recovering ( #906 )
2019-11-02 23:08:54 +00:00
Asim Aslam
292da40886
runtime handler/proto placeholder
2019-11-02 22:54:35 +00:00
Milos Gajdos
6f7702a093
[WIP] K8s update and runtime package changes ( #895 )
...
* First commit: outline of K8s runtime package
* Added poller. Added auto-updater into default runtime
* Added build and updated Poller interface
* Added comments and NewRuntime that accepts Options
* DefaultPoller; Runtime options
* First commit to add Kubernetes cruft
* Add comments
* Add micro- prefix to K8s runtime service names
* Get rid of import cycles. Move K8s runtime into main runtime package
* Major refactoring: Poller replaced by Notifier
POller has been replaced by Notifier which returns a channel of events
that can be consumed and acted upon.
* Added runtime configuration options
* K8s runtime is now Kubernetes runtime in dedicated pkg. Naming kung-fu.
* Fix typo in command.
* Fixed typo
* Dont Delete service when runtime stops.
runtime.Stop stops services; no need to double-stop
* Track runtime services
* Parse Unix timestamps properly
* Added deployments into K8s client. Debug logging
2019-11-02 13:25:10 +00:00
Asim Aslam
a94a95ab55
Merge pull request #908 from hb-chen/fix-907
...
fix-907
2019-11-02 08:59:14 +00:00
Hobo86
e8d2f207d8
fix-907
...
web service need modify registry service nodes while register interval
2019-11-02 16:39:56 +08:00
Asim Aslam
bd1918900e
Merge pull request #901 from micro/sqlstore
...
Implementation of PostgreSQL for micro store
2019-11-01 15:48:47 +00:00
Asim Aslam
cf3af68e31
Merge pull request #903 from tegk/gofmt
...
used gofmt with -s flag on whole project
2019-11-01 15:25:53 +00:00
Jake Sanders
15e3b9b4c0
Let people connect with just a hostname
2019-11-01 15:16:05 +00:00
Asim Aslam
107a7ab07f
Merge pull request #902 from micro/runtime-panic
...
Fix panic caused when ctrl+c a non started service
2019-11-01 15:12:33 +00:00
Asim Aslam
e9dfccc616
Fix panic caused when ctrl+c a non started service
2019-11-01 15:08:01 +00:00
tegk
f88518d994
used gofmt with -s flag on whole project
2019-11-01 15:07:53 +00:00
Jake Sanders
ee35fe61af
update go.mod for postgres
2019-11-01 14:13:47 +00:00
Jake Sanders
dee63b2b2c
Implementation of postgres store
2019-11-01 14:13:21 +00:00
Asim Aslam
0aa01b2ebf
Output the build error in plugin
2019-11-01 08:33:14 +00:00
Asim Aslam
f089a89e8a
Merge pull request #897 from micro/route-filtering
...
add ability to filter routes based on headers
2019-11-01 08:15:23 +00:00
Asim Aslam
174fbde049
add ability to filter routes based on headers
2019-10-31 22:34:06 +00:00
Asim Aslam
967d7ecda7
fix runtime panic
2019-10-31 22:30:21 +00:00
Asim Aslam
fb76755684
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-10-31 17:22:45 +00:00
Asim Aslam
cf593e7c50
fix link panic
2019-10-31 17:22:38 +00:00
Asim Aslam
74286c2939
Merge pull request #893 from yandd/master
...
fix rcache ttl
2019-10-30 21:31:08 +00:00
yandd
f9c639af4e
fix rcache ttl
2019-10-30 14:01:51 +08:00
Asim Aslam
dab0f3223f
Add Update/List endpoints to runtime
2019-10-29 12:29:21 +00:00
Asim Aslam
d89256d8d5
add network resolver record priority field
2019-10-28 15:31:46 +00:00
Asim Aslam
99b410c81b
fix metadata test
2019-10-25 23:28:43 +01:00
Asim Aslam
92b7d2db3b
Rename to Merge
2019-10-25 23:27:59 +01:00
Asim Aslam
20c6c36bc4
Merge pull request #883 from xmlking/master
...
PatchContext method added
2019-10-25 23:23:37 +01:00
Asim Aslam
1f626a55ed
Merge pull request #887 from micro/collapse-routes
...
hash address based on service name + node address
2019-10-25 23:12:56 +01:00
Asim Aslam
b42d242ec1
hash address based on service name + node address
2019-10-25 23:06:49 +01:00
Asim Aslam
51922c1763
Refresh route metrics in the proxy
2019-10-25 22:46:43 +01:00
Sumanth Chinthagunta
1c6b85e05d
AppendContext with overwrite flag
2019-10-25 08:27:28 -07:00
Asim Aslam
e85863d6cc
Merge pull request #886 from micro/tunnel-error
...
Don't error where the connection is not unicast
2019-10-25 15:48:09 +01:00
Asim Aslam
5d7bf53f78
don't error where the connection is not unicast
2019-10-25 15:41:37 +01:00
Asim Aslam
44c0f1946d
Merge pull request #882 from micro/link-state
...
A few changes for the network / tunnel link state
2019-10-25 14:28:43 +01:00
Asim Aslam
1c9ada6413
Reorder setChannel method
2019-10-25 14:24:37 +01:00
Asim Aslam
c170189efb
We need the message back to set the link
2019-10-25 14:22:38 +01:00
Asim Aslam
3831199600
Use best link in tunnel, loop waiting for announce and accept messages, cleanup some code
2019-10-25 14:16:22 +01:00
Sumanth Chinthagunta
1f658cfbff
adding PatchContext - this will create new context with original + patch metadata
2019-10-24 17:51:54 -07:00
Asim Aslam
f26d470db1
A few changes for the network / tunnel link state
2019-10-24 17:51:41 +01:00
Asim Aslam
f5b8a12106
Merge pull request #880 from milosgajdos83/tunnel-sessionlink
...
Make sure we pick some link when Dialling
2019-10-24 16:14:32 +01:00
Milos Gajdos
494eb13534
Make sure we pick some link when Dialling
2019-10-24 16:07:31 +01:00
Asim Aslam
4db1e09798
change options to be trimmed down
2019-10-23 23:12:45 +01:00
Asim Aslam
232c8ac7a1
More cleanup of store cf
2019-10-23 23:10:44 +01:00
Asim Aslam
68d0efbeaa
Move api types in cf store
2019-10-23 22:57:11 +01:00
Asim Aslam
70aaca9876
further cleanup
2019-10-23 22:54:55 +01:00
Asim Aslam
3ce71e12ff
Don't recall vals everywhere
2019-10-23 22:51:08 +01:00
Asim Aslam
fb3d729681
sync map uses store list
2019-10-23 22:35:28 +01:00
Asim Aslam
d65658c890
Update options usage in store/api
2019-10-23 22:31:36 +01:00
Asim Aslam
3fc04f4dff
fixup some acme related things
2019-10-23 22:15:15 +01:00
Asim Aslam
82f94c7861
Change store.Sync to store.List
2019-10-23 22:05:39 +01:00
Asim Aslam
ecac392dbe
unexport api response/message in cloudflare store
2019-10-23 21:54:37 +01:00
Asim Aslam
4e5a568063
races, race conditions everywhere
2019-10-23 21:24:31 +01:00
Asim Aslam
87de2ecaa0
Merge pull request #876 from milosgajdos83/peerlink-route-metric
...
Peerlink route metric
2019-10-23 20:31:21 +01:00
Milos Gajdos
4f1dd3f965
Fixed a small messup when printing logs
2019-10-23 20:01:45 +01:00
Milos Gajdos
71122836b8
Use event.Route.Link for getting the route metrics
2019-10-23 19:55:01 +01:00
Milos Gajdos
b67be88952
Check for local links and empty gateways
2019-10-23 19:48:26 +01:00
Asim Aslam
83b232ae26
Merge pull request #879 from micro/cloudflareexpiry
...
Throw away cloudflare-go library and reimplement workers KV
2019-10-23 17:44:13 +01:00
Milos Gajdos
776284b187
Make sure you dont overflow MaxInt64
2019-10-23 17:42:04 +01:00
Jake Sanders
53ee4ee482
goodbye cloudflare-go
2019-10-23 17:33:20 +01:00
Milos Gajdos
35729092e0
Unexport network.Message
2019-10-23 17:32:45 +01:00
Jake Sanders
4f5db08238
Remove cloudflare-go and reimplement workers KV
2019-10-23 17:31:15 +01:00
Milos Gajdos
68789af4ea
Prune peerlinks of pruned nodes
2019-10-23 17:29:03 +01:00
Milos Gajdos
b3d4a7f740
If no link found, return max possible value
2019-10-23 16:51:22 +01:00
Milos Gajdos
f4f178c130
Set metric on egress. Increment metric on ingress.
2019-10-23 16:51:22 +01:00
Milos Gajdos
1ff65e140a
Change router.Route metric to int64. Set the route metric properly
2019-10-23 16:51:22 +01:00
Milos Gajdos
326156671d
Set route metric to link Length
2019-10-23 16:51:22 +01:00
Milos Gajdos
6353b2b894
Keep track of peer links
2019-10-23 16:51:22 +01:00
Asim Aslam
caca93f65b
Merge pull request #877 from micro/tun-delay
...
Tunnel Delay and link buffers
2019-10-23 16:49:18 +01:00
Asim Aslam
bf4a73d5c0
Close the socket in the link
2019-10-23 16:39:26 +01:00
Asim Aslam
fe180148a1
rearrange where we account for errors and data sent
2019-10-23 16:15:39 +01:00
Asim Aslam
842fc01568
add send/recv queues for link
2019-10-23 16:05:21 +01:00
Asim Aslam
d4832e8f34
Remove consul registry ( #818 )
2019-10-23 15:53:28 +01:00
Asim Aslam
5ac5865154
add comment
2019-10-23 10:55:53 +01:00
Asim Aslam
f07a6ac29b
Merge pull request #875 from micro/tun-measure
...
Measure roundtrip times on link
2019-10-22 21:20:57 +01:00
Asim Aslam
d64f8c665e
add rate measure
2019-10-22 19:38:29 +01:00
Asim Aslam
407694232a
Measure roundtrip times on link
2019-10-22 18:43:09 +01:00
Asim Aslam
418b8648bb
Merge pull request #874 from micro/tun-metrics
...
Add placeholders for link metrics
2019-10-22 17:03:07 +01:00
Asim Aslam
85e273afa5
reorder methods
2019-10-22 17:02:22 +01:00
Asim Aslam
ab9fa20a50
Update comments
2019-10-22 16:53:47 +01:00
Asim Aslam
4fddd69229
Add placeholders for link metrics
2019-10-22 16:50:00 +01:00
Asim Aslam
317cf76566
Merge pull request #872 from micro/round-robin
...
Round robin routes we've sorted by metric
2019-10-22 11:58:44 +01:00
Asim Aslam
f792fac1cc
Round robin routes we've sorted by metric
2019-10-22 11:53:49 +01:00
Asim Aslam
a89d1edc41
fix divide by zero bug
2019-10-19 08:11:05 +01:00
Asim Aslam
d3140c0fc2
Merge pull request #867 from milosgajdos83/rlock-mess
...
Avoid recursive RLock()
2019-10-18 11:35:08 +01:00
Milos Gajdos
3d5d9be02a
Avoid recursive calls to RLock()
...
Topology calls itsel recursively invoking RLock. This, according to go
documentation is wrong. This commit moves the body of Topology function
to a non-thread safe unexported function to keep locsk at check!
2019-10-18 11:26:43 +01:00
Asim Aslam
5c38f38dd9
No need to lock here since Topology read locks and makes copies
2019-10-18 11:26:43 +01:00
Asim Aslam
63fd8b9d1b
Merge pull request #864 from micro/strip-topic
...
strip topic from http broker subscribe service name
2019-10-17 18:48:46 +01:00
Asim Aslam
3aedea4c56
strip topic from http broker subscribe service name
2019-10-17 18:37:37 +01:00
Asim Aslam
0da9dff077
Merge pull request #863 from micro/certmagice2e
...
E2E tests for certmagic ACME provider
2019-10-17 16:42:33 +01:00
Jake Sanders
05774f2c76
Don't touch go.mod
2019-10-17 16:35:09 +01:00
Jake Sanders
4885bba2ac
E2E tests for certmagic ACME provider
...
* Actually set the CA
* Fix the certmangic.storage interface to return the correct error type
* Write an e2e test for certmagic against the let's encrypt staging CA
2019-10-17 16:31:02 +01:00
Asim Aslam
9d559848c2
Merge pull request #862 from milosgajdos83/tunnel-cleanup
...
Cleanup of tunnel.Dial(). Clean up network channel processors
2019-10-16 21:19:30 +01:00
Milos Gajdos
2ae583ce94
Cleanup of tunnel dial code. Clean up network channel processors
2019-10-16 20:44:22 +01:00
Asim Aslam
7c1e22b607
Merge pull request #861 from micro/certmagicstorage
...
Distributed storage for certmagic
2019-10-16 14:10:02 +01:00
Jake Sanders
7d2afa34a0
Implementation and tests for certmagic.Storage interface
2019-10-16 12:58:14 +01:00
Jake Sanders
a6e95d389f
Implementation of certmagic storage using micro's store and sync packages
2019-10-15 19:32:20 +01:00
Asim Aslam
b1d5dc20fa
Merge pull request #860 from micro/tunnel-mode
...
Tunnel mode
2019-10-15 16:14:38 +01:00
Asim Aslam
be5093798b
Use DialMode/ListenMode
2019-10-15 16:08:38 +01:00
Asim Aslam
3759c9c091
Merge pull request #859 from milosgajdos83/handle-channel-conn-errors
...
Handle tunnel session Accept errors gracefully
2019-10-15 16:05:19 +01:00
Milos Gajdos
4936a2e1a5
Exponential backoff for failed accept connections
2019-10-15 15:58:33 +01:00
Asim Aslam
ca934951ad
Use multicast on network/control channels
2019-10-15 15:57:13 +01:00
Asim Aslam
ca18089382
Fix bugs related to needing to send Broadcast
2019-10-15 15:55:08 +01:00
Asim Aslam
7b1f5584ab
Tunnel mode
2019-10-15 15:40:04 +01:00
Milos Gajdos
fed5af68e6
Handle Accept errors gracefully.
...
Originally when Accept fails we log the error and let the program flow
continue. This can lead to us spawning handling connection go routines
on nil connections which in turn leads to Go panics.
2019-10-15 15:07:28 +01:00
Asim Aslam
fdfeb437f9
Merge pull request #856 from micro/cloudflare
...
Cloudflare Store implementation for workers KV
2019-10-15 14:29:34 +01:00
Jake Sanders
a46133f059
cloudflare workers KV Store implementation
2019-10-15 12:35:45 +01:00
Jake Sanders
9bd0a8f3b5
Update go.mod for cloudflare
2019-10-15 12:35:20 +01:00
Asim Aslam
44b794722e
rcache becomes cache
2019-10-14 22:39:26 +01:00
Asim Aslam
247249050b
move mutex to memory
2019-10-14 22:38:22 +01:00
Asim Aslam
b1fed01752
add network name to node
2019-10-14 22:26:23 +01:00
Asim Aslam
df1e680256
Merge pull request #854 from micro/lock-http
...
Lock http
2019-10-14 22:01:25 +01:00
Asim Aslam
854b01c20c
Add acquire/release to http path
2019-10-14 21:52:18 +01:00
Asim Aslam
745299bce5
add http lock implementation
2019-10-14 21:39:25 +01:00
Asim Aslam
607fdb3fcb
Merge pull request #852 from micro/mutex
...
add mutex lock implementation
2019-10-14 15:23:59 +01:00
Asim Aslam
a1342c23fb
add mutex lock implementation
2019-10-14 15:17:25 +01:00
Asim Aslam
1cea2f5bba
Merge pull request #850 from micro/acmetypo
...
TLS -> ToS
2019-10-14 12:10:55 +01:00
Jake Sanders
a1b4786682
TLS -> ToS
2019-10-14 12:04:49 +01:00
Asim Aslam
b701da6d69
Merge pull request #849 from micro/connect-init
...
Connect init
2019-10-13 18:40:11 +01:00
Asim Aslam
f77df51f60
Support reconnects
2019-10-13 18:36:22 +01:00
Asim Aslam
d6c6e7815e
Spaces not tabs
2019-10-13 12:40:53 +01:00
Asim Aslam
01492997ea
add Network.Init method
2019-10-13 12:38:13 +01:00
Asim Aslam
174f1b857c
Network handler moves to service/handler
2019-10-13 12:37:56 +01:00
Asim Aslam
5029d80e68
add Network.Connect handler and network/metadata fields to node
2019-10-13 12:37:39 +01:00
Asim Aslam
b59c5a4488
move network handler to service/handler
2019-10-13 12:37:13 +01:00
Asim Aslam
f7f65b82e6
Cleanup registry handler/service
2019-10-13 12:23:13 +01:00
Asim Aslam
2e47fdc6f5
Check the node map to avoid dupes in resolved nodes
2019-10-12 20:26:06 +01:00
Asim Aslam
18ea19a122
Regenerate go.mod
2019-10-12 12:04:55 +01:00
Asim Aslam
4d75b936f8
Merge pull request #846 from theophanous/master
...
fix: bumped quic-go version to v0.12.1
2019-10-11 18:24:45 +01:00
Peter Theophanous
62aaa72715
fix: bumped quic-go version to v0.12.1
2019-10-11 18:16:56 +01:00
Asim Aslam
8c344ed55b
Merge pull request #839 from theophanous/master
...
bumped quic-go version to v0.12.1
2019-10-11 17:26:48 +01:00
Peter Theophanous
db843c8d87
reset orig
2019-10-11 17:15:20 +01:00
Asim Aslam
dd7677e6cc
Add nil check for acme provider
2019-10-11 16:52:57 +01:00
Asim Aslam
a4f0dd8939
Merge pull request #845 from micro/certmagic
...
Implementation of CertMagic as the ACME provider
2019-10-11 16:52:21 +01:00
Jake Sanders
591e87448b
Travis doesn't let us bind :443
2019-10-11 16:47:12 +01:00
Jake Sanders
09a202ccf0
Merge branch 'master' of https://github.com/micro/go-micro into certmagic
2019-10-11 16:25:28 +01:00
Jake Sanders
723c17fdd7
Implementation of certmagic as an ACME provider
2019-10-11 16:25:15 +01:00
Jake Sanders
9bd96d4cc1
Update go.mod for ACME changes
2019-10-11 16:24:25 +01:00
Asim Aslam
9bfe4d9bf7
Merge pull request #844 from micro/store
...
Store service implementation
2019-10-11 14:49:44 +01:00
Asim Aslam
76eee089e3
Add store service client
2019-10-11 14:44:42 +01:00
Asim Aslam
cfa2b668e2
go fmt
2019-10-11 14:44:34 +01:00
Asim Aslam
a96f6adf07
store handler implementation
2019-10-11 14:08:50 +01:00
Asim Aslam
49fe5d9fd5
Merge pull request #843 from milosgajdos83/dead-code
...
Clean up dead tunnel code
2019-10-11 11:15:29 +01:00
Milos Gajdos
21469a0427
Clean up dead tunnel code
...
Running go vet on tunnel package returns:
$ go vet ./...
./default.go:929:2: unreachable code
./link.go:104:2: unreachable code
./listener.go:184:2: unreachable code
./session.go:241:2: unreachable code
2019-10-11 11:02:45 +01:00
Asim Aslam
e351e9518f
Merge pull request #842 from milosgajdos83/cache-status
...
Check cache status error
2019-10-11 10:55:35 +01:00
Milos Gajdos
fc89c9831e
heck cache status error
2019-10-11 10:47:42 +01:00
Peter Theophanous
5e5d57d954
bumped quic-go version to v0.12.1
2019-10-10 22:23:33 +01:00
Asim Aslam
98e1f2c2d3
Merge pull request #838 from micro/etcd
...
Use etcd serializable option
2019-10-10 19:22:10 +01:00
Asim Aslam
59a3e7d4f4
Use etcd serializable option
2019-10-10 19:16:31 +01:00
Asim Aslam
1be6ec9b3c
Merge pull request #837 from milosgajdos83/prune-dead-router-peers
...
Prune routes from routers that are not in your peer graph
2019-10-10 16:12:56 +01:00
Milos Gajdos
f6931f3da7
Prune routes from routers that are not in your peer graph
2019-10-10 15:28:27 +01:00
Asim Aslam
b2f99a27b7
Visit all the nodes in flatten
2019-10-10 14:35:11 +01:00
Asim Aslam
1f5ebf330d
Merge pull request #836 from micro/prune-address
...
Prune the peer address
2019-10-10 11:43:19 +01:00
Asim Aslam
0dee11e006
Prune the peer address
2019-10-10 11:25:28 +01:00
Asim Aslam
b55018eaa1
Merge pull request #833 from orbli/patch-1
...
Add dialoptions and calloptions
2019-10-10 07:40:48 +01:00
orb li
77108771db
Conceptual deliverable
2019-10-10 13:55:16 +08:00
Asim Aslam
5a6e73d4a8
Merge pull request #835 from milosgajdos83/router-strategy
...
Router strategy
2019-10-09 19:18:59 +01:00
Milos Gajdos
7a4bff4e9f
Changed names of some variables.
2019-10-09 19:08:24 +01:00
Milos Gajdos
d5ce96da24
Avoid locking on reading strategy for now
2019-10-09 18:19:48 +01:00
Milos Gajdos
837597fe6f
Make Optimal strategy default. Collapse routing tables based on strategy
2019-10-09 17:24:38 +01:00
Milos Gajdos
96e564e402
Add router advertisement Strategy option to router.
2019-10-09 17:24:38 +01:00
Asim Aslam
fe94237448
Update router querying method ( #834 )
...
* Add address to router query options. Drop Query interface for QueryOptions
* Cleanup isMatch function
* Update network proto
2019-10-09 17:13:52 +01:00
Jake Sanders
107b7419b7
Start abstracting away the ACME provider ( #830 )
...
* Start abstracting away the ACME provider
* Move ACME to interface with sub-package implementations
* Addressing comments
* Library -> Provider
* Missed a couple of Library -> Provider
* One more Library -> Provider
* remove constants
2019-10-09 16:42:05 +01:00
orb li
226d55d752
Adding dependency
2019-10-09 16:48:45 +08:00
orb li
88ef785127
Add dialoptions and calloptions
2019-10-09 15:56:39 +08:00
Asim Aslam
44473f954f
Merge pull request #829 from milosgajdos83/limit-net-connections
...
Limit the number of outbound connections to MaxConnections
2019-10-08 15:56:45 +01:00
Milos Gajdos
fe5846603a
Only limit the number of nodes returned by network resolver.
2019-10-08 15:48:52 +01:00
Milos Gajdos
61800fb7d7
Fix typo: MaxCconnections -> MaxConnections
2019-10-08 15:15:50 +01:00
Milos Gajdos
ec2fbde979
Limit the number of outbound connections to MaxConnections
...
This commit also fixes control channel shenanigans:
- recover error in control channel accept
2019-10-08 14:48:04 +01:00
Asim Aslam
b886dd4b8f
Merge pull request #828 from micro/net-lookup
...
Use dns resolver on peer nodes
2019-10-08 10:36:04 +01:00
Asim Aslam
94adeebed4
Use dns resolver on peer nodes
2019-10-08 09:25:23 +01:00
Asim Aslam
d043ca15c1
Merge pull request #827 from micro/resolver
...
Add dns net.LookupHost resolver!
2019-10-08 09:08:34 +01:00
Asim Aslam
ad823d5177
Add dns net.LookupHost resolver!
2019-10-08 09:04:13 +01:00
Asim Aslam
89d71417f5
Merge pull request #825 from milosgajdos83/net-chan-nodes
...
Recover net channel Accept() errors. Init tunnel nodes before tunnel.Connect()
2019-10-07 20:29:45 +01:00
Milos Gajdos
9d9683b6f9
Recover net channel Accept errors. Init tunnel nodes before Connect
2019-10-07 19:09:04 +01:00
Asim Aslam
0edcd5c8dc
Merge pull request #824 from micro/tunnel
...
wait for response on accept message
2019-10-07 18:33:00 +01:00
Asim Aslam
2e1432d5dc
wait for response on accept message
2019-10-07 18:29:49 +01:00
Asim Aslam
e4f8b5de70
Merge pull request #823 from micro/list-services
...
Support listing full service info in etcd
2019-10-07 16:15:30 +01:00
Asim Aslam
e9dcff49e0
Support listing full service info in etcd
2019-10-07 16:11:52 +01:00
Asim Aslam
fa6590f999
Merge pull request #822 from micro/service
...
Add Name to Service
2019-10-07 08:43:07 +01:00
Asim Aslam
fd8a0fb2f5
Update internal service definition
2019-10-07 08:34:15 +01:00
Asim Aslam
b594547408
Add service Name
2019-10-07 08:32:28 +01:00
Asim Aslam
2c00e726b6
Decode and hash the existing node
2019-10-06 13:43:41 +01:00
Asim Aslam
68a3fc7996
Merge pull request #820 from micro/etcd-reg
...
Fix etcd registry lease processing and suppression
2019-10-06 10:03:38 +01:00
Asim Aslam
2fb2d7145e
Fix etcd registry lease processing and suppression
2019-10-06 09:54:26 +01:00
Asim Aslam
6fe9f2a958
Merge pull request #815 from micro/broker
...
Add broker service implementation
2019-10-04 17:23:29 +01:00
Asim Aslam
86984a8a8a
Extend the stream timeout
2019-10-04 16:44:21 +01:00
Asim Aslam
cfb846ee7e
Fix race in cache
2019-10-04 16:40:21 +01:00
Asim Aslam
e36960612a
go fmt
2019-10-04 16:40:16 +01:00
Asim Aslam
04320d69ff
Fix and comment broker service
2019-10-04 16:30:03 +01:00
Asim Aslam
c4b6d0f3a8
fix major deadlock in registry cache
2019-10-04 16:29:56 +01:00
Asim Aslam
3c6b6553fb
Use peerAddress as the thing to listen on
2019-10-03 18:35:54 +01:00
Asim Aslam
d5658ab0b0
Merge pull request #816 from micro/net-advertise
...
Advertise your peer address as advertised address
2019-10-03 17:42:11 +01:00
Asim Aslam
2244eb8597
Advertise your peer address as advertised address
2019-10-03 17:37:29 +01:00
Asim Aslam
05eacd74c8
Add logging for broker handler
2019-10-03 17:30:37 +01:00
Asim Aslam
b80654bf7e
Add broker service to config/cmd
2019-10-03 16:22:26 +01:00
Asim Aslam
0941a0f031
Merge pull request #814 from milosgajdos83/etcd-port
...
Append a port to address if it does not exist
2019-10-03 16:20:43 +01:00
Asim Aslam
4de346920f
Add broker service implementation
2019-10-03 16:19:02 +01:00
Milos Gajdos
b8815dff14
Append a port to address if it does not exist
2019-10-03 16:16:25 +01:00
Asim Aslam
b1163b9dee
Fix breaking import
2019-10-03 11:26:24 +01:00
Asim Aslam
af5d7a3420
Move the remaining consul cruft to go-plugins
2019-10-03 11:22:35 +01:00
Asim Aslam
b5f33b2aaa
Rename Dump to Sync
2019-10-03 09:56:25 +01:00
Asim Aslam
a9c85eda68
Merge pull request #813 from micro/store
...
Move out consul sync/lock and store. Move data/store to store
2019-10-03 09:51:21 +01:00
Asim Aslam
b5ca40a91a
Move out consul sync/lock and store. Move data/store to store
2019-10-03 09:46:20 +01:00
Asim Aslam
b81bb07afc
Merge pull request #812 from micro/gossip
...
Remove gossip registry
2019-10-03 09:36:14 +01:00
Asim Aslam
8d2b12258f
Remove gossip registry
2019-10-03 09:29:48 +01:00
Asim Aslam
31026da2a1
Update etcd.go
...
Use /micro/registry as the etcd key prefix
2019-10-02 20:33:59 +01:00
Asim Aslam
1129803bcb
Merge pull request #810 from milosgajdos83/etcd
...
First commit to add etcd registry support
2019-10-02 20:27:38 +01:00
Milos Gajdos
25148af44c
First commit to add etcd registry support
2019-10-02 18:56:53 +01:00
Asim Aslam
36675aff1e
Merge pull request #809 from micro/log-prefix
...
Add ability to set log prefix
2019-10-02 17:47:27 +01:00
Asim Aslam
b6db0d2663
Add ability to set log prefix
2019-10-02 17:42:34 +01:00
Asim Aslam
2370fb1209
Set gateway to node address rather than id
2019-10-02 15:52:31 +01:00
Asim Aslam
519e8a7213
Merge pull request #808 from micro/net-address
...
Hash the network address
2019-10-02 15:27:07 +01:00
Asim Aslam
308424488b
Hash the network address
2019-10-02 15:22:44 +01:00
Asim Aslam
5d77ce9e9b
Rename rcache file to cache
2019-10-02 12:35:20 +01:00
Asim Aslam
9eb6262168
Merge pull request #807 from unistack-org/fixup
...
some spelling fixes in memory and gossip registry
2019-10-02 10:47:59 +01:00
Vasiliy Tolstov
b722798caa
some spelling fixes in memory and gossip registry
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-10-02 03:54:04 +03:00
Asim Aslam
0cf7b70423
Merge pull request #806 from milosgajdos83/go-mod-shrink
...
Update go.mod
2019-10-01 20:13:26 +01:00
Milos Gajdos
03b8ceab5c
Update go.mod
2019-10-01 19:33:23 +01:00
Asim Aslam
e8a53610f1
Update go mod to use 1.13
2019-10-01 19:09:29 +01:00
Asim Aslam
e48155118f
Update go mod
2019-10-01 18:55:03 +01:00
Asim Aslam
6477c3afff
Bump travis
2019-10-01 18:33:26 +01:00
Asim Aslam
57647772c8
Merge pull request #790 from milosgajdos83/memreg-ttl
...
[WIP] Memory registry TTL expiry
2019-09-30 15:35:57 +01:00
Milos Gajdos
4b73ac9dc5
Simplified code. Small bug fix the used to lead to multi-registry loop.
2019-09-30 12:48:59 +01:00
Milos Gajdos
3f3f1272b3
Turn regular logs to Debug logs; annotate with Registry "tag"
2019-09-30 12:48:59 +01:00
Milos Gajdos
859ecb1872
Dont set default TTL. Stop tracking nodes with no TTL
2019-09-30 12:48:59 +01:00
Milos Gajdos
204c7d1fcf
Fixed options bug and proto indenting
2019-09-30 12:48:59 +01:00
Milos Gajdos
8417361bce
Set registry TTL to seconds, not the nanoseconds
2019-09-30 12:48:59 +01:00
Milos Gajdos
d85ca7abd2
Set registry TTL properly via protobuf Options
2019-09-30 12:48:59 +01:00
Milos Gajdos
e973bfaa25
Add TTL options to memory registry.
2019-09-30 12:48:59 +01:00
Milos Gajdos
27bd9581bf
Refresh TTL; prune expired nodes.
2019-09-30 12:48:59 +01:00
Milos Gajdos
16c7b3a390
Added Registry TTL to memory registry. Tracking node lifetimes.
2019-09-30 12:48:59 +01:00
potato
f933457cc1
Merge pull request #5 from micro/master
...
pull request from go-micro
2019-09-30 17:22:51 +08:00
Asim Aslam
219d759f1d
Merge pull request #802 from micro/services
...
Add Network.Services handler
2019-09-30 07:55:03 +01:00
Asim Aslam
b90871c241
Add Network.Services handler
2019-09-30 07:51:13 +01:00
Asim Aslam
1322fb0d9d
Merge pull request #800 from kordenlu/master
...
fix rcache node overwrited issue
2019-09-30 07:17:46 +01:00
lubaoquan
0eb69e4f9a
Undo go.mod go.sum change,fixes https://github.com/micro/go-micro/issues/793
2019-09-30 10:57:35 +08:00
lubaoquan
1ed73d0f91
fixes https://github.com/micro/go-micro/issues/793
2019-09-30 10:38:53 +08:00
lubaoquan
866631df1d
fixes https://github.com/micro/go-micro/issues/793
2019-09-30 10:36:43 +08:00
lubaoquan
d5e962c4a8
fixes https://github.com/micro/go-micro/issues/793
2019-09-29 10:27:38 +08:00
Asim Aslam
9ec27392de
Merge pull request #799 from milosgajdos83/go1.13-fix-tests
...
Fix tests to make go-micro work on Go 1.13
2019-09-27 18:14:54 +01:00
Milos Gajdos
de1d9122ea
Remove 1.13 support because go-quic reasons nobody understands
2019-09-27 17:19:38 +01:00
Milos Gajdos
87a5e85062
Add 1.13 support. Fix tests to enable 1.13 support
2019-09-27 17:14:24 +01:00
Asim Aslam
da572041ca
Merge pull request #797 from RichardLindhout/patch-1
...
Do not log error when EOS is being written on an EOF socket
2019-09-27 15:18:35 +01:00
Richard Lindhout
a725998c0a
Update rpc_server.go
2019-09-27 16:01:16 +02:00
Richard Lindhout
f3b723ca44
Do nog log error when EOS is being written on an EOF socket
2019-09-27 15:02:21 +02:00
Asim Aslam
e1bb4d7379
Merge pull request #795 from milosgajdos83/advert-events
...
Rather than append to list of events just keep the last event
2019-09-26 18:13:28 +01:00
Milos Gajdos
2d7975a7ce
Rather than append to list of events just keep the last event for a route hash
2019-09-26 17:54:55 +01:00
Asim Aslam
8b77d62ed4
Merge pull request #794 from micro/hash
...
Don't shutdown old nodes in mdns registry
2019-09-26 16:50:17 +01:00
Asim Aslam
ef7bb46884
Don't shutdown old nodes in mdns registry
2019-09-26 16:46:09 +01:00
Asim Aslam
06975f64b7
Merge pull request #792 from milosgajdos83/router-fixes
...
Simplified table code. Fixed event dedup
2019-09-26 12:53:40 +01:00
Milos Gajdos
a4c04d8f50
Only emit Update event if a route was updated/added
2019-09-26 12:45:10 +01:00
Milos Gajdos
b2577e6022
Update log statement
2019-09-26 12:19:00 +01:00
Milos Gajdos
77f3e7ef48
Simplified table code. Fixed event dedup.
2019-09-26 11:56:30 +01:00
Asim Aslam
6f2a8298ef
Fix router log messages
2019-09-25 20:29:25 +01:00
Asim Aslam
9e33637213
Do not log send/recv body
2019-09-25 20:24:56 +01:00
Asim Aslam
99dbed0b67
Merge pull request #789 from micro/cache
...
Preserve cache in the face of failure
2019-09-25 19:49:21 +01:00
Asim Aslam
2b8210a106
Preserve cache in the face of failure
2019-09-25 19:44:46 +01:00
Asim Aslam
dfcedbab1e
In case of non 200 response return error
2019-09-25 16:53:06 +01:00
Asim Aslam
140e3d576c
Merge pull request #788 from micro/stream
...
Revert to creating new connections for stream
2019-09-25 15:26:09 +01:00
Asim Aslam
afa1f50435
Revert to creating new connections for stream
2019-09-25 15:21:21 +01:00
Asim Aslam
cb22136a35
Merge pull request #787 from micro/solicit
...
only solicit the first time seeing a peer
2019-09-25 14:35:09 +01:00
Asim Aslam
ae40553bad
only solicit the first time seeing a peer
2019-09-25 14:30:35 +01:00
Asim Aslam
855cd5ecf4
Merge pull request #786 from micro/net
...
Do not embed proxy/router/tunnel
2019-09-25 13:00:36 +01:00
Asim Aslam
f23c6d91ba
Do not embed proxy/router/tunnel
2019-09-25 12:56:52 +01:00
Asim Aslam
c3b430af53
Merge pull request #785 from micro/link
...
Keep track of errors and delete beyond error count > 3
2019-09-25 12:36:23 +01:00
Asim Aslam
3d2bf7d4f6
Add log message
2019-09-25 12:36:07 +01:00
Asim Aslam
6c2b9d7636
Keep track of errors and delete beyond error count > 3
2019-09-25 12:14:09 +01:00
Asim Aslam
be5799b09f
Merge pull request #783 from micro/service
...
Add flag for registry service client
2019-09-25 11:14:17 +01:00
Asim Aslam
7fe64192a7
Add flag for registry service client
2019-09-25 11:09:19 +01:00
Asim Aslam
624d37cf13
Merge pull request #781 from milosgajdos83/hash-reg-service
...
Emit memory registry event only when it actually happens
2019-09-25 07:44:55 +01:00
Milos Gajdos
1f23c8a85a
Emit memory registry event only when it actually happens
2019-09-25 01:58:28 +01:00
Asim Aslam
96e79c4498
Add runtime output
2019-09-24 19:00:11 +01:00
Asim Aslam
1b08036a0b
add create options
2019-09-24 18:32:35 +01:00
Asim Aslam
c52651c4d0
Move runtime.Start to be non blocking
2019-09-24 18:05:51 +01:00
Asim Aslam
9f880a1215
Merge pull request #780 from milosgajdos83/registry-event
...
[WIP] Registry event
2019-09-24 14:48:38 +01:00
Milos Gajdos
39755721d0
Fix proto formatting
2019-09-24 14:39:51 +01:00
Milos Gajdos
ccda1d3559
Remove rpc Sync method from registry handler
2019-09-24 10:41:48 +01:00
Milos Gajdos
61ee436cc4
Added Sync RPC call; it's identical to ListServices for now
2019-09-23 21:08:31 +01:00
Milos Gajdos
04a5d884da
Move global vars to the top of the src file: conventions
2019-09-23 20:48:25 +01:00
Milos Gajdos
0ec1b840fd
Add registry event to registry package
2019-09-23 20:48:25 +01:00
Asim Aslam
71ab35e055
Merge pull request #778 from micro/register-interval
...
Set register ttl and interval by default
2019-09-23 18:04:52 +01:00
Asim Aslam
fa0d020556
Set register ttl and interval by default
2019-09-23 17:59:34 +01:00
Asim Aslam
d8dc713e2d
Fix the http resolver to use micro.mu url
2019-09-23 17:50:53 +01:00
Asim Aslam
d38c8b23f2
Merge pull request #777 from micro/net-nodes
...
Set rpc methods as Network.Graph/Nodes/Routes
2019-09-23 15:47:49 +01:00
Asim Aslam
4260913b45
Set rpc methods as Network.Graph/Nodes/Routes
2019-09-23 15:41:05 +01:00
Asim Aslam
ac5eb5da47
Remove fmt
2019-09-22 15:31:07 +01:00
Asim Aslam
2434c7b2a7
replace version format
2019-09-22 15:21:22 +01:00
Asim Aslam
9fbc88a60f
Provide a way to get status now
2019-09-20 17:55:02 +01:00
Asim Aslam
444cc59250
Ensure transport matches for monitoring service
2019-09-20 17:20:15 +01:00
Asim Aslam
95e4ed8ee9
Merge pull request #775 from micro/proxy-watcher
...
Fix the proxy watcher
2019-09-20 16:36:00 +01:00
Asim Aslam
4eb1aaae85
Fix the proxy watcher
2019-09-20 16:25:29 +01:00
Asim Aslam
46450ba507
Merge pull request #773 from micro/net-hash
...
Only hash address if its a local route
2019-09-20 10:50:35 +01:00
Asim Aslam
f13887f604
Only hash address if its a local route
2019-09-20 09:40:55 +01:00
Asim Aslam
66769e671f
Merge pull request #772 from micro/peers
...
Replace Nodes with Peers
2019-09-19 16:53:17 +01:00
Asim Aslam
7e05d2c440
Replace Nodes with Peers
2019-09-19 16:32:15 +01:00
Asim Aslam
0abeb3f660
Merge pull request #771 from milosgajdos83/peers-race
...
Remove data race; Unlock once done pruning/deleting
2019-09-19 11:59:03 +01:00
Milos Gajdos
a38482ffcb
Remove data race; Unlock once done pruning/deleting
2019-09-19 11:53:13 +01:00
Asim Aslam
ee74e26582
Merge pull request #769 from micro/advertise
...
allow setting advertise address
2019-09-18 19:06:24 +01:00
Asim Aslam
6222bc2a1e
only set tunnel address if advertise is blank
2019-09-18 19:04:22 +01:00
Asim Aslam
05e62a2b95
allow setting advertise address
2019-09-18 18:56:02 +01:00
Asim Aslam
cdbab3df66
Merge pull request #766 from milosgajdos83/hash-service
...
Hash the service before advertising it to the network.
2019-09-17 18:39:17 +01:00
Milos Gajdos
38d6ffdf9a
Hash the service address before advertising it to the network.
2019-09-17 18:34:06 +01:00
Asim Aslam
e586763301
Merge pull request #761 from milosgajdos83/delete-peer-gw
...
Delete dead peer [gateway] routes
2019-09-17 16:54:35 +01:00
Milos Gajdos
3201b4cb36
Gateway is now set to node Id, hence we prune peer.id Gateway
2019-09-17 16:31:33 +01:00
Asim Aslam
837cb4fc11
Merge pull request #763 from milosgajdos83/gateway-addressing
...
Fix gateway addressing
2019-09-17 16:27:35 +01:00
Milos Gajdos
21dc7bcccf
Fix gateway addressing
...
- Set Gateway as node.ID when advertising
- Set server.Address as node.ID to listen on
- Set server.Advertise as node.Address
2019-09-17 16:11:02 +01:00
Asim Aslam
a811b4be3d
Merge pull request #762 from micro/net-address
...
Set node address to tunnel address
2019-09-17 15:44:13 +01:00
Asim Aslam
9147d378bc
Set node address to tunnel address
2019-09-17 15:40:00 +01:00
Asim Aslam
b7b968ad74
remove the funding thing
2019-09-17 12:43:20 +01:00
Asim Aslam
8e8a4c1a9d
Update FUNDING.yml
2019-09-17 12:42:50 +01:00
Asim Aslam
bc29164f77
Update FUNDING.yml
2019-09-17 12:39:41 +01:00
Asim Aslam
e161b2fa84
Create FUNDING.yml
2019-09-17 12:36:36 +01:00
Milos Gajdos
a72a2f717d
Prune stale nodes in the whole topology.
2019-09-16 19:22:55 +01:00
Milos Gajdos
2599ee8591
Prune routes routable via dead node.
2019-09-15 12:17:12 +01:00
Asim Aslam
364c5a4861
Immediately start services
2019-09-14 08:07:36 -07:00
Asim Aslam
c8a675249d
Merge pull request #759 from micro/runtime
...
update runtime to function
2019-09-13 22:01:52 -07:00
Asim Aslam
0cdfc7b9ea
add create/delete/start/stop to runtime
2019-09-13 21:58:03 -07:00
Asim Aslam
0fc4c180ee
update runtime to function
2019-09-13 21:33:14 -07:00
Asim Aslam
e5f6480f8a
Merge pull request #757 from milosgajdos83/empty-advert
...
Skip processing Advert which carries no events
2019-09-13 17:29:36 -07:00
Milos Gajdos
ccb6778f7f
Skip processing Advert which carries no events
2019-09-13 20:46:14 +01:00
Asim Aslam
ef86c9625b
Merge pull request #750 from milosgajdos83/node-peers
...
[WIP] Neighbour is now Peer. Peer is a node in network topology.
2019-09-13 12:00:16 -07:00
Asim Aslam
b23ee58865
Update default.go
2019-09-13 11:55:53 -07:00
Milos Gajdos
323a72be34
Small refactoring; Split horizon loop break.
2019-09-13 18:46:24 +01:00
Milos Gajdos
d72e91fb38
Unlock on return from network.Connect
2019-09-13 03:31:58 +01:00
Milos Gajdos
b91c3147e7
Node API allows us to drop all network locks
...
Network locks are now needed only when accessing client map. node map
access is serialied with the node mutex.
2019-09-13 03:03:56 +01:00
Milos Gajdos
ef91d836eb
Implement Solicit method for handler.Router
2019-09-13 03:03:56 +01:00
Milos Gajdos
77c6c9781b
getProtoTopology has been replaced by PeersToProto
...
This helps us remove redundant code across node and handler
2019-09-13 03:03:56 +01:00
Milos Gajdos
fa4ff8921e
Removed redundant lock. Simplified proto topology
2019-09-13 03:03:56 +01:00
Milos Gajdos
d6be91e8af
Changed RPC methods. Changed Network interface.
...
* Nodes/Topology removed from public methods from Network interface
* Peers() returns max depth 3 topology
* handler.Topology rpc endpoint removed
* handler.Peers rpc endpoint accept "depth" param to return max depth peers
2019-09-13 03:03:56 +01:00
Milos Gajdos
588484c3bf
Fixed some races. Added more tests.
2019-09-13 03:03:56 +01:00
Milos Gajdos
d58eb51976
Code change to make Solicit router.proto message
2019-09-13 03:03:55 +01:00
Milos Gajdos
35cf2a5739
Make topology test more generic
2019-09-13 03:03:55 +01:00
Milos Gajdos
2dfbe93d65
Added more node tests. Small refactoring of Netowkr and handler.
2019-09-13 03:03:55 +01:00
Milos Gajdos
16fcf1fbda
Nodes, Peers and Topology methods for node
...
Topology accepts an argument to define the depth of the topology
requested from the network. proto definitions have been modified
accordingly, too.
2019-09-13 03:03:55 +01:00
Milos Gajdos
cbce5490d7
Lock the Nodes method properly when collecting them.
2019-09-13 03:03:55 +01:00
Milos Gajdos
4c709f7ac1
Write Lock() advert update: we are writing into peers map here
2019-09-13 03:03:55 +01:00
Milos Gajdos
baf4c05663
Send solicit message to ControlChannel
2019-09-13 03:03:55 +01:00
Milos Gajdos
195c6a8c90
Neighbour is now peer. Neighbourhood is Peers. Small refactor.
2019-09-13 03:03:54 +01:00
Milos Gajdos
f91d0408ab
Moved node implementation into dedicated source file
2019-09-13 03:03:54 +01:00
Milos Gajdos
eec780aaa7
Update neighbours when neighbour message is received
2019-09-13 03:03:54 +01:00
Milos Gajdos
f0a1031e97
Adding new peers up to given depth. Outline of node gaph Update
2019-09-13 03:03:54 +01:00
Asim Aslam
a6668ae057
Move delete link log message
2019-09-12 17:40:47 -07:00
Asim Aslam
af5421c2cf
Merge pull request #756 from micro/tunnel
...
Missing fixes for the tunnel
2019-09-12 17:17:33 -07:00
Asim Aslam
2406ef9999
Missing fixes for the tunnel
2019-09-12 17:12:49 -07:00
Asim Aslam
af585d3a57
Merge pull request #755 from micro/tunnel
...
Add tunnel fixes for quic and keepalive
2019-09-12 16:35:53 -07:00
Asim Aslam
97cf478f71
Add tunnel fixes for quic and keepalive
2019-09-12 16:22:43 -07:00
Asim Aslam
ec6a30be37
Links above Dial/Listen in interface
2019-09-11 12:49:27 -07:00
Asim Aslam
634c55e2d7
Merge pull request #753 from micro/link
...
Option to set Link
2019-09-11 12:16:07 -07:00
Asim Aslam
cb0de43dba
add link status
2019-09-11 12:12:11 -07:00
Asim Aslam
63d535aea9
Add link field to session
2019-09-11 12:07:43 -07:00
Asim Aslam
6819386e05
Remove dead link code
2019-09-11 12:00:55 -07:00
Asim Aslam
988603f87e
Merge pull request #752 from printfcoder/master
...
recover gPRC handler if panic
2019-09-11 09:10:30 -07:00
Asim Aslam
9ca7d90f11
link crufT
2019-09-11 07:11:40 -07:00
Asim Aslam
6ec32805d0
Don't allow socket close while writing h2 headers
2019-09-10 18:26:12 -07:00
Shu Xian
c1c173dfe5
recover handler if panic
2019-09-11 00:40:40 +08:00
Shu Xian
ce18de2647
Merge branch 'master' of github.com:micro/go-micro
2019-09-11 00:39:19 +08:00
Asim Aslam
3e3bbe3fd0
Merge pull request #751 from micro/link
...
Move link to tunnel/
2019-09-10 08:16:35 -07:00
Asim Aslam
b5eea02f7a
Move link to tunnel/
2019-09-10 08:12:28 -07:00
Asim Aslam
08c6f60b0f
Merge pull request #746 from micro/plugin
...
Support plugin loading
2019-09-10 05:38:10 -07:00
Asim Aslam
065c7d5616
fix plugin init
2019-09-10 05:32:49 -07:00
Asim Aslam
a5ce3e32da
Support plugin loading on service.Init
2019-09-09 20:17:36 -07:00
Asim Aslam
3bfbcd5e6a
Add default plugin loader
2019-09-09 19:43:13 -07:00
Asim Aslam
b6c6b13277
Support plugin loading
2019-09-09 19:09:28 -07:00
Asim Aslam
04b31d374c
Merge pull request #745 from micro/registry-service
...
Add service registry
2019-09-09 13:05:46 -07:00
Asim Aslam
e828a099c5
Merge pull request #744 from micro/mdns-domain
...
Use .micro domain for mdns
2019-09-09 11:59:37 -07:00
Asim Aslam
2c16c7e62f
Fix build breaks
2019-09-09 09:25:47 -07:00
Asim Aslam
1f44d7a4a1
Add registry handler
2019-09-09 09:20:17 -07:00
Asim Aslam
b076ef906a
Add service registry
2019-09-09 08:57:57 -07:00
Asim Aslam
c669a2b155
Use .micro domain for mdns
2019-09-09 05:11:25 -07:00
Asim Aslam
48a3e51aca
Merge pull request #742 from micro/unlock
...
unlock before sending the message to avoid deadlock
2019-09-06 17:06:39 +01:00
Asim Aslam
e8aaca27d3
unlock before sending the message to avoid deadlock
2019-09-06 16:57:17 +01:00
Asim Aslam
5596407144
Merge pull request #741 from milosgajdos83/list-nodes
...
List nodes now works properly. Send solicit message on ControlChannel
2019-09-06 15:18:25 +01:00
Milos Gajdos
7971b1b7f9
Remove debug logs
2019-09-06 15:12:23 +01:00
Milos Gajdos
dafbacbdcb
Properly handle the list of the nodes. Send solicit on ControlChannel
2019-09-06 15:09:49 +01:00
Asim Aslam
df5657dcd1
Merge pull request #737 from milosgajdos83/buffered-advertchan
...
Lets make advert channel buffered so we don't lose adverts
2019-09-05 19:19:03 +01:00
Milos Gajdos
bb595c85b2
Lets make advert channel buffered so we don't lose adverts
2019-09-05 19:05:47 +01:00
Asim Aslam
bc6187ea89
Merge pull request #734 from micro/tunnel
...
Update tunnel to send discovery on connect and multicast messages. An…
2019-09-05 18:19:37 +01:00
Asim Aslam
ed1faa7a5c
Add a discover ticker, announce on connect and refactor
2019-09-05 18:13:02 +01:00
Asim Aslam
1d9298ae2b
Merge pull request #736 from milosgajdos83/solicit-routes
...
Solicit routes when new node is discovered
2019-09-05 18:08:49 +01:00
Milos Gajdos
dddfb6f878
Fixed typos and simplified map iteration
2019-09-05 17:59:14 +01:00
Milos Gajdos
ec354934e3
Move Errors to separate init block
2019-09-05 17:44:47 +01:00
Milos Gajdos
b01c8e06e0
Update error name to ErrClientNotFound
2019-09-05 17:43:59 +01:00
Asim Aslam
97b1071f7e
Merge pull request #735 from huangzhhui/patch-1
...
Fixed the link of Chinese documentation
2019-09-05 17:43:03 +01:00
Asim Aslam
1527a84297
Shorten multicast discovery
2019-09-05 17:40:41 +01:00
Milos Gajdos
5ddfd911ba
Replace send message code by one network method
2019-09-05 17:18:16 +01:00
黄朝晖
2310ee424c
Update README.zh-cn.md
2019-09-05 23:52:54 +08:00
Milos Gajdos
2522d8cb96
Send solicit message when new neighbour is discovered
2019-09-05 16:04:44 +01:00
Asim Aslam
d198765c6c
Put back close of listener
2019-09-05 15:23:19 +01:00
Asim Aslam
1840b5bd74
Update tunnel to send discovery on connect and multicast messages. Announce as broadcast
2019-09-05 15:16:11 +01:00
Milos Gajdos
9161b20d6b
Add Solicit method to router interface
...
When calling Solicit, router lists all the routes and advertise them
straight away
2019-09-05 13:23:33 +01:00
Asim Aslam
a1ba1482c5
Only set link if not multicast
2019-09-05 07:41:19 +01:00
Asim Aslam
d0761e0a1b
Merge pull request #733 from milosgajdos83/freeze-graph
...
Freeze network graph when building full network topology
2019-09-05 07:21:53 +01:00
Milos Gajdos
4b1a7abb42
Freeze network graph when building full network topology
...
Also added some comments and debug logs
2019-09-05 00:16:22 +01:00
Asim Aslam
e33bd17894
Merge pull request #732 from micro/massive-cruft
...
Fix massive cruft in tunnel dial to set the link on discovered
2019-09-04 20:27:07 +01:00
Asim Aslam
cc5d811a83
add comment to tunnel link selection
2019-09-04 20:19:53 +01:00
Asim Aslam
e15389febb
Fix massive cruft in tunnel dial to set the link on discovered
2019-09-04 20:18:26 +01:00
Asim Aslam
6d63c3777f
Merge pull request #731 from micro/tunnel
...
Add some fixes
2019-09-04 18:53:48 +01:00
Asim Aslam
d8a1b47954
Remove lock from link
2019-09-04 18:48:43 +01:00
Asim Aslam
b9a2f719a0
Add some fixes
2019-09-04 18:46:20 +01:00
Asim Aslam
46a9767648
Merge pull request #730 from milosgajdos83/advert-lastseen
...
Update node.lastSeen properly. Set node.lastSeen when processing advert
2019-09-04 18:13:43 +01:00
Milos Gajdos
dd9f42e3b9
Update lastSeen timestamp properly. Set lastSeen when processing advert
2019-09-04 18:02:13 +01:00
Asim Aslam
f2c8492c77
Merge pull request #729 from micro/tunnel
...
Tunnel session management and unicast/multicast
2019-09-04 16:25:38 +01:00
Asim Aslam
407381912b
Don't try discover on multicast, don't block existing sessions on listen
2019-09-04 15:55:37 +01:00
Asim Aslam
d559ce9da2
Provide Links() method in Tunnel
2019-09-04 15:41:57 +01:00
Asim Aslam
7ab3934eb7
add message comment
2019-09-04 12:18:37 +01:00
Asim Aslam
0075477df0
make tunnel broker use multicast
2019-09-04 12:18:31 +01:00
Asim Aslam
d5be2136ad
cleanup new message creation
2019-09-04 12:16:31 +01:00
Asim Aslam
c718b8bf93
Move vars and comment
2019-09-04 12:00:11 +01:00
Asim Aslam
a24818ee54
Fix typo
2019-09-04 11:58:25 +01:00
Asim Aslam
66db0ac52c
Move announce into session
2019-09-04 11:58:03 +01:00
Asim Aslam
b9c437fbfe
Tunnel discover/announce/open/session/close
2019-09-04 09:48:05 +01:00
Asim Aslam
147899283c
Merge pull request #728 from wuyumin/master
...
Update config source README file
2019-09-04 09:16:04 +01:00
Yumin Wu
5b991cd2c2
Update config source README file
2019-09-04 15:49:58 +08:00
Yumin Wu
bb64f94313
.gitignore file for develop tools
2019-09-04 15:47:46 +08:00
Milos Gajdos
4f4b3d3bae
Send connect message to NetworkChannel once we are not at caller mercy
2019-09-03 19:51:52 +01:00
Asim Aslam
eb4a709195
Merge branch 'master' of ssh://github.com/micro/go-micro into tunnel
2019-09-03 17:20:39 +01:00
Asim Aslam
6c21b31226
Merge pull request #727 from milosgajdos83/bug-overhaul
...
Major bug overhaul in how we handle network.Nodes and related handler
2019-09-03 17:20:15 +01:00
Milos Gajdos
6eb6d050ed
Major bug overhaul in how we handle network.Nodes and related handler
2019-09-03 16:39:27 +01:00
Asim Aslam
6c7582a6be
Move message to session
2019-09-03 15:56:37 +01:00
Milos Gajdos
3ea4490d6c
Don't preallocate the slice if you don't index later on.
2019-09-03 15:02:30 +01:00
Asim Aslam
b50c44a758
Merge pull request #726 from milosgajdos83/prune-nodes
...
Prune nodes that have not announced themselves for certain time period.
2019-09-03 10:28:31 +01:00
Milos Gajdos
ec6318befc
Prune nodes that have not announced themselves for certain time period.
2019-09-03 10:00:14 +01:00
Asim Aslam
5440325a18
Merge pull request #724 from milosgajdos83/efficient-bfs-queue
...
Make Nodes() BFS implementation efficient
2019-09-03 07:43:37 +01:00
Milos Gajdos
fb13877904
Make Nodes() BFS implementation efficient
2019-09-03 02:58:17 +01:00
Asim Aslam
2f5e3c66b9
Merge pull request #723 from milosgajdos83/sort-nodes-search
...
Sort the returned slice of nodes before searching
2019-09-02 20:13:20 +01:00
Milos Gajdos
a8d4299df9
Sort the returned slice of nodes before searching
...
See docs:
https://golang.org/pkg/sort/#Search
2019-09-02 20:00:52 +01:00
Asim Aslam
90745c14f2
Merge pull request #722 from milosgajdos83/net-handler
...
[WIP] Network handler
2019-09-02 17:15:38 +01:00
Milos Gajdos
86665454e7
Implementation of Nodes method. First take on full handler
2019-09-02 17:06:21 +01:00
Milos Gajdos
4f5a849211
Added Nodes method to Network interface
2019-09-02 12:40:05 +01:00
Milos Gajdos
bf53c16e4b
Rough outline of Network introspection interface
2019-09-02 12:40:05 +01:00
Asim Aslam
6c3631728b
Merge pull request #721 from micro/tunnel
...
Separate lookup nodes and setup nodes
2019-09-02 12:10:24 +01:00
Asim Aslam
2cdfed359f
Separate lookup nodes and setup nodes
2019-09-02 12:05:47 +01:00
Asim Aslam
956be5c59d
Merge pull request #717 from micro/client-stream
...
use with stream for client connection
2019-09-02 07:36:41 +01:00
Asim Aslam
52d9d75dfa
use with stream for client connection
2019-08-31 18:26:48 +01:00
Asim Aslam
0d94784e72
Add some tunnel comments
2019-08-31 17:32:20 +01:00
Asim Aslam
65c2de5a79
Merge pull request #716 from micro/tunnel
...
Rename Tunnel ID to Channel
2019-08-31 16:32:41 +01:00
Asim Aslam
6fa9d7270f
Rename Tunnel ID to Channel
2019-08-30 20:05:00 +01:00
Asim Aslam
140c830af1
Merge pull request #715 from milosgajdos83/net-debug
...
Add proto definitions for network introspection.
2019-08-30 12:38:24 +01:00
Milos Gajdos
b37837ad92
Add proto definitions for network introspection.
2019-08-30 12:29:26 +01:00
Asim Aslam
10b64af0b3
Merge pull request #713 from milosgajdos83/route-loop-break
...
Avoid setting routes that route back to the node without its being direct GW to dest
2019-08-30 11:33:17 +01:00
Asim Aslam
5d01284574
Merge pull request #714 from wuyumin/master
...
Load consul source
2019-08-30 10:15:37 +01:00
Yumin Wu
ff81e4b246
Load consul source
2019-08-30 16:20:58 +08:00
Milos Gajdos
e955e3f798
Avoid routes that route back to node without its being direct GW to dest
2019-08-30 00:04:46 +01:00
Asim Aslam
a17a8b3372
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-08-29 17:21:49 +01:00
Asim Aslam
e1d56fbf58
switch warn to error logging
2019-08-29 17:21:43 +01:00
Milos Gajdos
e7d8cdda44
Avoid duplicate debug logs.
2019-08-29 16:58:07 +01:00
Asim Aslam
690640eeeb
Merge pull request #712 from milosgajdos83/route-update
...
Only emit table event if table.Update actually happens
2019-08-29 16:30:27 +01:00
Milos Gajdos
4f788c6fc7
Only emit the events when actually deleting the route
2019-08-29 16:25:21 +01:00
Milos Gajdos
f50bd400f8
Only emit event if Update actually happens
2019-08-29 16:21:30 +01:00
Asim Aslam
b457ec1990
Merge pull request #711 from milosgajdos83/node-neighbours
...
Don't override the neighbours.
2019-08-29 15:48:13 +01:00
Milos Gajdos
ffa6b551f4
Don't override the neighbours.
2019-08-29 15:42:07 +01:00
Asim Aslam
3d03fe4076
Fix panic for nil slice
2019-08-29 15:09:01 +01:00
Asim Aslam
6eecb199e9
Merge pull request #710 from micro/nodes
...
add the ability to provide seed nodes to the network
2019-08-29 15:00:51 +01:00
Asim Aslam
7479515099
add the ability to provide seed nodes to the network
2019-08-29 14:53:30 +01:00
Asim Aslam
6e3d53e1ee
Merge pull request #709 from micro/tunnel-arp
...
Tunnel Direction Fix
2019-08-29 13:13:25 +01:00
Asim Aslam
721c5e6857
fix broken build
2019-08-29 13:11:20 +01:00
Asim Aslam
7d033818cf
if the service name is blank, barf
2019-08-29 13:10:06 +01:00
Asim Aslam
00ab58f61b
Fix loopback cruft
2019-08-29 12:42:27 +01:00
Asim Aslam
b3aef71fdb
Merge pull request #708 from milosgajdos83/route-metric
...
Set the route.Metric before updating routing table
2019-08-29 12:28:43 +01:00
Milos Gajdos
8606f1e143
Set the route.Metric before updating routing table
2019-08-29 11:45:47 +01:00
Asim Aslam
927fac2cec
Merge pull request #706 from milosgajdos83/neighbour-map
...
Broadcast neighbourhood
2019-08-28 23:16:42 +01:00
Asim Aslam
6ab86c9e57
Don't process unless connected, and only fire loopback messages back up the loopback
2019-08-28 23:12:22 +01:00
Milos Gajdos
db8e2620cb
Make tunnel channel clients key-able. Neighbour map simplified.
...
tunClient is a map of tunnel clients keyed on tunnel channel name.
Neighbour map is now a cimple map of nodes which contains its nodes.
2019-08-28 23:11:26 +01:00
Milos Gajdos
d09b7dbbef
Broadcast neighbourhood; fix critical bugs in channel connections
...
This commit introduces neighbourhood announcements which allows to
maintaing neighbour map if each next-hop node.
It also fixes a critical bug when accepting connections for a particular
tunnel channel.
2019-08-28 20:11:19 +01:00
Asim Aslam
a4f5772555
add network field to the routes
2019-08-28 08:41:19 +01:00
Asim Aslam
731f6f74dd
Merge pull request #703 from milosgajdos83/net-id
...
Adds network id. Skips processing routes when router is the origin.
2019-08-28 08:05:19 +01:00
Milos Gajdos
5e7208119e
Adds network id. Skips processing routes when router is the origin.
2019-08-27 23:08:35 +01:00
Asim Aslam
470304ef87
Merge pull request #701 from h-hy/master
...
Check last for the address binded in lo interface (LVS , DR mode)
2019-08-27 18:08:52 +01:00
huanghaoyan
a6ab4d7b4b
check last for the address bind in lo interface.
2019-08-27 23:35:27 +08:00
Asim Aslam
87b56d46ac
Use tunnel transport and set server address
2019-08-27 13:21:36 +01:00
Milos Gajdos
371b23d055
Introduce DefaultLink; dont hardcode name of the link
2019-08-27 11:36:46 +01:00
Asim Aslam
f97565ef0a
Merge pull request #685 from milosgajdos83/default-network
...
Default network implementation
2019-08-27 11:02:55 +01:00
Asim Aslam
0888d2fbbc
Add grpc content-type
2019-08-27 08:13:58 +01:00
Shu xian
75e20b5bf7
Merge pull request #1 from micro/master
...
merge
2019-08-27 09:38:18 +08:00
Asim Aslam
443fc0ebde
Merge pull request #700 from micro/h2-grpc
...
H2 grpc
2019-08-26 15:55:31 +01:00
huanghaoyan
35e7b9551f
ignore Loopback Address (LVS,DR mode)
2019-08-26 21:48:40 +08:00
Asim Aslam
6daf4fda72
Full support for grpc server side
2019-08-26 12:33:59 +01:00
Asim Aslam
36623bfe50
Improve stream processing
2019-08-25 19:30:22 +01:00
Asim Aslam
6128d18ee0
checkpoint fixing data race to process h2 and grpc requests
2019-08-24 20:12:04 +01:00
Asim Aslam
abadb2211e
Merge pull request #698 from micro/tunnel-broker
...
Add a tunnel broker
2019-08-24 14:37:20 +01:00
Asim Aslam
ca267f73de
add a tunnel broker
2019-08-24 09:46:55 +01:00
Asim Aslam
d8608b2343
Merge pull request #697 from micro/static-resolver
...
Add a static network node resolver
2019-08-23 22:05:02 +01:00
Milos Gajdos
ed8d28c9ab
Set Route.Link to "network" not Route.Network. Oops!
2019-08-23 21:08:18 +01:00
Milos Gajdos
88e47b9b06
Dont bail when unable to resolve network nodes.
2019-08-23 17:48:14 +01:00
Asim Aslam
1b0295de0d
Add a static network node resolver
2019-08-23 17:24:21 +01:00
Milos Gajdos
9448d7c164
Set Route.Network to "network" and Router.Gateway to network.Address
2019-08-23 16:01:57 +01:00
Milos Gajdos
8c3eec9f2a
Set the default resolver to registry
2019-08-23 15:14:16 +01:00
Milos Gajdos
e53484302c
Added ControlChannel tunnel.Listener to process incoming messages
2019-08-23 15:14:16 +01:00
Milos Gajdos
db89fc4efe
Set server name to the correct value.
2019-08-23 15:14:16 +01:00
Milos Gajdos
e1599b0f17
Set server name. Set default network name.
2019-08-23 15:14:16 +01:00
Milos Gajdos
a09d5d2e9a
Add Address method. Start and Stop router/server.
2019-08-23 15:14:16 +01:00
Milos Gajdos
6c1f1d66f7
Switch received messages on the right header
2019-08-23 15:14:16 +01:00
Milos Gajdos
a6e1287b27
Replaced incorrect proto import path
2019-08-23 15:14:15 +01:00
Milos Gajdos
fcec6e8eae
First attempt to implement default network interface
2019-08-23 15:14:15 +01:00
Milos Gajdos
30dd3f54f0
Make router.Table docs consistent
2019-08-23 15:14:15 +01:00
Milos Gajdos
6beae23afd
First commit. Outline of the default network.
2019-08-23 15:14:15 +01:00
Asim Aslam
718780367e
Merge pull request #696 from milosgajdos83/server-idempotent
...
Make server Start() and Stop() idempotent
2019-08-23 15:12:33 +01:00
Milos Gajdos
ba99f037fb
Lock started flag when changing it.
2019-08-23 15:07:08 +01:00
Milos Gajdos
80dc0b97a9
Make server starts and stops idempotent
2019-08-23 15:00:57 +01:00
Asim Aslam
1a32e3a11d
Merge pull request #695 from micro/proxy-link
...
Support multiple clients in the proxy as Links
2019-08-23 14:48:49 +01:00
Asim Aslam
955dc2a23d
change where we order the routes
2019-08-23 14:11:53 +01:00
Asim Aslam
934b8eb86d
Error as link not found
2019-08-23 14:09:57 +01:00
Asim Aslam
b7f510ff64
support links in the proxy
2019-08-23 14:05:11 +01:00
Asim Aslam
353eade6c3
Update client proto
2019-08-23 12:06:11 +01:00
Asim Aslam
a133e61c2d
Merge pull request #694 from milosgajdos83/tunnel-loopback-sleep
...
Lock when setting loopback flag and receiving keepalives
2019-08-22 17:35:03 +01:00
Milos Gajdos
99d39e743b
Lock when setting loopback flag and receiving keepalives
2019-08-22 16:31:37 +01:00
Asim Aslam
0cdac2aa36
Merge pull request #689 from milosgajdos83/router-stop
...
Make router.Stop idempotent
2019-08-21 21:25:48 +01:00
Milos Gajdos
75871287a1
Make stop idempotent. Small refactoring. Router name is memory.
2019-08-21 21:10:42 +01:00
Asim Aslam
fb750a0bb1
Don't start the router if its already running
2019-08-21 18:58:56 +01:00
Asim Aslam
c6e15ef2d1
rename server, set version to timestamp
2019-08-21 15:43:46 +01:00
Asim Aslam
f787cc0ee0
Merge pull request #687 from micro/tunnel
...
Add tunnel address
2019-08-21 13:01:28 +01:00
Asim Aslam
c2d85a6e1f
Add tunnel address
2019-08-21 12:55:10 +01:00
Milos Gajdos
86f0c06fac
Removed filewatch counter test.
2019-08-21 11:26:41 +01:00
Asim Aslam
0aea8e3163
Merge pull request #686 from milosgajdos83/config-watcher
...
Introduce ErrStoppedWatcher for source.Source Watchers and fixed test
2019-08-21 11:06:14 +01:00
Milos Gajdos
4ea27517b5
Source watcher ErrStoppedWatcher and fixed test
2019-08-20 22:32:47 +01:00
Asim Aslam
f8e68ae101
Add string method to tunnel
2019-08-20 17:21:35 +01:00
Asim Aslam
f848041c49
Add a message type to the tunnel
2019-08-20 17:20:21 +01:00
Asim Aslam
dfbd730b8c
Fix mucp service option passing
2019-08-20 16:48:09 +01:00
Asim Aslam
ac2a5a04a2
Merge pull request #681 from unistack-org/fix_wg
...
fix panic: negative WaitGroup counter
2019-08-19 12:06:45 +01:00
Vasiliy Tolstov
f1d08f251f
fix panic: negative WaitGroup counter
...
avoid double wait group Done()
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-08-19 13:58:57 +03:00
Asim Aslam
718ae42808
Merge pull request #680 from printfcoder/master
...
fix file watcher event bug on Linux
2019-08-19 08:34:21 +01:00
Shu Xian
2413cbcd80
fix file watcher event bug on Linux
...
the watcher can not normally get events of file changes on linux. it just can get the first two changes.
2019-08-19 15:28:24 +08:00
Asim Aslam
9c820445a4
Merge pull request #679 from micro/grpc-codec
...
Force grpc client/server to use grpc codec for broker
2019-08-18 11:37:38 +01:00
Asim Aslam
c44fd63301
Force grpc client/server to use grpc codec for broker
2019-08-18 11:28:21 +01:00
Asim Aslam
d9a699ae6f
Merge pull request #673 from micro/multiplex
...
Stream Multiplexing
2019-08-16 17:41:45 +01:00
Asim Aslam
4495ca3839
Use client.Call for non streaming requests
2019-08-16 17:24:17 +01:00
Asim Aslam
0b0eee41d0
functioning proxy code
2019-08-16 16:46:29 +01:00
Asim Aslam
e18f8defde
Merge pull request #672 from milosgajdos83/tunnel-ping
...
Monitor outbound links and delete them when disconnected
2019-08-16 16:09:14 +01:00
Milos Gajdos
7abdc68049
Fixed the race. Made wait channel boolean.
2019-08-16 15:40:35 +01:00
Milos Gajdos
c90e1ccb99
Fixed reconnect code; refactor tunnel tests.
2019-08-16 15:18:34 +01:00
Asim Aslam
991142cd57
No need to set request in the buffer
2019-08-16 14:42:45 +01:00
Asim Aslam
5a5b1b8f6e
only continue to stream when its a stream
2019-08-15 20:54:28 +01:00
Asim Aslam
58bc4c103f
go fmt
2019-08-15 20:54:09 +01:00
Asim Aslam
88817dc53f
Strip some dead code
2019-08-15 20:54:00 +01:00
Asim Aslam
ef04331b86
multiplexing cruft
2019-08-15 20:08:49 +01:00
Milos Gajdos
67215ae5da
Changed nodeLink to setupLink
2019-08-15 19:24:24 +01:00
Milos Gajdos
f120452d28
Monitor outbound links periodically and reconnect the failed links.
2019-08-15 18:18:58 +01:00
Milos Gajdos
740cfab8d0
Monitor outbound links and delete them when disconnected
2019-08-15 16:52:16 +01:00
Asim Aslam
f6b8045dd5
send client error if it exists
2019-08-15 15:22:53 +01:00
Asim Aslam
b776fbb766
add a pseudo socket implementation
2019-08-15 15:09:56 +01:00
Asim Aslam
a42de29f67
Do same for host port on deregister
2019-08-15 08:59:50 +01:00
Asim Aslam
0f6d09af33
go fmt
2019-08-15 08:47:32 +01:00
Asim Aslam
2dd5109eee
Merge pull request #669 from printfcoder/master
...
fix registry addr error for mq-rpc
2019-08-15 07:36:06 +01:00
Shu xian
e609095ba4
Merge pull request #2 from micro/master
...
merge
2019-08-15 08:38:08 +08:00
Asim Aslam
4843f09afa
Merge pull request #670 from milosgajdos83/loopback-msg-fix
...
Fixing the tunnel loopback messaging
2019-08-14 17:28:15 +01:00
Milos Gajdos
f9eddf1e6f
Fixing the tunnel loopback messaging
2019-08-14 17:14:39 +01:00
Shu xian
f19308f1e6
Merge pull request #1 from micro/master
...
merge
2019-08-14 22:02:41 +08:00
Asim Aslam
8f0c2e0412
add a better tunnel test
2019-08-14 14:38:17 +01:00
Shu Xian
bf0e46dc0d
fix registry addr error for mq-rpc
2019-08-14 21:32:28 +08:00
Asim Aslam
15975d2903
Merge pull request #668 from milosgajdos83/tun-token-loopback
...
[WIP] Tunnel loopback connections
2019-08-14 14:32:18 +01:00
Milos Gajdos
9f2f0e3cea
Moved Close method to the bottom
2019-08-14 13:26:23 +01:00
Milos Gajdos
151bcf0ea1
Send and receive on loopback tunnel interface
2019-08-14 13:00:10 +01:00
Asim Aslam
dc0fbfc3c0
Merge pull request #666 from unistack-org/log
...
export log levels and reverse log level order
2019-08-14 07:41:01 +01:00
Milos Gajdos
e607485c6b
Check for token in every received message.
2019-08-14 01:23:03 +01:00
Vasiliy Tolstov
70d0029658
add warn log level
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-08-14 02:26:51 +03:00
Vasiliy Tolstov
a606813fdf
export log levels and reverse log level order
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-08-14 02:18:22 +03:00
Milos Gajdos
750267b308
first commit to draft up a way for Sending messages to loopback
2019-08-13 20:11:23 +01:00
Asim Aslam
7ce0305db4
only operate on clients that are the same as the server
2019-08-13 16:08:56 +01:00
Asim Aslam
c39591af0e
add a mux package for the proxy
2019-08-13 15:21:51 +01:00
Asim Aslam
fedc6be3e6
Merge pull request #663 from milosgajdos83/router-start
...
Add Start method to router
2019-08-13 08:12:56 +01:00
Milos Gajdos
cb1679fd8d
Add Start method to router
...
Added Start to router packages.
Fixed potential deadlocks.
2019-08-12 22:23:46 +01:00
Asim Aslam
c0a676bfa9
Only check the router status if the lookup fails
2019-08-12 17:06:08 +01:00