server

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginStatusUnload pluginStatus = iota
	PluginStatusLoaded
	PluginStatusStartOK
	PluginStatusStartError
	PluginStatusPutOK
	PluginStatusPutError
)

Variables

View Source
var (
	OpDurationMtc = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "plugin_op_metrics",
		Help: "plugin op metrics.",
	}, []string{"plugin", "op"})
)

Functions

This section is empty.

Types

type Args

type Args struct {
	Path        string
	BlockHeight uint64
}

type Reply

type Reply struct {
	Message string
	Success bool
}

type RunnerStat added in v1.13.8

type RunnerStat struct {
	Name         string
	PluginType   iap.Type
	PluginStatus pluginStatus
	Error        error
}

type RunnerStats added in v1.13.8

type RunnerStats struct {
	Server  ServerStat
	Runners []RunnerStat
}

func GetRunnerStats added in v1.13.8

func GetRunnerStats() RunnerStats

type Server

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

func New

func New() *Server

func (*Server) Start

func (srv *Server) Start(ctx context.Context) error

Start start the server

func (*Server) Stop

func (srv *Server) Stop(ctx context.Context) error

type ServerStat added in v1.13.8

type ServerStat struct {
	DaoHeight uint64
	TipHeight uint64
}

type Service

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

func NewService

func NewService(dao kernel.BatchBlockDao) *Service

func (*Service) Info

func (s *Service) Info(args *Args, reply *Reply) error

func (*Service) Load

func (s *Service) Load(args *Args, reply *Reply) error

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop(ctx context.Context) error

func (*Service) TraceBlockByHeight

func (s *Service) TraceBlockByHeight(args *Args, reply *Reply) error

func (*Service) UnLoad

func (s *Service) UnLoad(args *Args, reply *Reply) error

Jump to

Keyboard shortcuts

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