api

package
v0.0.0-...-5ed304f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx *Context, port int) *http.Server

func ValidateAddress

func ValidateAddress(chain, address string) bool

Types

type Context

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

func NewContext

func NewContext(
	logger *log.Logger,
	metricsClient *metrics.Client,
	pooldbClient, tsdbClient *dbcl.Client,
	redisClient *redis.Client,
	nodes []types.MiningNode,
	cacheEnabled bool,
) *Context

Jump to

Keyboard shortcuts

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