Skip to content

Commit

Permalink
Skeleton of bentobox micro service
Browse files Browse the repository at this point in the history
  • Loading branch information
Herman Junge committed Jun 12, 2018
1 parent a742a96 commit be60d0b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ block-header-syncer:
./build/modify-geth
go build -v -o ./build/bin/block-header-syncer ./services/block-header-syncer/*.go

bentobox:
go build -v -o ./build/bin/bentobox ./services/bentobox/*.go

clean:
rm -rf build/bin/*
1 change: 0 additions & 1 deletion libp2p/libp2p.go

This file was deleted.

12 changes: 12 additions & 0 deletions services/bentobox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## BentoBox

Microservice. Polls a *parity* JSON/RPC endpoint. On new block header,
it will extract certain specified data.

### Quick Start

make bentobox && ./build/bin/bentobox

### Usage

* (TODO)
14 changes: 14 additions & 0 deletions services/bentobox/flags.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package main

// Config has all the options you defined at the command line.
type Config struct {
Debug bool
}

// ParseFlags gets those command line options
// and set them into a nice Config struct.
func ParseFlags() *Config {
cfg := &Config{}

return cfg
}
6 changes: 6 additions & 0 deletions services/bentobox/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package main

func main() {
// get the flags
cfg := ParseFlags()
}

0 comments on commit be60d0b

Please sign in to comment.