flipbookv1grpc

package
v1.6.0-20230220153218-... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventBus_Open_FullMethodName  = "/flipbook.v1.EventBus/Open"
	EventBus_Close_FullMethodName = "/flipbook.v1.EventBus/Close"
)
View Source
const (
	EventStore_Append_FullMethodName    = "/flipbook.v1.EventStore/Append"
	EventStore_Iterate_FullMethodName   = "/flipbook.v1.EventStore/Iterate"
	EventStore_GetLatest_FullMethodName = "/flipbook.v1.EventStore/GetLatest"
)
View Source
const (
	EventHandler_Handle_FullMethodName = "/flipbook.v1.EventHandler/Handle"
)

Variables

View Source
var EventBus_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipbook.v1.EventBus",
	HandlerType: (*EventBusServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Open",
			Handler:    _EventBus_Open_Handler,
		},
		{
			MethodName: "Close",
			Handler:    _EventBus_Close_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/eventbus.proto",
}

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

View Source
var EventHandler_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipbook.v1.EventHandler",
	HandlerType: (*EventHandlerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Handle",
			Handler:       _EventHandler_Handle_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/v1/eventhandler.proto",
}

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

View Source
var EventStore_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipbook.v1.EventStore",
	HandlerType: (*EventStoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Append",
			Handler:    _EventStore_Append_Handler,
		},
		{
			MethodName: "GetLatest",
			Handler:    _EventStore_GetLatest_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Iterate",
			Handler:       _EventStore_Iterate_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/v1/eventstore.proto",
}

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

Functions

func RegisterEventBusServer

func RegisterEventBusServer(s grpc.ServiceRegistrar, srv EventBusServer)

func RegisterEventHandlerServer

func RegisterEventHandlerServer(s grpc.ServiceRegistrar, srv EventHandlerServer)

func RegisterEventStoreServer

func RegisterEventStoreServer(s grpc.ServiceRegistrar, srv EventStoreServer)

Types

type EventBusClient

type EventBusClient interface {
	Open(ctx context.Context, in *v1.Subscription_OpenRequest, opts ...grpc.CallOption) (*v1.Subscription, error)
	Close(ctx context.Context, in *v1.Subscription_CloseRequest, opts ...grpc.CallOption) (*v1.Subscription, error)
}

EventBusClient is the client API for EventBus 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 NewEventBusClient

func NewEventBusClient(cc grpc.ClientConnInterface) EventBusClient

type EventBusServer

EventBusServer is the server API for EventBus service. All implementations should embed UnimplementedEventBusServer for forward compatibility.

type EventHandlerClient

type EventHandlerClient interface {
	Handle(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[v1.Event, v1.Commit], error)
}

EventHandlerClient is the client API for EventHandler 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 NewEventHandlerClient

func NewEventHandlerClient(cc grpc.ClientConnInterface) EventHandlerClient

type EventHandlerServer

type EventHandlerServer interface {
	Handle(grpc.BidiStreamingServer[v1.Event, v1.Commit]) error
}

EventHandlerServer is the server API for EventHandler service. All implementations should embed UnimplementedEventHandlerServer for forward compatibility.

type EventHandler_HandleClient

type EventHandler_HandleClient = grpc.BidiStreamingClient[v1.Event, v1.Commit]

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

type EventHandler_HandleServer

type EventHandler_HandleServer = grpc.BidiStreamingServer[v1.Event, v1.Commit]

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

type EventStoreClient

type EventStoreClient interface {
	Append(ctx context.Context, in *v1.Event_AppendRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Iterate(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[v1.Event_IterateRequest, v1.Event], error)
	GetLatest(ctx context.Context, in *v1.Event_GetLatestRequest, opts ...grpc.CallOption) (*v1.Event, error)
}

EventStoreClient is the client API for EventStore 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 NewEventStoreClient

func NewEventStoreClient(cc grpc.ClientConnInterface) EventStoreClient

type EventStoreServer

EventStoreServer is the server API for EventStore service. All implementations should embed UnimplementedEventStoreServer for forward compatibility.

type EventStore_IterateClient

type EventStore_IterateClient = grpc.BidiStreamingClient[v1.Event_IterateRequest, v1.Event]

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

type EventStore_IterateServer

type EventStore_IterateServer = grpc.BidiStreamingServer[v1.Event_IterateRequest, v1.Event]

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

type UnimplementedEventBusServer

type UnimplementedEventBusServer struct{}

UnimplementedEventBusServer should 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 (UnimplementedEventBusServer) Close

func (UnimplementedEventBusServer) Open

type UnimplementedEventHandlerServer

type UnimplementedEventHandlerServer struct{}

UnimplementedEventHandlerServer should 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 (UnimplementedEventHandlerServer) Handle

type UnimplementedEventStoreServer

type UnimplementedEventStoreServer struct{}

UnimplementedEventStoreServer should 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 (UnimplementedEventStoreServer) Append

func (UnimplementedEventStoreServer) GetLatest

func (UnimplementedEventStoreServer) Iterate

type UnsafeEventBusServer

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

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

type UnsafeEventHandlerServer

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

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

type UnsafeEventStoreServer

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

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

Source Files

  • eventbus_grpc.pb.go
  • eventhandler_grpc.pb.go
  • eventstore_grpc.pb.go

Jump to

Keyboard shortcuts

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