Documentation ¶
Overview ¶
Package server is used to start a new ABCI server.
It contains two server implementation:
- gRPC server
- socket server
Index ¶
- func NewGRPCServer(protoAddr string, app types.Application) service.Service
- func NewServer(protoAddr, transport string, app types.Application) (service.Service, error)
- func NewSocketServer(protoAddr string, app types.Application) service.Service
- type ErrConnectionDoesNotExist
- type ErrUnknownRequest
- type ErrUnknownServerType
- type GRPCServer
- type SocketServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(protoAddr string, app types.Application) service.Service
NewGRPCServer returns a new gRPC ABCI server.
func NewServer ¶
NewServer is a utility function for out of process applications to set up either a socket or grpc server that can listen to requests from the equivalent Tendermint client.
func NewSocketServer ¶
func NewSocketServer(protoAddr string, app types.Application) service.Service
NewSocketServer creates a server from a golang-based out-of-process application.
Types ¶
type ErrConnectionDoesNotExist ¶
type ErrConnectionDoesNotExist struct {
ConnID int
}
ErrConnectionDoesNotExist is returned when trying to access non-existent network connection.
func (ErrConnectionDoesNotExist) Error ¶
func (e ErrConnectionDoesNotExist) Error() string
type ErrUnknownRequest ¶
func (ErrUnknownRequest) Error ¶
func (e ErrUnknownRequest) Error() string
type ErrUnknownServerType ¶
type ErrUnknownServerType struct {
ServerType string
}
ErrUnknownServerType is returned when trying to create a server with invalid transport option.
func (ErrUnknownServerType) Error ¶
func (e ErrUnknownServerType) Error() string
type GRPCServer ¶
type GRPCServer struct { service.BaseService // contains filtered or unexported fields }
type SocketServer ¶
type SocketServer struct { service.BaseService // contains filtered or unexported fields }
SocketServer is the server-side implementation of the TSP (Tendermint Socket Protocol) for out-of-process go applications. Note, in the case of an application written in golang, the developer may also run both Tendermint and the application within the same process.
The socket server deliver.
func (*SocketServer) OnStart ¶
func (s *SocketServer) OnStart() error
func (*SocketServer) OnStop ¶
func (s *SocketServer) OnStop()
func (*SocketServer) SetLogger ¶
func (s *SocketServer) SetLogger(l cmtlog.Logger)