9bdee7b106
* WIP possible discovery service impl * Adds discovery service to CaptPlanet * Updates the config and server for discovery service * updates testplanet to use discovery package * update satellite imports * Removes unnecessary cache test * linter fixes * adds discovery startup to captplanet * invoke refresh * updates to discovery refresh cycle * Make implementation more consistent with previous implementation * add wait before trying to upload * sleep a bit more * remove kademlia bootstrap * updates * remove comments
24 lines
421 B
Go
24 lines
421 B
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package discovery
|
|
|
|
import (
|
|
"go.uber.org/zap"
|
|
"gopkg.in/spacemonkeygo/monkit.v2"
|
|
)
|
|
|
|
// Server struct that loads on logging and metrics
|
|
type Server struct {
|
|
log *zap.Logger
|
|
metrics *monkit.Registry
|
|
}
|
|
|
|
// NewServer returns a server
|
|
func NewServer(l *zap.Logger) *Server {
|
|
return &Server{
|
|
log: l,
|
|
metrics: monkit.Default,
|
|
}
|
|
}
|