3247d144a8
lint fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-30 21:13:13 +03:00
7b2e3cc8aa
lint fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-30 21:00:02 +03:00
e3fee6f8a6
util/http: add trie case insesitive matching
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-29 13:41:47 +03:00
15c020fac5
fix lint
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-29 13:19:07 +03:00
542f36cfa5
util/reflect: fix tests, lint fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-29 13:09:48 +03:00
8237e6a08e
util/router: drop google copy of pattern matcher in favour of util/http trie
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-29 13:09:22 +03:00
ecb60e4dc5
fix lint
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-28 23:43:43 +03:00
a1999ff81c
util/http: trie add more tests
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-28 01:02:28 +03:00
d0f2bc8346
util/http: add trie matching func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-27 23:30:53 +03:00
e10f8c0fa0
util/id: move tests to micro-tests repo
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-16 15:31:01 +03:00
faad082efe
util/rand: add Shuffle func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-15 17:51:25 +03:00
e3545532e8
minor changes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-21 01:00:10 +03:00
09653c2fb2
util/id: specify default size for uuid behaviour
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-20 22:48:03 +03:00
a45b672c98
drop uuid and use modified nanoid
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-20 22:40:48 +03:00
4509323cae
update and regen all
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-16 23:56:50 +03:00
f47fbb1030
config: add jitter interval for watcher to avoid dos
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-04 00:37:56 +03:00
fa8fb3aed7
fixes and improvements ( #55 )
...
* util/router: sync from github
* config: add watcher interface
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-03 00:24:40 +03:00
d306f77ffc
util/token/jwt: change library
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-07-27 23:58:29 +03:00
e4673bcc50
remove old cruft
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-07-22 15:45:44 +03:00
a839f75a2f
util/reflect: add new funcs
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-07-22 15:45:31 +03:00
b4e5d9462a
util/router: move some messages to Trace level
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-07-15 22:56:34 +03:00
c592fabe2a
minor fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-07-01 15:56:22 +03:00
598dddc476
util/reflect: fix time.Time StructFields parsing
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-06-19 15:58:36 +03:00
887b48f1e7
util/reflect: improve StructFields func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-06-17 12:53:23 +03:00
60a5e737f8
util/reflect: return pointer from helper funcs
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-05-25 22:44:22 +03:00
34f0b209cc
codec: add ability to control codec via struct tags
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-05-25 22:20:39 +03:00
86626c5922
fieldalignment of all structs to save memory
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-27 08:32:47 +03:00
852f19598d
util/reflect: fix protobuf field name detection
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-19 11:34:28 +03:00
6537b35773
util/reflect: add interface merging
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-19 01:19:37 +03:00
a2695d8699
util/reflect: rewrite struct merging with map
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-10 01:22:40 +03:00
df5bce1191
util/reflect: fix StructURLValues
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-03 11:50:23 +03:00
a06f535303
util/reflect: add StructURLValues func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-01 00:30:26 +03:00
8742b55305
auth: fix Init method
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-24 13:12:03 +03:00
8c95448535
util/reflect: add IsZero helper
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-21 16:17:50 +03:00
bbbcb22565
fieldalignment of all structs to save memory
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-06 19:45:13 +03:00
cf2aa827e4
update to go 1.16
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-18 12:44:18 +03:00
5596345382
util/rand: replace all non crypto rand stuff with own rand package
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-18 12:44:18 +03:00
67748a2132
util/reflect: import own path based interface lookup
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-14 23:33:01 +03:00
4ec4c277b7
lint: fix all major issues
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-14 16:16:01 +03:00
e5bf1448f4
lint fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-14 11:28:50 +03:00
82248eb3b0
many lint fixes and optimizations ( #17 )
...
* util/kubernetes: drop stale files
* debug/log/kubernetes: drop stale files
* util/scope: remove stale files
* util/mdns: drop stale files
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-13 15:35:56 +03:00
abb9937787
fix lint issues ( #16 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-13 01:46:16 +03:00
0e51a79bb6
metadata: split context to incoming and outgoing
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-09 01:08:45 +03:00
1de9911b73
util/reflect: add missing types for merge
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-06 18:13:43 +03:00
b4092c6619
util/reflect: improve merge for map
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-05 18:27:16 +03:00
ef4efa6a6b
rename util
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 14:50:09 +03:00
827d467077
micro: rewrite options to support multiple building blocks
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 13:17:32 +03:00
286785491c
store: improve interface
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-26 02:09:26 +03:00
dcca28944e
util/reflect: add useful helpers
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-21 14:05:50 +03:00
188d9611c9
util/reflect: add struct field helper
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-20 00:47:13 +03:00
770e8425bd
config: move reflect stuff to util/reflect
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 01:40:34 +03:00
8b7380876e
modify all code for never logger interface
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 19:24:03 +03:00
70a17dc10a
client: allow to create new client with predefined call options
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-15 23:09:51 +03:00
6a7433ba2a
store: refactor interface ( #11 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-10 22:08:56 +03:00
c9049c3845
major codec upgrade
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-23 16:21:07 +03:00
daffa9e548
use metadata.Metadata ( #8 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-18 16:50:41 +03:00
7c9a7e84c7
not use selfsigned certs
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 23:55:53 +03:00
31180758b4
move avay grpc stuff to micro-server-grpc
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 23:46:11 +03:00
e41bb5ebc5
rewrite logger
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 00:23:05 +03:00
8a2b122015
many fixes for lint and context.Context usage ( #5 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 02:02:32 +03:00
40b0870cf8
fix linting ( #4 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 01:08:23 +03:00
a9eff06976
fix repocard issues ( #2 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-02 13:25:29 +03:00
14c97d59c1
many improvements with options and noop stuff
...
* add many options helpers
* fix noop client to allow publish messages to topic in broker
* fix noop server to allow registering in registry
* fix noop server to allow subscribe to topic in broker
* fix new service initialization
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-16 09:38:57 +03:00
2fc47782cf
use metadata helper
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 16:51:58 +03:00
34d93306d6
new registry util func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 16:49:29 +03:00
9c55b1d06a
fix metadata issues with uppercase letters
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-30 16:14:54 +03:00
1cbd1d2bad
fix
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 16:57:54 +03:00
7e3fac8937
fix store context issues
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-17 15:41:49 +03:00
c576749b57
noop impl ( #32 )
...
* improve logger usage
* add noop client and server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-05 02:11:29 +03:00
ef773d8d49
remove util/log in favour of logger ( #23 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 17:31:28 +03:00
67ab44593b
fix repocard issues ( #21 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 15:41:48 +03:00
8076e410a9
fix repocard issues ( #20 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 14:33:36 +03:00
0f4b1435d9
move implementations to external repos ( #17 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 13:44:41 +03:00
c4a303190a
lint fixes ( #14 )
...
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-21 14:53:21 +03:00
199ff66bd4
enable cache for build, closes #8 ( #12 )
...
* enable cache for build, closes #8
* goimports
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-20 15:23:41 +03:00
ben-toogood
cf084b410f
util/file: allow context to be passed ( #1950 )
2020-08-20 14:18:52 +03:00
06136312bb
regen files with never protoc ( #6 )
...
* regen files with never protoc
* rewrite import path
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-19 17:47:17 +03:00
Asim Aslam
50ec6c748f
cleanup client/selector/lookup ( #1937 )
...
* cleanup client/selector/lookup
* add mdns router, remove registry from client
* fix roundtripper
* remove comment
* fix compile issue
* fix mucp test
* fix api router
2020-08-17 22:44:45 +01:00
ben-toogood
5a88ea7247
runtime: resource limits (kubernetes implementation) ( #1931 )
...
* runtime: add resource limit CreateOptions
* util/kubernetes/client: implement support for resource limits
* runtime/kubernetes: set resource limits for k8s deployments
* util/kubernetes: remove template check for ints
* util/kubernetes: fix incorrect yaml syntax
* runtime/kubernetes: fix incorrect units
* runtime: update create options to use Resources struct
2020-08-14 11:47:28 +01:00
Asim Aslam
c51ef6fc29
move wrapper to client
2020-08-11 11:25:49 +01:00
ben-toogood
1263806a39
util/kubernetes: add readiness check to deployments ( #1923 )
2020-08-11 08:38:30 +01:00
Asim Aslam
13f495587e
cleanup debug and transport ( #1920 )
2020-08-10 15:58:39 +01:00
Asim Aslam
a6d7b1d710
Move api/router/util to util/router ( #1909 )
2020-08-07 13:30:29 +01:00
Asim Aslam
8ee31b94a1
remove handler/util package in favour of util/router ( #1908 )
2020-08-07 12:47:20 +01:00
Asim Aslam
24e5b2a034
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-08-03 22:21:13 +01:00
Asim Aslam
971a962894
Fix typo
2020-08-03 22:20:30 +01:00
ben-toogood
0b73d411ad
client: rename WithServiceToken => WithAuthToken ( #1887 )
2020-07-31 11:36:33 +01:00
ben-toogood
e9fc5b1671
client: add proxy option ( #1885 )
...
* client: add proxy option
* client: add WithProxy CallOption
* use address option
* ProxyAddress => Proxy
2020-07-30 15:22:36 +01:00
yu
d66803a136
fix bug https://github.com/micro/go-micro/issues/1883 ( #1884 )
...
* fix #1883
* fix #1883
Co-authored-by: 杨羽 <yangyu@doumi.com>
2020-07-29 12:45:25 +01:00
c6163bb22f
fix qson parsing on invalid input, close #1874 ( #1880 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-07-28 12:34:50 +01:00
Asim Aslam
563768b58a
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00
Asim Aslam
d3326efd4b
Move out the token package to util
2020-07-19 13:41:23 +01:00
Di Wu
f9bf562393
fix typo in comments ( #1840 )
...
* remove global error tracking
* rpc_server: fix invalid register err
* fix typo
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-16 16:33:11 +01:00
ben-toogood
73a3f596e8
util/kubernetes/client: set imagePullPolicy to always ( #1838 )
2020-07-14 15:17:23 +01:00
ben-toogood
a5e9dc21ca
util/wrapper: allow enforcing a specific namespace when verifying requests ( #1832 )
...
* auth/jwt: add debugging
* auth: more debugging
* auth: more debugging
* util/wrapper: don't use request context
* util/wrapper: AuthHandlerNamespace
* remove debugging
2020-07-14 10:27:15 +01:00
ben-toogood
2e04fcd718
config/cmd: don't fatally error if auth account cannot be generated ( #1824 )
2020-07-13 12:52:54 +01:00
ben-toogood
7355455020
auth/service: generate accounts client side if JWT credentials present ( #1823 )
2020-07-13 10:20:31 +01:00
ben-toogood
09ec20fded
runtime: provide credentials to services ( #1817 )
...
* runtime: inject credentials into service
* util/auth: self generate accounts (needed for jwt)
* runtime/kubernetes: add logging for creds
* runtime/kubernetes: serialize secret name
* runtime/kubernetes: remove unused code
* runtime/kubernetes: base64 encode secret
* runtime/kubernetes: remove metadata from secret
* util/kubernetes/client: omit empty secret metadata
* util/kubernetes/client: fix secret template
* util/kubernetes/client: fix secrets
* web: update auth util
* util/auth: fix missing arg
* extend token expiry
* extend token expiry
2020-07-10 16:25:46 +01:00
ben-toogood
6d9a38a747
kubernetes: fixes for production ( #1812 )
...
* util/kubernetes/client: add secrets to deployments
* util/kubernetes/client: remove ServiceAccountName override
* debugging
* runtime/kubernetes: fix error
* runtime/kubernetes: remove test secret
* util/kubernetes/client: update default image
* util/kubernetes/client: remove default command for deployments
* runtime/kubernetes: pass source as arg
* runtime/kubernetes: remove debugging
* util/kubernetes/client: revert default image change
2020-07-09 16:29:01 +01:00
ben-toogood
0a937745cd
auth: pass namespace options in auth service requests ( #1800 )
...
* auth: pass namespace options in auth service requests
* auth/service/proto: update field index
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-07 08:30:25 +01:00