debug_api

package
v0.0.0-...-9f43f84 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetLogLevelRequest_Level_name = map[int32]string{
		0: "UNKNOWN",
		1: "DEBUG",
		2: "INFO",
		3: "WARN",
		4: "FATAL",
	}
	SetLogLevelRequest_Level_value = map[string]int32{
		"UNKNOWN": 0,
		"DEBUG":   1,
		"INFO":    2,
		"WARN":    3,
		"FATAL":   4,
	}
)

Enum value maps for SetLogLevelRequest_Level.

View Source
var File_grpc_debug_debug_api_debug_proto protoreflect.FileDescriptor

Functions

func RegisterDebugServer

func RegisterDebugServer(s *grpc.Server, srv DebugServer)

Types

type Chunk

type Chunk struct {
	Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"`
	// contains filtered or unexported fields
}

func (*Chunk) Descriptor deprecated

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

Deprecated: Use Chunk.ProtoReflect.Descriptor instead.

func (*Chunk) GetChunk

func (x *Chunk) GetChunk() []byte

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) ProtoReflect

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

func (*Chunk) Reset

func (x *Chunk) Reset()

func (*Chunk) String

func (x *Chunk) String() string

type DebugClient

type DebugClient interface {
	Trace(ctx context.Context, in *TraceRequest, opts ...grpc.CallOption) (Debug_TraceClient, error)
	Profile(ctx context.Context, in *ProfileRequest, opts ...grpc.CallOption) (Debug_ProfileClient, error)
	SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error)
	GetVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
}

DebugClient is the client API for Debug service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDebugClient

func NewDebugClient(cc grpc.ClientConnInterface) DebugClient

type DebugServer

DebugServer is the server API for Debug service.

type Debug_ProfileClient

type Debug_ProfileClient interface {
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Debug_ProfileServer

type Debug_ProfileServer interface {
	Send(*Chunk) error
	grpc.ServerStream
}

type Debug_TraceClient

type Debug_TraceClient interface {
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Debug_TraceServer

type Debug_TraceServer interface {
	Send(*Chunk) error
	grpc.ServerStream
}

type ProfileRequest

type ProfileRequest struct {
	ProfileName string               `protobuf:"bytes,1,opt,name=profile_name,json=profileName,proto3" json:"profile_name,omitempty"`
	SampleRate  int64                `protobuf:"varint,2,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"`
	Duration    *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileRequest) Descriptor deprecated

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

Deprecated: Use ProfileRequest.ProtoReflect.Descriptor instead.

func (*ProfileRequest) GetDuration

func (x *ProfileRequest) GetDuration() *durationpb.Duration

func (*ProfileRequest) GetProfileName

func (x *ProfileRequest) GetProfileName() string

func (*ProfileRequest) GetSampleRate

func (x *ProfileRequest) GetSampleRate() int64

func (*ProfileRequest) ProtoMessage

func (*ProfileRequest) ProtoMessage()

func (*ProfileRequest) ProtoReflect

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

func (*ProfileRequest) Reset

func (x *ProfileRequest) Reset()

func (*ProfileRequest) String

func (x *ProfileRequest) String() string

type SetLogLevelRequest

type SetLogLevelRequest struct {
	Level SetLogLevelRequest_Level `protobuf:"varint,1,opt,name=level,proto3,enum=chef.automate.api.debug.SetLogLevelRequest_Level" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*SetLogLevelRequest) Descriptor deprecated

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

Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead.

func (*SetLogLevelRequest) GetLevel

func (*SetLogLevelRequest) ProtoMessage

func (*SetLogLevelRequest) ProtoMessage()

func (*SetLogLevelRequest) ProtoReflect

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

func (*SetLogLevelRequest) Reset

func (x *SetLogLevelRequest) Reset()

func (*SetLogLevelRequest) String

func (x *SetLogLevelRequest) String() string

type SetLogLevelRequest_Level

type SetLogLevelRequest_Level int32
const (
	SetLogLevelRequest_UNKNOWN SetLogLevelRequest_Level = 0
	SetLogLevelRequest_DEBUG   SetLogLevelRequest_Level = 1
	SetLogLevelRequest_INFO    SetLogLevelRequest_Level = 2
	SetLogLevelRequest_WARN    SetLogLevelRequest_Level = 3
	SetLogLevelRequest_FATAL   SetLogLevelRequest_Level = 4
)

func (SetLogLevelRequest_Level) Descriptor

func (SetLogLevelRequest_Level) Enum

func (SetLogLevelRequest_Level) EnumDescriptor deprecated

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

Deprecated: Use SetLogLevelRequest_Level.Descriptor instead.

func (SetLogLevelRequest_Level) Number

func (SetLogLevelRequest_Level) String

func (x SetLogLevelRequest_Level) String() string

func (SetLogLevelRequest_Level) Type

type SetLogLevelResponse

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

func (*SetLogLevelResponse) Descriptor deprecated

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

Deprecated: Use SetLogLevelResponse.ProtoReflect.Descriptor instead.

func (*SetLogLevelResponse) ProtoMessage

func (*SetLogLevelResponse) ProtoMessage()

func (*SetLogLevelResponse) ProtoReflect

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

func (*SetLogLevelResponse) Reset

func (x *SetLogLevelResponse) Reset()

func (*SetLogLevelResponse) String

func (x *SetLogLevelResponse) String() string

type TraceRequest

type TraceRequest struct {
	Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*TraceRequest) Descriptor deprecated

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

Deprecated: Use TraceRequest.ProtoReflect.Descriptor instead.

func (*TraceRequest) GetDuration

func (x *TraceRequest) GetDuration() *durationpb.Duration

func (*TraceRequest) ProtoMessage

func (*TraceRequest) ProtoMessage()

func (*TraceRequest) ProtoReflect

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

func (*TraceRequest) Reset

func (x *TraceRequest) Reset()

func (*TraceRequest) String

func (x *TraceRequest) String() string

type UnimplementedDebugServer

type UnimplementedDebugServer struct {
}

UnimplementedDebugServer can be embedded to have forward compatible implementations.

func (*UnimplementedDebugServer) GetVersion

func (*UnimplementedDebugServer) Profile

func (*UnimplementedDebugServer) SetLogLevel

func (*UnimplementedDebugServer) Trace

type VersionRequest

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

func (*VersionRequest) Descriptor deprecated

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

Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) ProtoReflect

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

func (*VersionRequest) Reset

func (x *VersionRequest) Reset()

func (*VersionRequest) String

func (x *VersionRequest) String() string

type VersionResponse

type VersionResponse struct {
	Version   string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	GitRef    string `protobuf:"bytes,2,opt,name=git_ref,json=gitRef,proto3" json:"git_ref,omitempty"`
	GoVersion string `protobuf:"bytes,3,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

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

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetGitRef

func (x *VersionResponse) GetGitRef() string

func (*VersionResponse) GetGoVersion

func (x *VersionResponse) GetGoVersion() string

func (*VersionResponse) GetVersion

func (x *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

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

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

Jump to

Keyboard shortcuts

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