Documentation ¶
Index ¶
- type Server
- func (s *Server) GetAllMetrics(ctx context.Context, _ *pb.GetAllMetricsRequest) (*pb.GetAllMetricsResponse, error)
- func (s *Server) GetMetric(ctx context.Context, request *pb.GetMetricRequest) (*pb.GetMetricResponse, error)
- func (s *Server) Ping(_ context.Context, _ *pb.PingRequest) (*pb.PingResponse, error)
- func (s *Server) SaveMetric(ctx context.Context, request *pb.SaveMetricRequest) (*pb.SaveMetricResponse, error)
- func (s *Server) SaveMetricList(ctx context.Context, request *pb.SaveMetricListRequest) (*pb.SaveMetricListResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pb.UnimplementedMetricsServer GetMetricService *services.GetMetricService SaveMetricService *services.SaveMetricService PingService *services.PingService }
func (*Server) GetAllMetrics ¶
func (s *Server) GetAllMetrics(ctx context.Context, _ *pb.GetAllMetricsRequest) (*pb.GetAllMetricsResponse, error)
func (*Server) GetMetric ¶
func (s *Server) GetMetric(ctx context.Context, request *pb.GetMetricRequest) (*pb.GetMetricResponse, error)
func (*Server) Ping ¶
func (s *Server) Ping(_ context.Context, _ *pb.PingRequest) (*pb.PingResponse, error)
func (*Server) SaveMetric ¶
func (s *Server) SaveMetric(ctx context.Context, request *pb.SaveMetricRequest) (*pb.SaveMetricResponse, error)
func (*Server) SaveMetricList ¶
func (s *Server) SaveMetricList(ctx context.Context, request *pb.SaveMetricListRequest) (*pb.SaveMetricListResponse, error)
Click to show internal directories.
Click to hide internal directories.