coregrpc

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartGRPCClient

func StartGRPCClient(protoAddr string) grpc.BroadcastAPIClient

StartGRPCClient dials the gRPC server using protoAddr and returns a new BroadcastAPIClient.

func StartGRPCServer

func StartGRPCServer(ln net.Listener) error

StartGRPCServer starts a new gRPC BroadcastAPIServer using the given net.Listener. NOTE: This function blocks - you may want to call it in a go-routine.

Types

type Config

type Config struct {
	MaxOpenConnections int
}

Config is an gRPC server configuration.

Jump to

Keyboard shortcuts

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