server

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginStatusUnload pluginStatus = iota
	PluginStatusLoaded
	PluginStatusRunning
)

Variables

This section is empty.

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 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 Service

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

func NewService

func NewService(dao blockdao.BlockDAO) *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