4233a4b673
init cmd and logger options on service init
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-13 14:52:19 +03:00
fa9ef1c816
simplify service stop waiting
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-10 10:59:26 +03:00
c92add984c
allow to return all stuff from service opts
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-06 00:04:00 +03:00
e41bb5ebc5
rewrite logger
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 00:23:05 +03:00
0e6efda528
minor cleanup
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-28 17:48:39 +03:00
f2413a7789
disconnect from stuff on service stop
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-28 12:02:57 +03:00
9553f46cf4
connect to all stuff on start
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-28 10:51:09 +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
24be220f91
close micro-roadmap/issues/12
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 12:15:55 +03:00
7e3fac8937
fix store context issues
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-17 15:41:49 +03:00
d59db9df16
check for nil cmd
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-14 12:58:51 +03:00
f1fde75567
fix init
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-07 15:29:43 +03:00
5fe3a46732
init default stuff
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-07 13:38:52 +03:00
e7d418183b
fixup logger usage ( #33 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-05 02:43:16 +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
0f19355621
resurrect service stuff
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-28 10:58:08 +03: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
16c591d741
call cmd.Run
2020-07-19 18:20:17 +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
Asim Aslam
057d61063f
Move back command
2020-07-14 20:57:13 +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
fde1aa9d6a
Move auth account creation to config/cmd ( #1676 )
2020-06-12 10:42:52 +01:00
Ben Toogood
2729569f66
Add Debug.Cache method
2020-05-24 18:45:57 +01:00
Ben Toogood
7d7f4046e8
Client Cache
2020-05-22 16:52:24 +01:00
Ben Toogood
6b451a2197
Refactor auth setup to util/auth
2020-05-14 16:10:14 +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
ca791d7e8d
Disable Clients
2020-05-13 18:47:53 +01:00
Ben Toogood
410fec8ee4
Fix auth bug
2020-05-13 16:49:17 +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
54951740bf
Authenticate on service start
2020-05-13 13:13:11 +01:00
Ben Toogood
937ecc8d2f
Disable auth service client
2020-05-11 20:38:05 +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
Asim Aslam
38cdb9cc2f
Set table name in store
2020-05-01 18:24:35 +01:00
Asim Aslam
b3915b6020
Add store to options ( #1600 )
2020-05-01 18:05:09 +01:00
Ben Toogood
f48dec1fb0
Use Server ID in account name
2020-04-29 15:27:18 +01:00
Ben Toogood
99f8be5b3d
Auth Client Wrapper
2020-04-29 15:11:06 +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
Jake Sanders
71538adfdc
Explicitly set the table name during service init ( #1497 )
2020-04-07 13:00:05 +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
dea2d7ab9f
Fix go-micro auth wrapper init
2020-04-03 12:27:01 +01:00
Ben Toogood
ce23ab36cb
Improve Err Handling
2020-04-02 18:41:06 +01:00
Ben Toogood
d659e435c6
Service => Service Auth
2020-03-31 12:44:34 +01:00
Asim Aslam
6efc5556e5
use requested service ( #1413 )
2020-03-25 20:59:37 +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