Commit Graph

18 Commits (master)

Author SHA1 Message Date
Slyghtning 0babeee084
make: cache docker builds 1 month ago
sputn1ck 20db07dccf
fsm: add fsm module
This commit adds a module for a finite state machine. The goal of the
module is to provide a simple, easy to use, and easy to understand
finite state machine. The module is designed to be used in future
loop subsystems. Additionally a state visualizer is provided to
help with understanding the state machine.
8 months ago
sputn1ck 9d7f3bf2fa
build: add postgres unit tests to makefile and CI 10 months ago
sputn1ck 5c07c20d16
tools: add sqlc generation tools 10 months ago
sputn1ck 4ed3197985
make+tools: tidy makefile, add gosimports 2 years ago
sputn1ck f0bf9302cc
make: dockerize linter 2 years ago
carla dad103530f
multi: move server proto files to their own directory
Protobuf does not allow naming conflicts for files within the same
process, because all proto messages register themselves in a global
registry.

This is problematic because the server's itests import the client's
looprpc package to make rpc queries to the loopd client, thus importing
duplicate common.proto and server.proto from the client's looprc package
(since they're both in there as well).

This change moves the server's proto files into their own directory so
that they are not imported when we want to use the client's files. We
cannot change the package name for the server, because that would be
a breaking change (the package name is included in URIS). Fortunately,
we have the go_package option which allows us to place generated files
in a different location.
2 years ago
Andras Banki-Horvath 9e227fc1ee
build: adding clean 2 years ago
Oliver Gugger 360e3347be
Travis+make: compile JSON/WASM stubs 3 years ago
Oliver Gugger 86df44362f
make+looprpc: use Docker to compile and format protos 3 years ago
Oliver Gugger 385fed89b5
make: fix commit ldflag 4 years ago
Oliver Gugger c6b3e21801
make: add rpc command 4 years ago
carla 87b02b7715
multi: add force tick endpoint behind debug server
To itest our autolooper, we need to be able to trigger dispatch on
demand. This functionality is included in a separate rpc server behind
a dev flag. Since it is unlikely that we need to split loop into
multiple rpc servers, this commit simply adds an additional debug server
rather than opting for a full subserver setup.
4 years ago
carla d5d64fb97a
makefile+travis: add mod check and tidy and check modules in travis 4 years ago
Joost Jager 2ddbe23418
build: mark build as default target 4 years ago
carla 41550a9c4b
makefile+travis: add install and build commands
Build executables are suffixed with 'debug' because we cannot
create a loopd executable in the root repo dir, since there is an
already existing loopd executable. Add build to travis.
4 years ago
Oliver Gugger 1cdb233a00
add lint command to Makefile 5 years ago
Joost Jager a83824bbb5
build: add travis config 5 years ago