initial middleware refactor

This commit is contained in:
Jimmy Zelinskie
2016-01-25 00:41:39 -05:00
parent 5c27c960f0
commit bd33c0c66b
30 changed files with 2291 additions and 27 deletions

39
config/example.yaml Normal file
View File

@@ -0,0 +1,39 @@
# Copyright 2016 The Chihaya Authors. All rights reserved.
# Use of this source code is governed by the BSD 2-Clause license,
# which can be found in the LICENSE file.
chihaya:
tracker:
announce: "10m"
minAnnounce: "5m"
announceMiddleware:
- "prometheus"
- "storeClientValidation"
- "storeCreateOnAnnounce"
scrapeMiddleware:
- "prometheus"
- "storeClientValidation"
servers:
- name: "store"
config:
addr: "localhost:6880"
requestTimeout: "10s"
readTimeout: "10s"
writeTimeout: "10s"
clientStore: "memory"
peerStore: "memory"
peerStoreConfig:
gcAfter: "30m"
shards: 1
- name: "http"
config:
addr: "localhost:6881"
requestTimeout: "10s"
readTimeout: "10s"
writeTimeout: "10s"
- name: "udp"
config:
addr: "localhost:6882"