grpclient

package
v0.0.0-...-e10b86a Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallGrpcServer

func CallGrpcServer(hostport string)

func CallGrpcServerv2

func CallGrpcServerv2(hostport string)

Types

type MessageQueue

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

Queue to hold incoming messages

func (*MessageQueue) Dequeue

func (q *MessageQueue) Dequeue() *pb.ServerMessage

Dequeue removes and returns the oldest message from the queue

func (*MessageQueue) Enqueue

func (q *MessageQueue) Enqueue(msg *pb.ServerMessage)

Enqueue adds a message to the queue

Jump to

Keyboard shortcuts

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