Documentation ¶
Index ¶
- Variables
- func RegisterLoggingServiceServer(s grpc.ServiceRegistrar, srv LoggingServiceServer)
- type LoggingServiceClient
- type LoggingServiceServer
- type UnimplementedLoggingServiceServer
- type UnsafeLoggingServiceServer
- type WriteLogRequest
- func (*WriteLogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteLogRequest) GetLogEntries() []*WriteLogRequest_LogEntry
- func (*WriteLogRequest) ProtoMessage()
- func (x *WriteLogRequest) ProtoReflect() protoreflect.Message
- func (x *WriteLogRequest) Reset()
- func (x *WriteLogRequest) String() string
- type WriteLogRequest_LogEntry
- func (*WriteLogRequest_LogEntry) Descriptor() ([]byte, []int)deprecated
- func (x *WriteLogRequest_LogEntry) GetDestinationAddress() string
- func (x *WriteLogRequest_LogEntry) GetDestinationNamespace() string
- func (x *WriteLogRequest_LogEntry) GetDestinationWorkload() string
- func (x *WriteLogRequest_LogEntry) GetHost() string
- func (x *WriteLogRequest_LogEntry) GetLatency() *duration.Duration
- func (x *WriteLogRequest_LogEntry) GetPath() string
- func (x *WriteLogRequest_LogEntry) GetReferer() string
- func (x *WriteLogRequest_LogEntry) GetRequestId() string
- func (x *WriteLogRequest_LogEntry) GetResponseCode() uint32
- func (x *WriteLogRequest_LogEntry) GetSourceAddress() string
- func (x *WriteLogRequest_LogEntry) GetTimestamp() *timestamp.Timestamp
- func (x *WriteLogRequest_LogEntry) GetUserAgent() string
- func (*WriteLogRequest_LogEntry) ProtoMessage()
- func (x *WriteLogRequest_LogEntry) ProtoReflect() protoreflect.Message
- func (x *WriteLogRequest_LogEntry) Reset()
- func (x *WriteLogRequest_LogEntry) String() string
- type WriteLogResponse
Constants ¶
This section is empty.
Variables ¶
var File_extensions_grpc_logging_log_proto protoreflect.FileDescriptor
var LoggingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "istio_ecosystem.wasm_extensions.grpc_logging.LoggingService", HandlerType: (*LoggingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "WriteLog", Handler: _LoggingService_WriteLog_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "extensions/grpc_logging/log.proto", }
LoggingService_ServiceDesc is the grpc.ServiceDesc for LoggingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLoggingServiceServer ¶
func RegisterLoggingServiceServer(s grpc.ServiceRegistrar, srv LoggingServiceServer)
Types ¶
type LoggingServiceClient ¶
type LoggingServiceClient interface {
WriteLog(ctx context.Context, in *WriteLogRequest, opts ...grpc.CallOption) (*WriteLogResponse, error)
}
LoggingServiceClient is the client API for LoggingService 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 NewLoggingServiceClient ¶
func NewLoggingServiceClient(cc grpc.ClientConnInterface) LoggingServiceClient
type LoggingServiceServer ¶
type LoggingServiceServer interface { WriteLog(context.Context, *WriteLogRequest) (*WriteLogResponse, error) // contains filtered or unexported methods }
LoggingServiceServer is the server API for LoggingService service. All implementations must embed UnimplementedLoggingServiceServer for forward compatibility
type UnimplementedLoggingServiceServer ¶
type UnimplementedLoggingServiceServer struct { }
UnimplementedLoggingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLoggingServiceServer) WriteLog ¶
func (UnimplementedLoggingServiceServer) WriteLog(context.Context, *WriteLogRequest) (*WriteLogResponse, error)
type UnsafeLoggingServiceServer ¶
type UnsafeLoggingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLoggingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoggingServiceServer will result in compilation errors.
type WriteLogRequest ¶
type WriteLogRequest struct { LogEntries []*WriteLogRequest_LogEntry `protobuf:"bytes,1,rep,name=log_entries,json=logEntries,proto3" json:"log_entries,omitempty"` // contains filtered or unexported fields }
func (*WriteLogRequest) Descriptor
deprecated
func (*WriteLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteLogRequest.ProtoReflect.Descriptor instead.
func (*WriteLogRequest) GetLogEntries ¶
func (x *WriteLogRequest) GetLogEntries() []*WriteLogRequest_LogEntry
func (*WriteLogRequest) ProtoMessage ¶
func (*WriteLogRequest) ProtoMessage()
func (*WriteLogRequest) ProtoReflect ¶
func (x *WriteLogRequest) ProtoReflect() protoreflect.Message
func (*WriteLogRequest) Reset ¶
func (x *WriteLogRequest) Reset()
func (*WriteLogRequest) String ¶
func (x *WriteLogRequest) String() string
type WriteLogRequest_LogEntry ¶
type WriteLogRequest_LogEntry struct { SourceAddress string `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"` DestinationWorkload string `protobuf:"bytes,3,opt,name=destination_workload,json=destinationWorkload,proto3" json:"destination_workload,omitempty"` DestinationNamespace string `protobuf:"bytes,4,opt,name=destination_namespace,json=destinationNamespace,proto3" json:"destination_namespace,omitempty"` Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` Referer string `protobuf:"bytes,8,opt,name=referer,proto3" json:"referer,omitempty"` RequestId string `protobuf:"bytes,9,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ResponseCode uint32 `protobuf:"varint,12,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Latency *duration.Duration `protobuf:"bytes,11,opt,name=latency,proto3" json:"latency,omitempty"` // contains filtered or unexported fields }
func (*WriteLogRequest_LogEntry) Descriptor
deprecated
func (*WriteLogRequest_LogEntry) Descriptor() ([]byte, []int)
Deprecated: Use WriteLogRequest_LogEntry.ProtoReflect.Descriptor instead.
func (*WriteLogRequest_LogEntry) GetDestinationAddress ¶
func (x *WriteLogRequest_LogEntry) GetDestinationAddress() string
func (*WriteLogRequest_LogEntry) GetDestinationNamespace ¶
func (x *WriteLogRequest_LogEntry) GetDestinationNamespace() string
func (*WriteLogRequest_LogEntry) GetDestinationWorkload ¶
func (x *WriteLogRequest_LogEntry) GetDestinationWorkload() string
func (*WriteLogRequest_LogEntry) GetHost ¶
func (x *WriteLogRequest_LogEntry) GetHost() string
func (*WriteLogRequest_LogEntry) GetLatency ¶
func (x *WriteLogRequest_LogEntry) GetLatency() *duration.Duration
func (*WriteLogRequest_LogEntry) GetPath ¶
func (x *WriteLogRequest_LogEntry) GetPath() string
func (*WriteLogRequest_LogEntry) GetReferer ¶
func (x *WriteLogRequest_LogEntry) GetReferer() string
func (*WriteLogRequest_LogEntry) GetRequestId ¶
func (x *WriteLogRequest_LogEntry) GetRequestId() string
func (*WriteLogRequest_LogEntry) GetResponseCode ¶
func (x *WriteLogRequest_LogEntry) GetResponseCode() uint32
func (*WriteLogRequest_LogEntry) GetSourceAddress ¶
func (x *WriteLogRequest_LogEntry) GetSourceAddress() string
func (*WriteLogRequest_LogEntry) GetTimestamp ¶
func (x *WriteLogRequest_LogEntry) GetTimestamp() *timestamp.Timestamp
func (*WriteLogRequest_LogEntry) GetUserAgent ¶
func (x *WriteLogRequest_LogEntry) GetUserAgent() string
func (*WriteLogRequest_LogEntry) ProtoMessage ¶
func (*WriteLogRequest_LogEntry) ProtoMessage()
func (*WriteLogRequest_LogEntry) ProtoReflect ¶
func (x *WriteLogRequest_LogEntry) ProtoReflect() protoreflect.Message
func (*WriteLogRequest_LogEntry) Reset ¶
func (x *WriteLogRequest_LogEntry) Reset()
func (*WriteLogRequest_LogEntry) String ¶
func (x *WriteLogRequest_LogEntry) String() string
type WriteLogResponse ¶
type WriteLogResponse struct {
// contains filtered or unexported fields
}
func (*WriteLogResponse) Descriptor
deprecated
func (*WriteLogResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteLogResponse.ProtoReflect.Descriptor instead.
func (*WriteLogResponse) ProtoMessage ¶
func (*WriteLogResponse) ProtoMessage()
func (*WriteLogResponse) ProtoReflect ¶
func (x *WriteLogResponse) ProtoReflect() protoreflect.Message
func (*WriteLogResponse) Reset ¶
func (x *WriteLogResponse) Reset()
func (*WriteLogResponse) String ¶
func (x *WriteLogResponse) String() string