rest_server

package
v0.0.0-...-2c9fc41 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListener

type EventListener interface {
	IncStateRootUpdateRequests()
	IncOperatorSetUpdateRequests()
	IncCheckpointMessagesRequests()
	APIErrors()
}

func MakeServerMetrics

func MakeServerMetrics(registry *prometheus.Registry) (EventListener, error)

type RestServer

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

func NewRestServer

func NewRestServer(serverIpPortAddr string, app aggregator.RestAggregatorer, logger logging.Logger) *RestServer

func (*RestServer) EnableMetrics

func (s *RestServer) EnableMetrics(registry *prometheus.Registry) error

func (*RestServer) Start

func (s *RestServer) Start() error

type SelectiveListener

type SelectiveListener struct {
	IncStateRootUpdateRequestsCb    func()
	IncOperatorSetUpdateRequestsCb  func()
	IncCheckpointMessagesRequestsCb func()
	APIErrorsCb                     func()
}

func (*SelectiveListener) APIErrors

func (l *SelectiveListener) APIErrors()

func (*SelectiveListener) IncCheckpointMessagesRequests

func (l *SelectiveListener) IncCheckpointMessagesRequests()

func (*SelectiveListener) IncOperatorSetUpdateRequests

func (l *SelectiveListener) IncOperatorSetUpdateRequests()

func (*SelectiveListener) IncStateRootUpdateRequests

func (l *SelectiveListener) IncStateRootUpdateRequests()

Jump to

Keyboard shortcuts

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