api

package
v0.0.0-...-34cbc82 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HealthPath              = "/healthz"
	DepositsV1Path          = "/api/v1/deposits"
	WithdrawalsV1Path       = "/api/v1/withdrawals"
	SubmitWithdrawalsV1Path = "/api/v1/submit/withdrawals"
)

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.ServerConfig
	MetricsServer config.ServerConfig
}

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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