application

package
v0.0.0-...-d1bef67 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package application contains the logic to start the builder info service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderInfo

type BuilderInfo struct {
	Name          string   `json:"name"`
	RPC           string   `json:"rpc"`
	SupportedApis []string `json:"supported-apis"`
}

type BuilderInfoService

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

func StartBuilderInfoService

func StartBuilderInfoService(ctx context.Context, fetcher Fetcher, fetchInterval time.Duration) (*BuilderInfoService, error)

func (*BuilderInfoService) BuilderNames

func (bis *BuilderInfoService) BuilderNames() []string

func (*BuilderInfoService) Builders

func (bis *BuilderInfoService) Builders() []BuilderInfo

type Fetcher

type Fetcher interface {
	Fetch(ctx context.Context) ([]byte, error)
}

Jump to

Keyboard shortcuts

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