Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation about state machines and few refinements along the way #112

Merged
merged 72 commits into from
May 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
9fa9466
readme: fix wrong code block
widmogrod Mar 4, 2024
b3b8706
x/machine: better testing suite usability
widmogrod Mar 30, 2024
149944d
x/workflow: refactor to new testing suite
widmogrod Mar 30, 2024
173f519
example/state: refactor to order service and use new testing suite
widmogrod Mar 30, 2024
57f610f
dev: introduce moq
widmogrod Mar 30, 2024
884a866
dev: expose different port for documentation
widmogrod Mar 30, 2024
a23dac3
docs: description of state machine
widmogrod Mar 30, 2024
f4d73b5
docs: small fixes
widmogrod Mar 30, 2024
1f3fb67
example: tic tac toe machine use new testing suite
widmogrod Mar 30, 2024
4a7b9b1
go.mod update
widmogrod Mar 30, 2024
c825ebf
my-app: few adjustments to code
widmogrod Mar 31, 2024
dcb4437
example/state: moq generation needs to be in the same file as mkunion
widmogrod Mar 31, 2024
1c5e6ed
update ci.yml with go moq and deps bump
widmogrod Mar 31, 2024
03cc034
update ci.yml with go moq and deps bump
widmogrod Mar 31, 2024
fe52a7d
update ci.yml GOPATH
widmogrod Mar 31, 2024
826d26c
update ci.yml GOPATH
widmogrod Mar 31, 2024
72f3f89
update ci.yml GOPATH
widmogrod Mar 31, 2024
1560c21
update ci.yml GOPATH
widmogrod Mar 31, 2024
a7c9c86
update ci.yml GOPATH
widmogrod Mar 31, 2024
8e6a8c8
update dev loop
widmogrod Mar 31, 2024
2e1c273
docs: clean and expand on generic unions
widmogrod May 3, 2024
2b6d15d
docs: clean and fix typos in getting started
widmogrod May 3, 2024
7dd3884
docs: introduce roadmap idea
widmogrod May 3, 2024
7f6c3c3
docs: expand state machine documentation
widmogrod May 3, 2024
f9635dd
example: reorder model.go file
widmogrod May 3, 2024
9893242
docs: refine state machine description
widmogrod May 4, 2024
80e8e24
docs: Marshaling union as JSON
widmogrod May 11, 2024
182d567
docs: Improve title and wording
widmogrod May 11, 2024
753969b
docs: Add feature to the roadmap
widmogrod May 11, 2024
80954d2
example: Add TreeJson serialisation
widmogrod May 11, 2024
7d3fe4d
cmd: type-registry now registers json marshaler
widmogrod May 11, 2024
bdbab97
shared/json: add method description
widmogrod May 11, 2024
87b6196
cmd/mkunion: add registering JSONMarshaler during generation
widmogrod May 11, 2024
ba21876
x/machine: add context to machine.Handle(ctx, ...)
widmogrod May 11, 2024
c34ff6c
x/workflow: update Transition function to support context
widmogrod May 11, 2024
9f99887
x/taskqueue: change signature machine.Handle(ctx,...)
widmogrod May 11, 2024
a146d53
x/taskqueue: change signature machine.Handle(ctx,...) to have context…
widmogrod May 11, 2024
bceca05
x/state: Introduce storage example and tests
widmogrod May 11, 2024
d48af06
example/tic_tac_toe: change signature machine.Handle(ctx,...) to have…
widmogrod May 11, 2024
e4bde3d
f: generic union example with JSON serialisation
widmogrod May 11, 2024
ab496ad
my-app: change signature machine.Handle(ctx,...)
widmogrod May 11, 2024
abe5d83
x/schema: test fallback conversions
widmogrod May 11, 2024
45fb01d
update comments
widmogrod May 11, 2024
b6af66f
docs: introduce incomplete documentations
widmogrod May 11, 2024
b818e43
feature: make type-registry ON by default
widmogrod May 11, 2024
32b5f10
fix: fix moq problem with order of running of go:generate
widmogrod May 11, 2024
a58c460
maintenance: go mod tidy
widmogrod May 12, 2024
cf0ecb4
debug: ci.yaml find empty imports
widmogrod May 12, 2024
00150c0
debug: supress find errors
widmogrod May 12, 2024
8c77002
debug: supress find errors
widmogrod May 12, 2024
5d5752d
debug: make find return 0
widmogrod May 12, 2024
c02fa01
debug: make find return 0
widmogrod May 12, 2024
9f0f49f
debug: where is empty import
widmogrod May 12, 2024
d13b7b9
fix: attempt to filter out empty imports
widmogrod May 12, 2024
8aa7ec2
debug: print lines
widmogrod May 12, 2024
05c9b9e
debug: print lines
widmogrod May 12, 2024
e85c80b
debug: more debugging
widmogrod May 12, 2024
4aff6f2
fix: attempt to filter out empty imports
widmogrod May 12, 2024
55fa8f7
debug: more debugging
widmogrod May 12, 2024
979c3e8
ci.yml: go mod download
widmogrod May 12, 2024
2176e11
debug: more debugging
widmogrod May 12, 2024
3395c6d
debug: more debugging
widmogrod May 12, 2024
b488ee0
debug: more debugging
widmogrod May 12, 2024
b2959dc
debug: more debugging
widmogrod May 12, 2024
a19f97c
fix: moq problem and type-registry
widmogrod May 12, 2024
25322b4
x/shape: improve package lookup
widmogrod May 12, 2024
b88c951
x/shape: more debugging
widmogrod May 12, 2024
65f57e0
x/shape: more debugging
widmogrod May 12, 2024
8ebe078
x/shape: more debugging
widmogrod May 12, 2024
55b2496
x/shape: more debugging
widmogrod May 12, 2024
a1747f0
x/shape: more debugging
widmogrod May 12, 2024
73b719d
x/shape: reduce debugging
widmogrod May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
maintenance: go mod tidy
widmogrod committed May 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a58c46017d4491aa6245a637c9b6057d260515a7
8 changes: 4 additions & 4 deletions example/my-app/go.mod
Original file line number Diff line number Diff line change
@@ -38,12 +38,12 @@ require (
github.com/stretchr/testify v1.8.4 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -42,13 +42,12 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/matryer/moq v0.3.4 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/tools v0.17.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
14 changes: 4 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
@@ -106,8 +106,6 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo=
github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
github.com/matryer/moq v0.3.4 h1:czCFIos9rI2tyOehN9ktc/6bQ76N9J4xQ2n3dk063ac=
github.com/matryer/moq v0.3.4/go.mod h1:wqm9QObyoMuUtH81zFfs3EK6mXEcByy+TjvSROOXJ2U=
github.com/moby/sys/mount v0.3.3 h1:fX1SVkXFJ47XWDoeFW4Sq7PdQJnV2QIDZAqjNqgEjUs=
github.com/moby/sys/mount v0.3.3/go.mod h1:PBaEorSNTLG5t/+4EgukEQVlAvVEc6ZjTySwKdqp5K0=
github.com/moby/sys/mountinfo v0.6.2 h1:BzJjoreD5BMFNmD9Rus6gdd1pLuecOFPt8wC+Vygl78=
@@ -161,17 +159,15 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 h1:m64FZMko/V45gv0bNmrNYoDEq8U5YUhetc9cBWKS1TQ=
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63/go.mod h1:0v4NqG35kSWCMzLaMeX+IQrlSnVE/bqGSyC2cz/9Le8=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo=
golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -182,8 +178,8 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
@@ -196,8 +192,6 @@ golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc=
golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/genproto v0.0.0-20230331144136-dcfb400f0633 h1:0BOZf6qNozI3pkN3fJLwNubheHJYHhMh91GRFOWWK08=
google.golang.org/genproto v0.0.0-20230331144136-dcfb400f0633/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak=