1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00
Commit Graph

20 Commits

Author SHA1 Message Date
d50f30d743 strip handlers 2019-12-10 11:46:13 +00:00
a1eaf9cc20 linting fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-12-04 00:22:02 +03:00
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
f67c5e779f preallocated slices (#917) 2019-11-05 17:43:12 +00:00
f88518d994 used gofmt with -s flag on whole project 2019-11-01 15:07:53 +00:00
1ff65e140a Change router.Route metric to int64. Set the route metric properly 2019-10-23 16:51:22 +01:00
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
de34f259ba update service not found error tooltip
fixing test failed issue

change back error type
change registry.ErrNotFound back to selector.ErrNotFound

change back error type
change registry.ErrNotFound back to selector.ErrNotFound

remove the single node tunnel test

Fix read yaml config from memory

package main

import (
	"fmt"

	"github.com/micro/go-micro/config"
	"github.com/micro/go-micro/config/source/memory"
)

var configData = []byte(`
---
a: 1234
`)

func main() {
	memorySource := memory.NewSource(
		memory.WithYAML(configData),
	)
	// Create new config
	conf := config.NewConfig()

	// Load file source
	conf.Load(memorySource)

	fmt.Println(string(conf.Bytes()))
}
2019-08-11 19:31:22 +08:00
4030ccc27b Move proxy/router 2019-08-05 17:44:33 +01:00
2f1658c213 Table package is no more, hence removed references to it 2019-07-27 16:11:06 +01:00
b23d955536 Use gateway if available 2019-07-10 08:26:33 +01:00
64ec0633a3 Fix breaks and go fmt 2019-07-10 07:47:17 +01:00
6cf8bde612 Router selector and proxy modifications due to Route struct changes. 2019-07-09 16:45:31 +01:00
b82245429e Simplified table logic. Lookup tests. mucp/cient update 2019-07-09 15:46:31 +01:00
e0bf1c2283 Remove Port from registry 2019-07-08 08:01:42 +01:00
940ea94a96 Lookup router via registry 2019-06-26 19:56:40 +01:00
cedcef032d Add remote lookup via router selector 2019-06-26 19:27:38 +01:00
ac098e4d78 add router selector and network defaults 2019-06-26 16:12:57 +01:00
1b4005e9a5 Go fmt everything 2019-06-21 17:20:41 +01:00
ca5acba0c6 Move selector to client/selector 2019-06-21 15:13:54 +01:00