Documentation ¶
Index ¶
Constants ¶
View Source
const (
HealthResponse = `{"health":"true"}`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // ClientTLS is tls config for peer communication ClientTLS *tls.Config // EnableEtcdProxy is the flag if etcd proxy should start EnableEtcdProxy bool }
Config is the configuration of server
type Server ¶
type Server interface { // RegisterClient registers grpc service for clients RegisterClient(server *grpc.Server) // RegisterPeer registers grpc service for peer RegisterPeer(server *grpc.Server) // GetClientHttpHandlers returns http handlers for client GetClientHttpHandlers() map[string]http.Handler // GetPeerHttpHandlers returns http handlers for peer GetPeerHttpHandlers() map[string]http.Handler // GetInfoHttpHandlers returns http handlers for node info GetInfoHttpHandlers() map[string]http.Handler }
Server is the application layer server providing services for clients and peers
Click to show internal directories.
Click to hide internal directories.