server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplicationServer

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

func NewReplicationServer

func NewReplicationServer(
	ctx context.Context,
	log *zap.Logger,
	options config.ServerOptions,
	nodeRegistry registry.NodeRegistry,
	writerDB *sql.DB,
	blockchainPublisher blockchain.IBlockchainPublisher,
	listenAddress string,
) (*ReplicationServer, error)

func (*ReplicationServer) Addr

func (s *ReplicationServer) Addr() net.Addr

func (*ReplicationServer) Shutdown

func (s *ReplicationServer) Shutdown()

func (*ReplicationServer) WaitForShutdown

func (s *ReplicationServer) WaitForShutdown()

Jump to

Keyboard shortcuts

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