rest

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Overview

Package rest provides a REST implementation of the probe daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithAggregateAttestationsSetter added in v0.3.1

func WithAggregateAttestationsSetter(setter probedb.AggregateAttestationsSetter) Parameter

WithAggregateAttestationsSetter sets the aggregate attestations setter for this module.

func WithAttestationSummariesSetter added in v0.3.1

func WithAttestationSummariesSetter(setter probedb.AttestationSummariesSetter) Parameter

WithAttestationSummariesSetter sets the attestation summaries setter for this module.

func WithBlockDelaysSetter

func WithBlockDelaysSetter(setter probedb.BlockDelaysSetter) Parameter

WithBlockDelaysSetter sets the block delays setter for this module.

func WithHeadDelaysSetter

func WithHeadDelaysSetter(setter probedb.HeadDelaysSetter) Parameter

WithHeadDelaysSetter sets the head delays setter for this module.

func WithListenAddress

func WithListenAddress(listenAddress string) Parameter

WithListenAddress sets the listen address for this module.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.Service) Parameter

WithMonitor sets the monitor for the module.

func WithServerName

func WithServerName(name string) Parameter

WithServerName sets the server name for this module.

type Service

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

Service is the REST daemon service.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new JSON-RPC daemon service.

Directories

Path Synopsis
Package types provides types used in the REST API.
Package types provides types used in the REST API.

Jump to

Keyboard shortcuts

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