Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendMetricHandler ¶
SendMetricHandler is a handler that is called when a Server gets a SendMetrics RPC
type Server ¶
Server is a gRPC server similar to httptest.Server
func NewServer ¶
func NewServer(handler SendMetricHandler) *Server
NewServer creates an unstarted Server with the specified handler
func (*Server) SendMetrics ¶
func (s *Server) SendMetrics(ctx context.Context, mlist *forwardrpc.MetricList) (*empty.Empty, error)
SendMetrics calls the input SendMetricsHandler whenever it receives an RPC
Click to show internal directories.
Click to hide internal directories.