eventv1grpc

package
v1.3.0-20240404104327-... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EventService_GetEvents_FullMethodName = "/testrepo.event.v1.EventService/GetEvents"
	EventService_GetEvent_FullMethodName  = "/testrepo.event.v1.EventService/GetEvent"
)

Variables

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testrepo.event.v1.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetEvent",
			Handler:    _EventService_GetEvent_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetEvents",
			Handler:       _EventService_GetEvents_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "testrepo/event/v1/event_service.proto",
}

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

Functions

func RegisterEventServiceServer

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

Types

type EventServiceClient

type EventServiceClient interface {
	GetEvents(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption) (EventService_GetEventsClient, error)
	GetEvent(ctx context.Context, in *v1.GetEventRequest, opts ...grpc.CallOption) (*v1.GetEventResponse, error)
}

EventServiceClient is the client API for EventService 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 NewEventServiceClient

func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient

type EventServiceServer

type EventServiceServer interface {
	GetEvents(*v1.GetEventsRequest, EventService_GetEventsServer) error
	GetEvent(context.Context, *v1.GetEventRequest) (*v1.GetEventResponse, error)
}

EventServiceServer is the server API for EventService service. All implementations should embed UnimplementedEventServiceServer for forward compatibility

type EventService_GetEventsClient

type EventService_GetEventsClient interface {
	Recv() (*v1.GetEventsResponse, error)
	grpc.ClientStream
}

type EventService_GetEventsServer

type EventService_GetEventsServer interface {
	Send(*v1.GetEventsResponse) error
	grpc.ServerStream
}

type UnimplementedEventServiceServer

type UnimplementedEventServiceServer struct {
}

UnimplementedEventServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEventServiceServer) GetEvent

func (UnimplementedEventServiceServer) GetEvents

type UnsafeEventServiceServer

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

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

Jump to

Keyboard shortcuts

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