application

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

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)
}

type RpcCache

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

func NewRpcCache

func NewRpcCache(ttl int64) *RpcCache

func (*RpcCache) Get

func (rc *RpcCache) Get(key string) (*types.JsonRpcResponse, bool)

func (*RpcCache) Set

func (rc *RpcCache) Set(key string, data *types.JsonRpcResponse)

Jump to

Keyboard shortcuts

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