op-batcher op-proposer op-service: Introduce op-service (#3202)
* op-batcher op-proposer op-service: Introduce op-service
op-service is a utilities library that automates much of the boilerplate setup we've been duplicating across different daemons. This PR adds the following to op-batcher:
- Common setup utilities for logging, metrics, pprof, and RPC.
- For each of the above functions, a set of CLI flags and configs that can be used to parse + validate CLI configuration for that module.
- A base RPC server that implementers can extend.
- HTTP metrics utilities.
* update dockerfiles
* code review updates
* op-service: temporary replace, until op-service go module is canonical and can be resolved
Co-authored-by:
protolambda <proto@protolambda.com>
Showing
This diff is collapsed.
This diff is collapsed.
op-service/Makefile
0 → 100644
op-service/go.mod
0 → 100644
op-service/go.sum
0 → 100644
This diff is collapsed.
op-service/log/cli.go
0 → 100644
op-service/log/defaults.go
0 → 100644
op-service/log/http.go
0 → 100644
op-service/metrics/cli.go
0 → 100644
op-service/metrics/http.go
0 → 100644
op-service/metrics/server.go
0 → 100644
op-service/pprof/cli.go
0 → 100644
op-service/pprof/server.go
0 → 100644
op-service/rpc/cli.go
0 → 100644
op-service/rpc/server.go
0 → 100644
op-service/util.go
0 → 100644
Please register or sign in to comment