Documentation ¶
Index ¶
- Variables
- func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer)
- type LogRequest
- func (*LogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogRequest) GetAutowireType() string
- func (x *LogRequest) GetInvocation() bool
- func (x *LogRequest) GetLevel() int64
- func (x *LogRequest) GetMachers() []*Matcher
- func (x *LogRequest) GetMethodName() string
- func (x *LogRequest) GetSdid() string
- func (*LogRequest) ProtoMessage()
- func (x *LogRequest) ProtoReflect() protoreflect.Message
- func (x *LogRequest) Reset()
- func (x *LogRequest) String() string
- type LogResponse
- type LogServiceClient
- type LogServiceServer
- type LogService_LogClient
- type LogService_LogServer
- 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 UnimplementedLogServiceServer
- type UnsafeLogServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_extension_aop_log_api_ioc_golang_aop_log_log_proto protoreflect.FileDescriptor
var LogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ioc_golang.aop.log.LogService", HandlerType: (*LogServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Log", Handler: _LogService_Log_Handler, ServerStreams: true, }, }, Metadata: "extension/aop/log/api/ioc_golang/aop/log/log.proto", }
LogService_ServiceDesc is the grpc.ServiceDesc for LogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogServiceServer ¶
func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer)
Types ¶
type LogRequest ¶
type LogRequest struct { AutowireType string `protobuf:"bytes,1,opt,name=autowireType,proto3" json:"autowireType,omitempty"` Sdid string `protobuf:"bytes,2,opt,name=sdid,proto3" json:"sdid,omitempty"` MethodName string `protobuf:"bytes,3,opt,name=methodName,proto3" json:"methodName,omitempty"` Machers []*Matcher `protobuf:"bytes,4,rep,name=machers,proto3" json:"machers,omitempty"` Invocation bool `protobuf:"varint,5,opt,name=invocation,proto3" json:"invocation,omitempty"` Level int64 `protobuf:"varint,6,opt,name=level,proto3" json:"level,omitempty"` // contains filtered or unexported fields }
func (*LogRequest) Descriptor
deprecated
func (*LogRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogRequest.ProtoReflect.Descriptor instead.
func (*LogRequest) GetAutowireType ¶
func (x *LogRequest) GetAutowireType() string
func (*LogRequest) GetInvocation ¶
func (x *LogRequest) GetInvocation() bool
func (*LogRequest) GetLevel ¶
func (x *LogRequest) GetLevel() int64
func (*LogRequest) GetMachers ¶
func (x *LogRequest) GetMachers() []*Matcher
func (*LogRequest) GetMethodName ¶
func (x *LogRequest) GetMethodName() string
func (*LogRequest) GetSdid ¶
func (x *LogRequest) GetSdid() string
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) ProtoReflect ¶
func (x *LogRequest) ProtoReflect() protoreflect.Message
func (*LogRequest) Reset ¶
func (x *LogRequest) Reset()
func (*LogRequest) String ¶
func (x *LogRequest) String() string
type LogResponse ¶
type LogResponse struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*LogResponse) Descriptor
deprecated
func (*LogResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogResponse.ProtoReflect.Descriptor instead.
func (*LogResponse) GetContent ¶
func (x *LogResponse) GetContent() string
func (*LogResponse) ProtoMessage ¶
func (*LogResponse) ProtoMessage()
func (*LogResponse) ProtoReflect ¶
func (x *LogResponse) ProtoReflect() protoreflect.Message
func (*LogResponse) Reset ¶
func (x *LogResponse) Reset()
func (*LogResponse) String ¶
func (x *LogResponse) String() string
type LogServiceClient ¶
type LogServiceClient interface {
Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (LogService_LogClient, error)
}
LogServiceClient is the client API for LogService 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 NewLogServiceClient ¶
func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient
type LogServiceServer ¶
type LogServiceServer interface { Log(*LogRequest, LogService_LogServer) error // contains filtered or unexported methods }
LogServiceServer is the server API for LogService service. All implementations must embed UnimplementedLogServiceServer for forward compatibility
type LogService_LogClient ¶
type LogService_LogClient interface { Recv() (*LogResponse, error) grpc.ClientStream }
type LogService_LogServer ¶
type LogService_LogServer interface { Send(*LogResponse) error grpc.ServerStream }
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 UnimplementedLogServiceServer ¶
type UnimplementedLogServiceServer struct { }
UnimplementedLogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLogServiceServer) Log ¶
func (UnimplementedLogServiceServer) Log(*LogRequest, LogService_LogServer) error
type UnsafeLogServiceServer ¶
type UnsafeLogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogServiceServer will result in compilation errors.