Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterGhostNotifierApiServer(s grpc.ServiceRegistrar, srv GhostNotifierApiServer)
- type GhostNotifierApiClient
- type GhostNotifierApiServer
- type GhostNotifierApi_ListNotificationsClient
- type GhostNotifierApi_ListNotificationsServer
- type ListNotificationsReq
- type UnimplementedGhostNotifierApiServer
- type UnsafeGhostNotifierApiServer
Constants ¶
const (
GhostNotifierApi_ListNotifications_FullMethodName = "/api.v1alpha1.ghostnotifier.GhostNotifierApi/ListNotifications"
)
Variables ¶
var File_api_v1alpha1_ghostnotifier_service_proto protoreflect.FileDescriptor
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.
func NewGhostNotifierApiClient ¶
func NewGhostNotifierApiClient(cc grpc.ClientConnInterface) GhostNotifierApiClient
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.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGhostNotifierApiServer) ListNotifications ¶
func (UnimplementedGhostNotifierApiServer) ListNotifications(*ListNotificationsReq, GhostNotifierApi_ListNotificationsServer) error
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.