broadcast_server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Port             int
	BroadcastHandler func(context.Context, []byte) error

	broadcast_pb.UnimplementedBroadcastServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port int, broadcastHandler func(context.Context, []byte) error) *Server

func (*Server) BroadcastTx

func (*Server) Run

func (s *Server) Run() error

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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