watch

package
v0.0.0-...-278a4e6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_extension_aop_watch_api_ioc_golang_aop_watch_watch_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Matcher.ProtoReflect.Descriptor instead.

func (*Matcher) GetIndex

func (x *Matcher) GetIndex() int64

func (*Matcher) GetMatchPath

func (x *Matcher) GetMatchPath() string

func (*Matcher) GetMatchValue

func (x *Matcher) GetMatchValue() string

func (*Matcher) ProtoMessage

func (*Matcher) ProtoMessage()

func (*Matcher) ProtoReflect

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

func (*Matcher) Reset

func (x *Matcher) Reset()

func (*Matcher) String

func (x *Matcher) String() string

type UnimplementedWatchServiceServer

type UnimplementedWatchServiceServer struct {
}

UnimplementedWatchServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWatchServiceServer) Watch

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.

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
}

Jump to

Keyboard shortcuts

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