service

package
v0.0.0-...-4fefc29 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyStopped = errors.New("already stopped")

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(dataStoreClient storage.DataStoreReader, beaconClient client.BeaconBlockHeadersProvider, metrics m.Metricer, logger log.Logger) *API

type APIService

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

func NewService

func NewService(l log.Logger, api *API, cfg flags.APIConfig, registry *prometheus.Registry) *APIService

func (*APIService) Start

func (a *APIService) Start(ctx context.Context) error

func (*APIService) Stop

func (a *APIService) Stop(ctx context.Context) error

func (*APIService) Stopped

func (a *APIService) Stopped() bool

Jump to

Keyboard shortcuts

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