c6c2b0884e
jitter: add NewTickerContext
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-26 17:59:19 +03:00
2d292db7bd
small fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-25 14:24:20 +03:00
0854a7ea72
micro: add simple test
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-10-07 20:59:27 +03:00
5eb0e56373
move all imports to own domain
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-10-02 19:55:07 +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
52d8255974
service init with own context
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-28 23:42:02 +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
abb9937787
fix lint issues ( #16 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-13 01:46:16 +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
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
6b1ed63b48
guard agains not fully configured config sources
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-20 01:00:52 +03:00
565082f515
before/after config stuff handled by implementations
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-18 03:38:09 +03:00
c6dfc8acaa
load config on service init
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-13 14:36:31 +03:00
e08276c2e2
gofmt
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-08 00:41:14 +03:00
5279c2aa0f
config package rework ( #9 )
...
* change config interface
* reuse codec
* allow to modify next config based on values in current config via BeforeLoad
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-04 02:28:45 +03:00
c9049c3845
major codec upgrade
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-23 16:21:07 +03:00
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