server

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package server is used to start a new ABCI server.

It contains two server implementation:

  • gRPC server
  • socket server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(protoAddr string) service.Service

NewGRPCServer returns a new gRPC ABCI server (disabled)

func NewServer

func NewServer(protoAddr, transport string, app cmtabci.Application) (service.Service, error)

func NewSocketServer

func NewSocketServer(protoAddr string, app cmtabci.Application) service.Service

Types

type ABCIAdapter

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

ABCIAdapter converts a local ABCI application to a CometBFT ABCI application

func NewABCIAdapter

func NewABCIAdapter(app types.Application) *ABCIAdapter

NewABCIAdapter creates a new adapter that wraps a local ABCI application

func (*ABCIAdapter) ApplySnapshotChunk

ApplySnapshotChunk implements cmtabci.Application

func (*ABCIAdapter) CheckTx

CheckTx implements cmtabci.Application

func (*ABCIAdapter) Commit

Commit implements cmtabci.Application

func (*ABCIAdapter) Echo

Echo implements cmtabci.Application

func (*ABCIAdapter) ExtendVote

ExtendVote implements cmtabci.Application

func (*ABCIAdapter) FinalizeBlock

FinalizeBlock implements cmtabci.Application

func (*ABCIAdapter) Flush

Flush implements cmtabci.Application

func (*ABCIAdapter) Info

Info implements cmtabci.Application

func (*ABCIAdapter) InitChain

InitChain implements cmtabci.Application

func (*ABCIAdapter) ListSnapshots

ListSnapshots implements cmtabci.Application

func (*ABCIAdapter) LoadSnapshotChunk

LoadSnapshotChunk implements cmtabci.Application

func (*ABCIAdapter) OfferSnapshot

OfferSnapshot implements cmtabci.Application

func (*ABCIAdapter) PrepareProposal

PrepareProposal implements cmtabci.Application

func (*ABCIAdapter) ProcessProposal

ProcessProposal implements cmtabci.Application

func (*ABCIAdapter) Query

Query implements cmtabci.Application

func (*ABCIAdapter) VerifyVoteExtension

VerifyVoteExtension implements cmtabci.Application

type GRPCServer

type GRPCServer struct {
	service.BaseService
	// contains filtered or unexported fields
}

func (*GRPCServer) OnStart

func (s *GRPCServer) OnStart() error

OnStart starts the gRPC service.

func (*GRPCServer) OnStop

func (s *GRPCServer) OnStop()

OnStop stops the gRPC server.

type SocketServer

type SocketServer struct {
	service.BaseService
	// contains filtered or unexported fields
}

func (*SocketServer) OnStart

func (s *SocketServer) OnStart() error

func (*SocketServer) OnStop

func (s *SocketServer) OnStop()

func (*SocketServer) SetLogger

func (s *SocketServer) SetLogger(l tmlog.Logger)

Jump to

Keyboard shortcuts

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