grpcsvc

package
v0.0.0-...-69b9976 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TempRegisterKey = "registermeplz!"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer struct {
	controllerv1.UnimplementedControllerServiceServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(controller *controller.Controller) *GRPCServer

func (*GRPCServer) GetInitialPeerList

func (s *GRPCServer) GetInitialPeerList(connectingPeerID uint32) ([]*controllerv1.Peer, error)

func (*GRPCServer) LoginPeer

func (*GRPCServer) Punch

func (*GRPCServer) RegisterPeer

func (*GRPCServer) SetPeerEndpoint

func (s *GRPCServer) SetPeerEndpoint(
	ctx context.Context,
	endpoint *controllerv1.Endpoint,
) (*controllerv1.Empty, error)

TODO Authentication/encryption for messages

func (*GRPCServer) Update

Jump to

Keyboard shortcuts

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