operations

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(template string, args ...interface{})
	Warn(args ...interface{})
	Warnf(template string, args ...interface{})
}

type MetricsOptions

type MetricsOptions struct {
	Provider string
	Statsd   *Statsd
	TLS      bool
}

type Options

type Options struct {
	TLS     TLS
	Metrics MetricsOptions
	Version string
	Logger  Logger
}

type Server

type Server interface {
	RegisterHandler(s string, handler http.Handler, secure bool)
}

type Statsd

type Statsd struct {
	Network       string
	Address       string
	WriteInterval time.Duration
	Prefix        string
}

type System

type System struct {
	metrics.Provider

	Server Server
	// contains filtered or unexported fields
}

func NewSystem

func NewSystem(server Server, o Options) *System

func (*System) Log

func (s *System) Log(keyvals ...interface{}) error

func (*System) RegisterChecker

func (s *System) RegisterChecker(component string, checker healthz.HealthChecker) error

func (*System) Start

func (s *System) Start() error

func (*System) Stop

func (s *System) Stop() error

type TLS

type TLS struct {
	Enabled bool
}

type VersionInfoHandler

type VersionInfoHandler struct {
	CommitSHA string `json:"CommitSHA,omitempty"`
	Version   string `json:"Version,omitempty"`
}

func (*VersionInfoHandler) ServeHTTP

func (m *VersionInfoHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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