42 Commits
Author SHA1 Message Date
David ColburnandGitHub 248dc5f10f 503 for timeout errors (#98) 2024-09-23 21:07:58 -04:00
David ColburnandGitHub 0611542c99 custom server selection (#82) 2024-02-08 16:13:57 -08:00
David ColburnandGitHub 84d7ae1253 Add randomness to server selection (#81)
* add randomness to server selection

* change to request option
2024-01-29 14:39:32 -08:00
David ColburnandGitHub 4762aefeb9 generate client and server ids (#73)
* generate client and server ids

* add option to supply ids
2023-10-25 18:22:56 -07:00
David ColburnandGitHub f9ce87b4f2 Affinity context (#71)
* add context to affinity

* update version
2023-10-23 16:29:31 -07:00
David ColburnandGitHub 2e4bde975b RPCs queue by default (#67)
* rpcs queue by default

* leave retries to interceptor

* use new enum

* increase affinity timeout in test

* fix affinity generation
2023-08-16 14:38:06 -07:00
David ColburnandGitHub 684f32e1ca Max affinity (#65)
* max affinity

* version bump
2023-07-12 18:19:11 -04:00
David ColburnandGitHub 3a3a2a935f Refactor (#55)
* checkpoint

* cleaned up streams

* clean up multi rpcs

* clean up rpc

* service definition, fix stream bug

* fix #54

* updates

* version bump
2023-04-21 11:14:02 -07:00
d7520b4184 v0.2.8 (#24)
* v0.2.7

* Update version/version.go

---------

Co-authored-by: Paul Wells <[email protected]>
2023-02-23 19:24:35 -08:00
David ColburnandGitHub 077a67f800 Fix client ignoring malformed request errors, clean up (#35)
* cleaning

* receive malformed_request errors, simplify nil subscription
2023-02-18 00:37:36 -08:00
David ColburnandGitHub 004a5b40ea fix panics (#34)
* fix panics

* must return ResponseType
2023-02-17 20:04:47 -08:00
David ColburnandGitHub 6bb7f3bb23 don't respond if affinity < 0 (#32)
* don't respond if affinity < 1

* normal handler as well

* fix af
2023-02-16 16:08:04 -08:00
David ColburnandGitHub 4b94ae9614 bump version (#18) 2023-01-30 09:33:41 -08:00
David ColburnandGitHub 0642f9a12b update psrpc (#15) 2023-01-25 15:03:02 -08:00
David ColburnandGitHub 8fd0d2fe2b lock version (#12)
* lock version

* NOTICE
2023-01-18 13:02:22 -08:00
David ColburnandGitHub 4b24b7e7a7 Client hooks (#8)
* client hooks

* update comment
2023-01-13 04:22:04 +09:00
David ColburnandGitHub 11505088f6 Errors (#7)
* Errors

* NewErrorf

* missed a test .psrpc.go file

* error logger interceptor

* consistency

* update interceptor test

* WithServerErrorLogger too specific

* add rpc info to server interceptors
2023-01-13 03:26:21 +09:00
David Colburn ca0e20d485 update readme 2022-12-27 20:45:21 -08:00
David ColburnandGitHub 0871280fc5 Add local message bus (#6)
* local message bus

* move unlocks

* local bus too fast

* add comments

* simplify

* setup-protoc rate limit
2022-12-27 20:21:32 -08:00
David ColburnandGitHub bc629b5d71 Fix shutdown deadlock (#5)
* fix shutdown deadlock

* 0.2.1
2022-12-27 13:40:05 -08:00
David ColburnandGitHub a4ea5d1dfb Interceptors (#4)
* v0.2.0

* more cleaning

* wrong atomic

* move handler definition

* add channel size option
2022-12-24 00:42:56 -08:00
David Colburn 3fe6a02aaf v0.1.0 2022-12-22 15:02:37 -08:00
David ColburnandGitHub f879402619 protoc-gen-psrpc (#3)
* protoc-gen-psrpc

* static check

* install protoc-gen-go, add generate workflow

* combine actions

* add more testing

* increate test timeouts

* add small wait after subscribing

* errors
2022-12-22 11:47:34 -08:00
David ColburnandGitHub 2296750065 separate claims channel per rpc (#2) 2022-12-20 16:53:37 -08:00
David ColburnandGitHub c525363b1f Generics (#1)
* generics

* generic subscriptions

* update readme

* fix spacing

* update static check

* simplify, use go 1.18 for testing

* min-go-version

* do not install

* final readme updates

* more cleaning

* more cleaning

* missing *s
2022-12-20 09:39:27 -08:00
David Colburn 14707f938a rename repo 2022-12-05 14:33:25 -08:00
David Colburn ae148e4cac rename module 2022-12-05 13:50:09 -08:00
David Colburn 790e6582c0 remove channel size options - redis is set to 100 2022-12-05 13:26:51 -08:00
David Colburn c4e095d54f clean up 2022-12-05 13:08:45 -08:00
David Colburn ca0ffdc193 add license 2022-12-05 12:54:07 -08:00
David Colburn b00e48b443 update readme 2022-12-05 12:51:18 -08:00
David Colburn fcf740ba18 add serviceNames to readme examples 2022-12-05 11:30:13 -08:00
David Colburn cd92b13e2b update readme 2022-12-05 11:26:12 -08:00
David Colburn aa7c8952ba rename, return errors with multi 2022-12-05 11:24:47 -08:00
David Colburn ca735bb220 add request expiry 2022-12-05 11:13:37 -08:00
David Colburn 70bdc1f425 update test flow 2022-12-05 10:51:35 -08:00
David Colburn ac3a9155fc updates 2022-12-05 10:40:29 -08:00
David Colburn 0bbc2cae42 add affinity testing 2022-12-02 15:23:15 -08:00
David Colburn 044fc178e6 add logging 2022-12-02 14:18:15 -08:00
David Colburn c7f324c534 affinity 2022-12-01 18:50:24 -08:00
David Colburn 67f675be7a DeregisterHandler, add comments 2022-12-01 16:08:48 -08:00
David Colburn 67bd4cad3f pubsub rpc 2022-12-01 15:16:32 -08:00