service

package
v0.0.0-...-e865ecf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HealthPath           = "/healthz"
	DepositsV1Path       = "/api/v1/deposits"
	WithdrawalsV1Path    = "/api/v1/withdrawals"
	StakingRecordsV1Path = "/api/v1/staking-records"
	BridgeRecordsV1Path  = "/api/v1/bridge-records"
	StakingValidV1Path   = "/api/v1/staking-valid"
	BridgeValidV1Path    = "/api/v1/bridge-valid"
)

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(ctx context.Context, cfg *config.Config) (*API, error)

func (*API) Start

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

func (*API) Stop

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

func (*API) Stopped

func (a *API) Stopped() bool

type APIConfig

type APIConfig struct {
	HTTPServer    config.Server
	MetricsServer config.Server
}

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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