Documentation ¶
Index ¶
- Variables
- func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
- type Matcher
- func (*Matcher) Descriptor() ([]byte, []int)deprecated
- func (x *Matcher) GetIndex() int64
- func (x *Matcher) GetMatchPath() string
- func (x *Matcher) GetMatchValue() string
- func (*Matcher) ProtoMessage()
- func (x *Matcher) ProtoReflect() protoreflect.Message
- func (x *Matcher) Reset()
- func (x *Matcher) String() string
- type UnimplementedWatchServiceServer
- type UnsafeWatchServiceServer
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetMatchers() []*Matcher
- func (x *WatchRequest) GetMaxDepth() int64
- func (x *WatchRequest) GetMaxLength() int64
- func (x *WatchRequest) GetMethod() string
- func (x *WatchRequest) GetSdid() string
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchResponse) GetMethodName() string
- func (x *WatchResponse) GetParams() []string
- func (x *WatchResponse) GetReturnValues() []string
- func (x *WatchResponse) GetSdid() string
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (x *WatchResponse) String() string
- type WatchServiceClient
- type WatchServiceServer
- type WatchService_WatchClient
- type WatchService_WatchServer
Constants ¶
This section is empty.
Variables ¶
var File_extension_aop_watch_api_ioc_golang_aop_watch_watch_proto protoreflect.FileDescriptor
var WatchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ioc_golang.aop.watch.WatchService", HandlerType: (*WatchServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _WatchService_Watch_Handler, ServerStreams: true, }, }, Metadata: "extension/aop/watch/api/ioc_golang/aop/watch/watch.proto", }
WatchService_ServiceDesc is the grpc.ServiceDesc for WatchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWatchServiceServer ¶
func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
Types ¶
type Matcher ¶
type Matcher struct { Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` MatchPath string `protobuf:"bytes,2,opt,name=matchPath,proto3" json:"matchPath,omitempty"` MatchValue string `protobuf:"bytes,3,opt,name=matchValue,proto3" json:"matchValue,omitempty"` // contains filtered or unexported fields }
func (*Matcher) Descriptor
deprecated
func (*Matcher) GetMatchPath ¶
func (*Matcher) GetMatchValue ¶
func (*Matcher) ProtoMessage ¶
func (*Matcher) ProtoMessage()
func (*Matcher) ProtoReflect ¶
func (x *Matcher) ProtoReflect() protoreflect.Message
type UnimplementedWatchServiceServer ¶
type UnimplementedWatchServiceServer struct { }
UnimplementedWatchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWatchServiceServer) Watch ¶
func (UnimplementedWatchServiceServer) Watch(*WatchRequest, WatchService_WatchServer) error
type UnsafeWatchServiceServer ¶
type UnsafeWatchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWatchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WatchServiceServer will result in compilation errors.
type WatchRequest ¶
type WatchRequest struct { Sdid string `protobuf:"bytes,1,opt,name=sdid,proto3" json:"sdid,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` MaxDepth int64 `protobuf:"varint,3,opt,name=maxDepth,proto3" json:"maxDepth,omitempty"` MaxLength int64 `protobuf:"varint,4,opt,name=maxLength,proto3" json:"maxLength,omitempty"` Matchers []*Matcher `protobuf:"bytes,5,rep,name=matchers,proto3" json:"matchers,omitempty"` // contains filtered or unexported fields }
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetMatchers ¶
func (x *WatchRequest) GetMatchers() []*Matcher
func (*WatchRequest) GetMaxDepth ¶
func (x *WatchRequest) GetMaxDepth() int64
func (*WatchRequest) GetMaxLength ¶
func (x *WatchRequest) GetMaxLength() int64
func (*WatchRequest) GetMethod ¶
func (x *WatchRequest) GetMethod() string
func (*WatchRequest) GetSdid ¶
func (x *WatchRequest) GetSdid() string
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
type WatchResponse ¶
type WatchResponse struct { Sdid string `protobuf:"bytes,1,opt,name=sdid,proto3" json:"sdid,omitempty"` MethodName string `protobuf:"bytes,2,opt,name=methodName,proto3" json:"methodName,omitempty"` Params []string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` ReturnValues []string `protobuf:"bytes,4,rep,name=returnValues,proto3" json:"returnValues,omitempty"` // contains filtered or unexported fields }
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetMethodName ¶
func (x *WatchResponse) GetMethodName() string
func (*WatchResponse) GetParams ¶
func (x *WatchResponse) GetParams() []string
func (*WatchResponse) GetReturnValues ¶
func (x *WatchResponse) GetReturnValues() []string
func (*WatchResponse) GetSdid ¶
func (x *WatchResponse) GetSdid() string
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
type WatchServiceClient ¶
type WatchServiceClient interface {
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (WatchService_WatchClient, error)
}
WatchServiceClient is the client API for WatchService 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 NewWatchServiceClient ¶
func NewWatchServiceClient(cc grpc.ClientConnInterface) WatchServiceClient
type WatchServiceServer ¶
type WatchServiceServer interface { Watch(*WatchRequest, WatchService_WatchServer) error // contains filtered or unexported methods }
WatchServiceServer is the server API for WatchService service. All implementations must embed UnimplementedWatchServiceServer for forward compatibility
type WatchService_WatchClient ¶
type WatchService_WatchClient interface { Recv() (*WatchResponse, error) grpc.ClientStream }
type WatchService_WatchServer ¶
type WatchService_WatchServer interface { Send(*WatchResponse) error grpc.ServerStream }