ghostnotifier

package
v1.7.75 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GhostNotifierApi_ListNotifications_FullMethodName = "/api.v1alpha1.ghostnotifier.GhostNotifierApi/ListNotifications"
)

Variables

View Source
var File_api_v1alpha1_ghostnotifier_service_proto protoreflect.FileDescriptor
View Source
var GhostNotifierApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1alpha1.ghostnotifier.GhostNotifierApi",
	HandlerType: (*GhostNotifierApiServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListNotifications",
			Handler:       _GhostNotifierApi_ListNotifications_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/v1alpha1/ghostnotifier/service.proto",
}

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

Functions

func RegisterGhostNotifierApiServer

func RegisterGhostNotifierApiServer(s grpc.ServiceRegistrar, srv GhostNotifierApiServer)

Types

type GhostNotifierApiClient

type GhostNotifierApiClient interface {
	// Opens a server side stream that will forward and ghost notifications to the client for the given user
	ListNotifications(ctx context.Context, in *ListNotificationsReq, opts ...grpc.CallOption) (GhostNotifierApi_ListNotificationsClient, error)
}

GhostNotifierApiClient is the client API for GhostNotifierApi 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.

type GhostNotifierApiServer

type GhostNotifierApiServer interface {
	// Opens a server side stream that will forward and ghost notifications to the client for the given user
	ListNotifications(*ListNotificationsReq, GhostNotifierApi_ListNotificationsServer) error
	// contains filtered or unexported methods
}

GhostNotifierApiServer is the server API for GhostNotifierApi service. All implementations must embed UnimplementedGhostNotifierApiServer for forward compatibility

type GhostNotifierApi_ListNotificationsClient

type GhostNotifierApi_ListNotificationsClient interface {
	Recv() (*commons.GhostNotification, error)
	grpc.ClientStream
}

type GhostNotifierApi_ListNotificationsServer

type GhostNotifierApi_ListNotificationsServer interface {
	Send(*commons.GhostNotification) error
	grpc.ServerStream
}

type ListNotificationsReq

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

func (*ListNotificationsReq) Descriptor deprecated

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

Deprecated: Use ListNotificationsReq.ProtoReflect.Descriptor instead.

func (*ListNotificationsReq) ProtoMessage

func (*ListNotificationsReq) ProtoMessage()

func (*ListNotificationsReq) ProtoReflect

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

func (*ListNotificationsReq) Reset

func (x *ListNotificationsReq) Reset()

func (*ListNotificationsReq) String

func (x *ListNotificationsReq) String() string

type UnimplementedGhostNotifierApiServer

type UnimplementedGhostNotifierApiServer struct {
}

UnimplementedGhostNotifierApiServer must be embedded to have forward compatible implementations.

type UnsafeGhostNotifierApiServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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