v1

package
v0.0.0-...-094827e Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Observer_Watch_FullMethodName = "/observer.knita.io.Observer/Watch"
)

Variables

View Source
var File_observer_v1_observer_proto protoreflect.FileDescriptor
View Source
var Observer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "observer.knita.io.Observer",
	HandlerType: (*ObserverServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Watch",
			Handler:       _Observer_Watch_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "observer/v1/observer.proto",
}

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

Functions

func RegisterObserverServer

func RegisterObserverServer(s grpc.ServiceRegistrar, srv ObserverServer)

Types

type ObserverClient

type ObserverClient interface {
	Watch(ctx context.Context, opts ...grpc.CallOption) (Observer_WatchClient, error)
}

ObserverClient is the client API for Observer 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 NewObserverClient

func NewObserverClient(cc grpc.ClientConnInterface) ObserverClient

type ObserverServer

type ObserverServer interface {
	Watch(Observer_WatchServer) error
	// contains filtered or unexported methods
}

ObserverServer is the server API for Observer service. All implementations must embed UnimplementedObserverServer for forward compatibility

type Observer_WatchClient

type Observer_WatchClient interface {
	Send(*v1.Event) error
	CloseAndRecv() (*WatchResponse, error)
	grpc.ClientStream
}

type Observer_WatchServer

type Observer_WatchServer interface {
	SendAndClose(*WatchResponse) error
	Recv() (*v1.Event, error)
	grpc.ServerStream
}

type UnimplementedObserverServer

type UnimplementedObserverServer struct {
}

UnimplementedObserverServer must be embedded to have forward compatible implementations.

func (UnimplementedObserverServer) Watch

type UnsafeObserverServer

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

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

type WatchResponse

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

func (*WatchResponse) Descriptor deprecated

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

Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) ProtoReflect

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

func (*WatchResponse) Reset

func (x *WatchResponse) Reset()

func (*WatchResponse) String

func (x *WatchResponse) String() string

Jump to

Keyboard shortcuts

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