metricsregistrar

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Code generated by gen-metrics-registrar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ObservabilityExporter observability.Config

	Port string `env:"PORT, default=8080"`
}

func (*Config) ObservabilityExporterConfig

func (c *Config) ObservabilityExporterConfig() *observability.Config

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the server.

func NewServer

func NewServer(ctx context.Context, cfg *Config, env *serverenv.ServerEnv) (*Server, error)

NewServer makes a new server and registers the upstream metrics.

func (*Server) Routes

func (s *Server) Routes(ctx context.Context) *mux.Router

Routes returns the router for this server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL