api

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 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) CountBeaconState

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

func (*API) ListBeaconState

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

func (*API) Start

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

func (*API) Stop

func (e *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