5
0
Fork 0
Single Badger store to serve bite, transcription and any others.
 
 
Go to file
UnicodingUnicorn fa145f7948 Initial commit 2019-02-13 22:45:23 +08:00
.gitignore Initial commit 2019-02-13 22:45:23 +08:00
README.md Initial commit 2019-02-13 22:45:23 +08:00
bite.pb.go Initial commit 2019-02-13 22:45:23 +08:00
client.pb.go Initial commit 2019-02-13 22:45:23 +08:00
data_request.pb.go Initial commit 2019-02-13 22:45:23 +08:00
key.go Initial commit 2019-02-13 22:45:23 +08:00
main.go Initial commit 2019-02-13 22:45:23 +08:00
response.pb.go Initial commit 2019-02-13 22:45:23 +08:00
scan_request.pb.go Initial commit 2019-02-13 22:45:23 +08:00
store.pb.go Initial commit 2019-02-13 22:45:23 +08:00

README.md

backend-store

Single Badger store to serve bite, transcription and any others. Is kinda bite-centric, so required values revolve around a Bite. Transacts through NATS.

Key format

Takes in three variables: type, key and start. Type is the type of data to be inserted, e.g. bite, bite_user or transcription. Key could be some secret passphrase declaring you the Raj of British India for all I know. Start is the Epoch timestamp of the start of the Bite.

NATS

Refer to protobuf definitions in backend-protobuf.

Name What you do Accepted Protobuf Protobuf redundant fields Response Protobuf Response empty fields
new_store Publish to Store - - -
request_store Request DataRequest - Response client
scan_store Request ScanRequest - Response client