appmetrics

package
v0.179.11 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(db *appmetrics.Database) *API

func (*API) GetAppMetrics

func (api *API) GetAppMetrics(ctx context.Context, limit int, offset int) (appmetrics.Page, error)

func (*API) SaveAppMetrics

func (api *API) SaveAppMetrics(ctx context.Context, appMetrics []appmetrics.AppMetric) error

func (*API) ValidateAppMetrics

func (api *API) ValidateAppMetrics(ctx context.Context, appMetrics []appmetrics.AppMetric) error

type Service

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

func NewService

func NewService(db *appmetrics.Database) *Service

func (*Service) APIs

func (s *Service) APIs() []rpc.API

func (*Service) Protocols

func (s *Service) Protocols() []p2p.Protocol

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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