__

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PGService_StreamUpdates_FullMethodName = "/PGService/StreamUpdates"
)

Variables

View Source
var File_proto_pg_proto protoreflect.FileDescriptor
View Source
var PGService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "PGService",
	HandlerType: (*PGServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamUpdates",
			Handler:       _PGService_StreamUpdates_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "proto/pg.proto",
}

PGService_ServiceDesc is the grpc.ServiceDesc for PGService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPGServiceServer

func RegisterPGServiceServer(s grpc.ServiceRegistrar, srv PGServiceServer)

Types

type PGServiceClient

type PGServiceClient interface {
	StreamUpdates(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PGUpdate, PGUpdate], error)
}

PGServiceClient is the client API for PGService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

A simple symetric service that can be implemented by either the service or app or both. This service streams updates bidirectionally between both sides.

func NewPGServiceClient

func NewPGServiceClient(cc grpc.ClientConnInterface) PGServiceClient

type PGServiceServer

type PGServiceServer interface {
	StreamUpdates(grpc.BidiStreamingServer[PGUpdate, PGUpdate]) error
	// contains filtered or unexported methods
}

PGServiceServer is the server API for PGService service. All implementations must embed UnimplementedPGServiceServer for forward compatibility.

A simple symetric service that can be implemented by either the service or app or both. This service streams updates bidirectionally between both sides.

type PGService_StreamUpdatesClient

type PGService_StreamUpdatesClient = grpc.BidiStreamingClient[PGUpdate, PGUpdate]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type PGService_StreamUpdatesServer

type PGService_StreamUpdatesServer = grpc.BidiStreamingServer[PGUpdate, PGUpdate]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type PGUpdate

type PGUpdate struct {

	// CBOR encoded structure representing the update.
	Cbor []byte `protobuf:"bytes,1,opt,name=cbor,proto3" json:"cbor,omitempty"`
	// contains filtered or unexported fields
}

func (*PGUpdate) Descriptor deprecated

func (*PGUpdate) Descriptor() ([]byte, []int)

Deprecated: Use PGUpdate.ProtoReflect.Descriptor instead.

func (*PGUpdate) GetCbor

func (x *PGUpdate) GetCbor() []byte

func (*PGUpdate) ProtoMessage

func (*PGUpdate) ProtoMessage()

func (*PGUpdate) ProtoReflect

func (x *PGUpdate) ProtoReflect() protoreflect.Message

func (*PGUpdate) Reset

func (x *PGUpdate) Reset()

func (*PGUpdate) String

func (x *PGUpdate) String() string

type UnimplementedPGServiceServer

type UnimplementedPGServiceServer struct{}

UnimplementedPGServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPGServiceServer) StreamUpdates

type UnsafePGServiceServer

type UnsafePGServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePGServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PGServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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