api

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceType = "tracoor.api"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	api.APIServer
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(ctx context.Context, log logrus.FieldLogger, conf *Config, st store.Store, grpcConn string, grpcOpts []grpc.DialOption) (*API, error)

func (*API) CountBeaconBadBlob added in v0.0.16

func (i *API) CountBeaconBadBlob(ctx context.Context, req *api.CountBeaconBadBlobRequest) (*api.CountBeaconBadBlobResponse, error)

func (*API) CountBeaconBadBlock added in v0.0.16

func (i *API) CountBeaconBadBlock(ctx context.Context, req *api.CountBeaconBadBlockRequest) (*api.CountBeaconBadBlockResponse, error)

func (*API) CountBeaconBlock added in v0.0.16

func (i *API) CountBeaconBlock(ctx context.Context, req *api.CountBeaconBlockRequest) (*api.CountBeaconBlockResponse, error)

func (*API) CountBeaconState

func (i *API) CountBeaconState(ctx context.Context, req *api.CountBeaconStateRequest) (*api.CountBeaconStateResponse, error)

func (*API) ListBeaconBadBlob added in v0.0.16

func (i *API) ListBeaconBadBlob(ctx context.Context, req *api.ListBeaconBadBlobRequest) (*api.ListBeaconBadBlobResponse, error)

func (*API) ListBeaconBadBlock added in v0.0.16

func (i *API) ListBeaconBadBlock(ctx context.Context, req *api.ListBeaconBadBlockRequest) (*api.ListBeaconBadBlockResponse, error)

func (*API) ListBeaconBlock added in v0.0.16

func (i *API) ListBeaconBlock(ctx context.Context, req *api.ListBeaconBlockRequest) (*api.ListBeaconBlockResponse, error)

func (*API) ListBeaconState

func (i *API) ListBeaconState(ctx context.Context, req *api.ListBeaconStateRequest) (*api.ListBeaconStateResponse, error)

func (*API) ListUniqueBeaconBadBlobValues added in v0.0.16

func (*API) ListUniqueBeaconBadBlockValues added in v0.0.16

func (*API) ListUniqueBeaconBlockValues added in v0.0.16

func (*API) Start

func (i *API) Start(ctx context.Context, grpcServer *grpc.Server) error

func (*API) Stop

func (i *API) Stop(ctx context.Context) error

type Config

type Config struct {
}

func (*Config) Validate

func (c *Config) Validate() error

type Metrics

type Metrics struct {
}

func NewMetrics

func NewMetrics(namespace string) *Metrics

Jump to

Keyboard shortcuts

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