server

package
v0.0.0-...-1abf0d1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 13 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(logger log.Logger, protoAddr string, app types.Application) service.Service

NewGRPCServer returns a new gRPC ABCI server

func NewServer

func NewServer(logger log.Logger, protoAddr, transport string, app types.Application) (service.Service, error)

func NewSocketServer

func NewSocketServer(logger log.Logger, protoAddr string, app types.Application) service.Service

Types

type GRPCServer

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

func (*GRPCServer) OnStart

func (s *GRPCServer) OnStart(ctx context.Context) 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(ctx context.Context) error

func (*SocketServer) OnStop

func (s *SocketServer) OnStop()

Jump to

Keyboard shortcuts

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