node

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost = "0.0.0.0"
	DefaultPort = "80"
)

default host and port for the API server

Variables

This section is empty.

Functions

func CheckParams

func CheckParams(ctx context.Context, redisClient rueidis.Client, networkParamsCaller *vsl.NetworkParamsCaller, settlementCaller *vsl.SettlementCaller) error

CheckParams checks the network parameters and settlement tasks

Types

type Core

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

Core is logically formed by an API server and a list of components

func NewCoreService

func NewCoreService(ctx context.Context, config *config.File, databaseClient database.Client, redisClient rueidis.Client, networkParamsCaller *vsl.NetworkParamsCaller, settlementCaller *vsl.SettlementCaller) *Core

NewCoreService initializes the core services required by the Core

func (*Core) Run

func (s *Core) Run(_ context.Context) error

Jump to

Keyboard shortcuts

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