v3

package
v0.0.0-...-bad6ed4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Protocol_name = map[int32]string{
		0: "HTTP",
		1: "gRPC",
	}
	Protocol_value = map[string]int32{
		"HTTP": 0,
		"gRPC": 1,
	}
)

Enum value maps for Protocol.

View Source
var File_service_mesh_probe_service_mesh_compat_proto protoreflect.FileDescriptor
View Source
var File_service_mesh_probe_service_mesh_proto protoreflect.FileDescriptor
View Source
var ServiceMeshMetricService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ServiceMeshMetricService",
	HandlerType: (*ServiceMeshMetricServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "collect",
			Handler:       _ServiceMeshMetricService_Collect_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "service-mesh-probe/service-mesh-compat.proto",
}

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

View Source
var ServiceMeshMetricService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "skywalking.v3.ServiceMeshMetricService",
	HandlerType: (*ServiceMeshMetricServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "collect",
			Handler:       _ServiceMeshMetricService_Collect_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "service-mesh-probe/service-mesh.proto",
}

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

Functions

func RegisterServiceMeshMetricServiceServer

func RegisterServiceMeshMetricServiceServer(s grpc.ServiceRegistrar, srv ServiceMeshMetricServiceServer)

Types

type MeshProbeDownstream

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

func (*MeshProbeDownstream) Descriptor deprecated

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

Deprecated: Use MeshProbeDownstream.ProtoReflect.Descriptor instead.

func (*MeshProbeDownstream) ProtoMessage

func (*MeshProbeDownstream) ProtoMessage()

func (*MeshProbeDownstream) ProtoReflect

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

func (*MeshProbeDownstream) Reset

func (x *MeshProbeDownstream) Reset()

func (*MeshProbeDownstream) String

func (x *MeshProbeDownstream) String() string

type Protocol

type Protocol int32
const (
	Protocol_HTTP Protocol = 0
	Protocol_gRPC Protocol = 1
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

type ServiceMeshMetric

type ServiceMeshMetric struct {

	// Start timestamp in milliseconds of this RPC,
	// measured between the current time and midnight, January 1, 1970 UTC.
	StartTime int64 `protobuf:"varint,1,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// End timestamp in milliseconds of this RPC,
	// measured between the current time and midnight, January 1, 1970 UTC.
	EndTime               int64  `protobuf:"varint,2,opt,name=endTime,proto3" json:"endTime,omitempty"`
	SourceServiceName     string `protobuf:"bytes,3,opt,name=sourceServiceName,proto3" json:"sourceServiceName,omitempty"`
	SourceServiceInstance string `protobuf:"bytes,4,opt,name=sourceServiceInstance,proto3" json:"sourceServiceInstance,omitempty"`
	DestServiceName       string `protobuf:"bytes,5,opt,name=destServiceName,proto3" json:"destServiceName,omitempty"`
	DestServiceInstance   string `protobuf:"bytes,6,opt,name=destServiceInstance,proto3" json:"destServiceInstance,omitempty"`
	Endpoint              string `protobuf:"bytes,7,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Latency               int32  `protobuf:"varint,8,opt,name=latency,proto3" json:"latency,omitempty"`
	ResponseCode          int32  `protobuf:"varint,9,opt,name=responseCode,proto3" json:"responseCode,omitempty"`
	// Status represents the response status of this calling.
	Status      bool           `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`
	Protocol    Protocol       `protobuf:"varint,11,opt,name=protocol,proto3,enum=skywalking.v3.Protocol" json:"protocol,omitempty"`
	DetectPoint v3.DetectPoint `protobuf:"varint,12,opt,name=detectPoint,proto3,enum=skywalking.v3.DetectPoint" json:"detectPoint,omitempty"`
	// NONE, mTLS, or TLS
	TlsMode string `protobuf:"bytes,13,opt,name=tlsMode,proto3" json:"tlsMode,omitempty"`
	// The sidecar/proxy internal error code, the value bases on the implementation.
	// The envoy internal error codes are listed here, https://www.envoyproxy.io/docs/envoy/latest/api-v2/data/accesslog/v2/accesslog.proto#data-accesslog-v2-responseflags
	InternalErrorCode string `protobuf:"bytes,14,opt,name=internalErrorCode,proto3" json:"internalErrorCode,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceMeshMetric) Descriptor deprecated

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

Deprecated: Use ServiceMeshMetric.ProtoReflect.Descriptor instead.

func (*ServiceMeshMetric) GetDestServiceInstance

func (x *ServiceMeshMetric) GetDestServiceInstance() string

func (*ServiceMeshMetric) GetDestServiceName

func (x *ServiceMeshMetric) GetDestServiceName() string

func (*ServiceMeshMetric) GetDetectPoint

func (x *ServiceMeshMetric) GetDetectPoint() v3.DetectPoint

func (*ServiceMeshMetric) GetEndTime

func (x *ServiceMeshMetric) GetEndTime() int64

func (*ServiceMeshMetric) GetEndpoint

func (x *ServiceMeshMetric) GetEndpoint() string

func (*ServiceMeshMetric) GetInternalErrorCode

func (x *ServiceMeshMetric) GetInternalErrorCode() string

func (*ServiceMeshMetric) GetLatency

func (x *ServiceMeshMetric) GetLatency() int32

func (*ServiceMeshMetric) GetProtocol

func (x *ServiceMeshMetric) GetProtocol() Protocol

func (*ServiceMeshMetric) GetResponseCode

func (x *ServiceMeshMetric) GetResponseCode() int32

func (*ServiceMeshMetric) GetSourceServiceInstance

func (x *ServiceMeshMetric) GetSourceServiceInstance() string

func (*ServiceMeshMetric) GetSourceServiceName

func (x *ServiceMeshMetric) GetSourceServiceName() string

func (*ServiceMeshMetric) GetStartTime

func (x *ServiceMeshMetric) GetStartTime() int64

func (*ServiceMeshMetric) GetStatus

func (x *ServiceMeshMetric) GetStatus() bool

func (*ServiceMeshMetric) GetTlsMode

func (x *ServiceMeshMetric) GetTlsMode() string

func (*ServiceMeshMetric) ProtoMessage

func (*ServiceMeshMetric) ProtoMessage()

func (*ServiceMeshMetric) ProtoReflect

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

func (*ServiceMeshMetric) Reset

func (x *ServiceMeshMetric) Reset()

func (*ServiceMeshMetric) String

func (x *ServiceMeshMetric) String() string

type ServiceMeshMetricServiceClient

type ServiceMeshMetricServiceClient interface {
	Collect(ctx context.Context, opts ...grpc.CallOption) (ServiceMeshMetricService_CollectClient, error)
}

ServiceMeshMetricServiceClient is the client API for ServiceMeshMetricService 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 ServiceMeshMetricServiceServer

type ServiceMeshMetricServiceServer interface {
	Collect(ServiceMeshMetricService_CollectServer) error
	// contains filtered or unexported methods
}

ServiceMeshMetricServiceServer is the server API for ServiceMeshMetricService service. All implementations must embed UnimplementedServiceMeshMetricServiceServer for forward compatibility

type ServiceMeshMetricService_CollectClient

type ServiceMeshMetricService_CollectClient interface {
	Send(*ServiceMeshMetric) error
	CloseAndRecv() (*MeshProbeDownstream, error)
	grpc.ClientStream
}

type ServiceMeshMetricService_CollectServer

type ServiceMeshMetricService_CollectServer interface {
	SendAndClose(*MeshProbeDownstream) error
	Recv() (*ServiceMeshMetric, error)
	grpc.ServerStream
}

type UnimplementedServiceMeshMetricServiceServer

type UnimplementedServiceMeshMetricServiceServer struct {
}

UnimplementedServiceMeshMetricServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceMeshMetricServiceServer) Collect

type UnsafeServiceMeshMetricServiceServer

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

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

Jump to

Keyboard shortcuts

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