model

package
v0.0.0-...-d51f163 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	P9XService_QueryP9X_FullMethodName = "/kindling.P9XService/QueryP9x"
)
View Source
const (
	TraceIdService_SendTraceIds_FullMethodName = "/kindling.TraceIdService/SendTraceIds"
)

Variables

View Source
var File_kindling_traceid_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_kindling_p9x_proto protoreflect.FileDescriptor
View Source
var P9XService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kindling.P9XService",
	HandlerType: (*P9XServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "QueryP9x",
			Handler:    _P9XService_QueryP9X_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/model/kindling_p9x.proto",
}

P9XService_ServiceDesc is the grpc.ServiceDesc for P9XService 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 TraceIdService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kindling.TraceIdService",
	HandlerType: (*TraceIdServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendTraceIds",
			Handler:    _TraceIdService_SendTraceIds_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kindling_traceid.proto",
}

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

Functions

func RegisterP9XServiceServer

func RegisterP9XServiceServer(s grpc.ServiceRegistrar, srv P9XServiceServer)

func RegisterTraceIdServiceServer

func RegisterTraceIdServiceServer(s grpc.ServiceRegistrar, srv TraceIdServiceServer)

Types

type P9XData

type P9XData struct {
	Url         string  `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	ContainerId string  `protobuf:"bytes,2,opt,name=containerId,proto3" json:"containerId,omitempty"`
	Value       float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*P9XData) Descriptor deprecated

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

Deprecated: Use P9XData.ProtoReflect.Descriptor instead.

func (*P9XData) GetContainerId

func (x *P9XData) GetContainerId() string

func (*P9XData) GetUrl

func (x *P9XData) GetUrl() string

func (*P9XData) GetValue

func (x *P9XData) GetValue() float64

func (*P9XData) ProtoMessage

func (*P9XData) ProtoMessage()

func (*P9XData) ProtoReflect

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

func (*P9XData) Reset

func (x *P9XData) Reset()

func (*P9XData) String

func (x *P9XData) String() string

type P9XRequest

type P9XRequest struct {
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*P9XRequest) Descriptor deprecated

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

Deprecated: Use P9XRequest.ProtoReflect.Descriptor instead.

func (*P9XRequest) GetIp

func (x *P9XRequest) GetIp() string

func (*P9XRequest) ProtoMessage

func (*P9XRequest) ProtoMessage()

func (*P9XRequest) ProtoReflect

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

func (*P9XRequest) Reset

func (x *P9XRequest) Reset()

func (*P9XRequest) String

func (x *P9XRequest) String() string

type P9XResponse

type P9XResponse struct {
	Datas []*P9XData `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
	// contains filtered or unexported fields
}

func (*P9XResponse) Descriptor deprecated

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

Deprecated: Use P9XResponse.ProtoReflect.Descriptor instead.

func (*P9XResponse) GetDatas

func (x *P9XResponse) GetDatas() []*P9XData

func (*P9XResponse) ProtoMessage

func (*P9XResponse) ProtoMessage()

func (*P9XResponse) ProtoReflect

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

func (*P9XResponse) Reset

func (x *P9XResponse) Reset()

func (*P9XResponse) String

func (x *P9XResponse) String() string

type P9XServiceClient

type P9XServiceClient interface {
	QueryP9X(ctx context.Context, in *P9XRequest, opts ...grpc.CallOption) (*P9XResponse, error)
}

P9XServiceClient is the client API for P9XService 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 NewP9XServiceClient

func NewP9XServiceClient(cc grpc.ClientConnInterface) P9XServiceClient

type P9XServiceServer

type P9XServiceServer interface {
	QueryP9X(context.Context, *P9XRequest) (*P9XResponse, error)
	// contains filtered or unexported methods
}

P9XServiceServer is the server API for P9XService service. All implementations must embed UnimplementedP9XServiceServer for forward compatibility

type TraceIdServiceClient

type TraceIdServiceClient interface {
	SendTraceIds(ctx context.Context, in *TraceIds, opts ...grpc.CallOption) (*TraceIds, error)
}

TraceIdServiceClient is the client API for TraceIdService 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 TraceIdServiceServer

type TraceIdServiceServer interface {
	SendTraceIds(context.Context, *TraceIds) (*TraceIds, error)
	// contains filtered or unexported methods
}

TraceIdServiceServer is the server API for TraceIdService service. All implementations must embed UnimplementedTraceIdServiceServer for forward compatibility

type TraceIds

type TraceIds struct {
	QueryTime int64    `protobuf:"varint,1,opt,name=queryTime,proto3" json:"queryTime,omitempty"`
	TraceIds  []string `protobuf:"bytes,2,rep,name=traceIds,proto3" json:"traceIds,omitempty"`
	// contains filtered or unexported fields
}

func (*TraceIds) Descriptor deprecated

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

Deprecated: Use TraceIds.ProtoReflect.Descriptor instead.

func (*TraceIds) GetQueryTime

func (x *TraceIds) GetQueryTime() int64

func (*TraceIds) GetTraceIds

func (x *TraceIds) GetTraceIds() []string

func (*TraceIds) ProtoMessage

func (*TraceIds) ProtoMessage()

func (*TraceIds) ProtoReflect

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

func (*TraceIds) Reset

func (x *TraceIds) Reset()

func (*TraceIds) String

func (x *TraceIds) String() string

type UnimplementedP9XServiceServer

type UnimplementedP9XServiceServer struct {
}

UnimplementedP9XServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedP9XServiceServer) QueryP9X

type UnimplementedTraceIdServiceServer

type UnimplementedTraceIdServiceServer struct {
}

UnimplementedTraceIdServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTraceIdServiceServer) SendTraceIds

type UnsafeP9XServiceServer

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

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

type UnsafeTraceIdServiceServer

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

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

Jump to

Keyboard shortcuts

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