Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
- type AgentConfig
- func (*AgentConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AgentConfig) GetLoki() *LokiConfig
- func (x *AgentConfig) GetRuntime() *AgentRuntimeConfig
- func (*AgentConfig) ProtoMessage()
- func (x *AgentConfig) ProtoReflect() protoreflect.Message
- func (x *AgentConfig) Reset()
- func (x *AgentConfig) String() string
- type AgentConfigStatus
- func (*AgentConfigStatus) Descriptor() ([]byte, []int)deprecated
- func (x *AgentConfigStatus) GetLoki() *LokiConfig
- func (x *AgentConfigStatus) GetRuntime() *AgentRuntimeStatus
- func (*AgentConfigStatus) ProtoMessage()
- func (x *AgentConfigStatus) ProtoReflect() protoreflect.Message
- func (x *AgentConfigStatus) Reset()
- func (x *AgentConfigStatus) String() string
- type AgentHello
- func (*AgentHello) Descriptor() ([]byte, []int)deprecated
- func (x *AgentHello) GetClientId() string
- func (x *AgentHello) GetClientSecret() string
- func (x *AgentHello) GetLabels() map[string]string
- func (x *AgentHello) GetTenantId() string
- func (x *AgentHello) GetVersion() string
- func (*AgentHello) ProtoMessage()
- func (x *AgentHello) ProtoReflect() protoreflect.Message
- func (x *AgentHello) Reset()
- func (x *AgentHello) String() string
- type AgentRuntimeConfig
- func (*AgentRuntimeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AgentRuntimeConfig) GetClientSecret() string
- func (x *AgentRuntimeConfig) GetDisHost() string
- func (x *AgentRuntimeConfig) GetDisPassword() string
- func (x *AgentRuntimeConfig) GetDisUser() string
- func (x *AgentRuntimeConfig) GetForceRestart() bool
- func (x *AgentRuntimeConfig) GetJavaPath() string
- func (x *AgentRuntimeConfig) GetJdbcPort() string
- func (x *AgentRuntimeConfig) GetTenantId() string
- func (*AgentRuntimeConfig) ProtoMessage()
- func (x *AgentRuntimeConfig) ProtoReflect() protoreflect.Message
- func (x *AgentRuntimeConfig) Reset()
- func (x *AgentRuntimeConfig) String() string
- type AgentRuntimeStatus
- func (*AgentRuntimeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *AgentRuntimeStatus) GetDisHost() string
- func (x *AgentRuntimeStatus) GetDisUser() string
- func (x *AgentRuntimeStatus) GetHasClientSecret() bool
- func (x *AgentRuntimeStatus) GetHasPassword() bool
- func (x *AgentRuntimeStatus) GetJavaPath() string
- func (x *AgentRuntimeStatus) GetJdbcPort() string
- func (x *AgentRuntimeStatus) GetTenantId() string
- func (*AgentRuntimeStatus) ProtoMessage()
- func (x *AgentRuntimeStatus) ProtoReflect() protoreflect.Message
- func (x *AgentRuntimeStatus) Reset()
- func (x *AgentRuntimeStatus) String() string
- type AgentServiceClient
- type AgentServiceServer
- type AgentService_ConnectClient
- type AgentService_ConnectServer
- type AgentToServer
- func (*AgentToServer) Descriptor() ([]byte, []int)deprecated
- func (x *AgentToServer) GetHeartbeat() *Heartbeat
- func (x *AgentToServer) GetHello() *AgentHello
- func (x *AgentToServer) GetJobResult() *JobResult
- func (x *AgentToServer) GetLog() *LogEntry
- func (x *AgentToServer) GetPayload() isAgentToServer_Payload
- func (*AgentToServer) ProtoMessage()
- func (x *AgentToServer) ProtoReflect() protoreflect.Message
- func (x *AgentToServer) Reset()
- func (x *AgentToServer) String() string
- type AgentToServer_Heartbeat
- type AgentToServer_Hello
- type AgentToServer_JobResult
- type AgentToServer_Log
- type Heartbeat
- func (*Heartbeat) Descriptor() ([]byte, []int)deprecated
- func (x *Heartbeat) GetAgentId() string
- func (x *Heartbeat) GetAt() *timestamppb.Timestamp
- func (x *Heartbeat) GetTenantId() string
- func (*Heartbeat) ProtoMessage()
- func (x *Heartbeat) ProtoReflect() protoreflect.Message
- func (x *Heartbeat) Reset()
- func (x *Heartbeat) String() string
- type JobKind
- type JobRequest
- func (*JobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JobRequest) GetIncludeSrc() bool
- func (x *JobRequest) GetJobId() string
- func (x *JobRequest) GetKind() JobKind
- func (x *JobRequest) GetSql() string
- func (*JobRequest) ProtoMessage()
- func (x *JobRequest) ProtoReflect() protoreflect.Message
- func (x *JobRequest) Reset()
- func (x *JobRequest) String() string
- type JobResult
- func (*JobResult) Descriptor() ([]byte, []int)deprecated
- func (x *JobResult) GetConfigStatus() *AgentConfigStatus
- func (x *JobResult) GetJobId() string
- func (x *JobResult) GetMessage() string
- func (x *JobResult) GetRows() []*Row
- func (x *JobResult) GetStatus() Status
- func (*JobResult) ProtoMessage()
- func (x *JobResult) ProtoReflect() protoreflect.Message
- func (x *JobResult) Reset()
- func (x *JobResult) String() string
- type LogEntry
- func (*LogEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LogEntry) GetAt() *timestamppb.Timestamp
- func (x *LogEntry) GetFields() map[string]string
- func (x *LogEntry) GetLevel() string
- func (x *LogEntry) GetMessage() string
- func (*LogEntry) ProtoMessage()
- func (x *LogEntry) ProtoReflect() protoreflect.Message
- func (x *LogEntry) Reset()
- func (x *LogEntry) String() string
- type LokiConfig
- func (*LokiConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LokiConfig) GetApiKey() string
- func (x *LokiConfig) GetAuthHeader() string
- func (x *LokiConfig) GetLabels() map[string]string
- func (x *LokiConfig) GetMinLevel() string
- func (x *LokiConfig) GetTenantId() string
- func (x *LokiConfig) GetUrl() string
- func (*LokiConfig) ProtoMessage()
- func (x *LokiConfig) ProtoReflect() protoreflect.Message
- func (x *LokiConfig) Reset()
- func (x *LokiConfig) String() string
- type Row
- type ServerToAgent
- func (*ServerToAgent) Descriptor() ([]byte, []int)deprecated
- func (x *ServerToAgent) GetConfig() *AgentConfig
- func (x *ServerToAgent) GetJobRequest() *JobRequest
- func (x *ServerToAgent) GetPayload() isServerToAgent_Payload
- func (*ServerToAgent) ProtoMessage()
- func (x *ServerToAgent) ProtoReflect() protoreflect.Message
- func (x *ServerToAgent) Reset()
- func (x *ServerToAgent) String() string
- type ServerToAgent_Config
- type ServerToAgent_JobRequest
- type Status
- type UnimplementedAgentServiceServer
- type UnsafeAgentServiceServer
Constants ¶
const (
AgentService_Connect_FullMethodName = "/bridge.AgentService/Connect"
)
Variables ¶
var ( Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_OK", 2: "STATUS_ERROR", 3: "STATUS_DONE", } Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_OK": 1, "STATUS_ERROR": 2, "STATUS_DONE": 3, } )
Enum value maps for Status.
var ( JobKind_name = map[int32]string{ 0: "JOB_KIND_UNSPECIFIED", 1: "JOB_KIND_QUERY", 2: "JOB_KIND_PING_SERVICE", 3: "JOB_KIND_PING_DATABASE", 4: "JOB_KIND_CONNECT", 5: "JOB_KIND_DISCONNECT", 6: "JOB_KIND_START_JDBC", 7: "JOB_KIND_STOP_JDBC", 8: "JOB_KIND_READ_CONFIG", } JobKind_value = map[string]int32{ "JOB_KIND_UNSPECIFIED": 0, "JOB_KIND_QUERY": 1, "JOB_KIND_PING_SERVICE": 2, "JOB_KIND_PING_DATABASE": 3, "JOB_KIND_CONNECT": 4, "JOB_KIND_DISCONNECT": 5, "JOB_KIND_START_JDBC": 6, "JOB_KIND_STOP_JDBC": 7, "JOB_KIND_READ_CONFIG": 8, } )
Enum value maps for JobKind.
var AgentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bridge.AgentService", HandlerType: (*AgentServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Connect", Handler: _AgentService_Connect_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/bridge.proto", }
AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_bridge_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServiceServer ¶
func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
Types ¶
type AgentConfig ¶
type AgentConfig struct {
Loki *LokiConfig `protobuf:"bytes,1,opt,name=loki,proto3" json:"loki,omitempty"`
Runtime *AgentRuntimeConfig `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"`
// contains filtered or unexported fields
}
func (*AgentConfig) Descriptor
deprecated
func (*AgentConfig) Descriptor() ([]byte, []int)
Deprecated: Use AgentConfig.ProtoReflect.Descriptor instead.
func (*AgentConfig) GetLoki ¶
func (x *AgentConfig) GetLoki() *LokiConfig
func (*AgentConfig) GetRuntime ¶
func (x *AgentConfig) GetRuntime() *AgentRuntimeConfig
func (*AgentConfig) ProtoMessage ¶
func (*AgentConfig) ProtoMessage()
func (*AgentConfig) ProtoReflect ¶
func (x *AgentConfig) ProtoReflect() protoreflect.Message
func (*AgentConfig) Reset ¶
func (x *AgentConfig) Reset()
func (*AgentConfig) String ¶
func (x *AgentConfig) String() string
type AgentConfigStatus ¶
type AgentConfigStatus struct {
Loki *LokiConfig `protobuf:"bytes,1,opt,name=loki,proto3" json:"loki,omitempty"`
Runtime *AgentRuntimeStatus `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"`
// contains filtered or unexported fields
}
AgentConfigStatus is a sanitized snapshot returned by agents.
func (*AgentConfigStatus) Descriptor
deprecated
func (*AgentConfigStatus) Descriptor() ([]byte, []int)
Deprecated: Use AgentConfigStatus.ProtoReflect.Descriptor instead.
func (*AgentConfigStatus) GetLoki ¶
func (x *AgentConfigStatus) GetLoki() *LokiConfig
func (*AgentConfigStatus) GetRuntime ¶
func (x *AgentConfigStatus) GetRuntime() *AgentRuntimeStatus
func (*AgentConfigStatus) ProtoMessage ¶
func (*AgentConfigStatus) ProtoMessage()
func (*AgentConfigStatus) ProtoReflect ¶
func (x *AgentConfigStatus) ProtoReflect() protoreflect.Message
func (*AgentConfigStatus) Reset ¶
func (x *AgentConfigStatus) Reset()
func (*AgentConfigStatus) String ¶
func (x *AgentConfigStatus) String() string
type AgentHello ¶
type AgentHello struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
TenantId string `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*AgentHello) Descriptor
deprecated
func (*AgentHello) Descriptor() ([]byte, []int)
Deprecated: Use AgentHello.ProtoReflect.Descriptor instead.
func (*AgentHello) GetClientId ¶
func (x *AgentHello) GetClientId() string
func (*AgentHello) GetClientSecret ¶
func (x *AgentHello) GetClientSecret() string
func (*AgentHello) GetLabels ¶
func (x *AgentHello) GetLabels() map[string]string
func (*AgentHello) GetTenantId ¶
func (x *AgentHello) GetTenantId() string
func (*AgentHello) GetVersion ¶
func (x *AgentHello) GetVersion() string
func (*AgentHello) ProtoMessage ¶
func (*AgentHello) ProtoMessage()
func (*AgentHello) ProtoReflect ¶
func (x *AgentHello) ProtoReflect() protoreflect.Message
func (*AgentHello) Reset ¶
func (x *AgentHello) Reset()
func (*AgentHello) String ¶
func (x *AgentHello) String() string
type AgentRuntimeConfig ¶
type AgentRuntimeConfig struct {
DisHost string `protobuf:"bytes,1,opt,name=dis_host,json=disHost,proto3" json:"dis_host,omitempty"`
DisUser string `protobuf:"bytes,2,opt,name=dis_user,json=disUser,proto3" json:"dis_user,omitempty"`
DisPassword string `protobuf:"bytes,3,opt,name=dis_password,json=disPassword,proto3" json:"dis_password,omitempty"` // write-only
JdbcPort string `protobuf:"bytes,4,opt,name=jdbc_port,json=jdbcPort,proto3" json:"jdbc_port,omitempty"`
JavaPath string `protobuf:"bytes,5,opt,name=java_path,json=javaPath,proto3" json:"java_path,omitempty"`
TenantId string `protobuf:"bytes,6,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
ClientSecret string `protobuf:"bytes,7,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` // write-only
ForceRestart bool `protobuf:"varint,8,opt,name=force_restart,json=forceRestart,proto3" json:"force_restart,omitempty"` // when true, agent should reconnect/apply immediately
// contains filtered or unexported fields
}
AgentRuntimeConfig carries configuration overrides that the bridge pushes down to agents. Any non-empty field should replace the agent's local setting; secrets are write-only and must never be echoed back from the agent.
func (*AgentRuntimeConfig) Descriptor
deprecated
func (*AgentRuntimeConfig) Descriptor() ([]byte, []int)
Deprecated: Use AgentRuntimeConfig.ProtoReflect.Descriptor instead.
func (*AgentRuntimeConfig) GetClientSecret ¶
func (x *AgentRuntimeConfig) GetClientSecret() string
func (*AgentRuntimeConfig) GetDisHost ¶
func (x *AgentRuntimeConfig) GetDisHost() string
func (*AgentRuntimeConfig) GetDisPassword ¶
func (x *AgentRuntimeConfig) GetDisPassword() string
func (*AgentRuntimeConfig) GetDisUser ¶
func (x *AgentRuntimeConfig) GetDisUser() string
func (*AgentRuntimeConfig) GetForceRestart ¶
func (x *AgentRuntimeConfig) GetForceRestart() bool
func (*AgentRuntimeConfig) GetJavaPath ¶
func (x *AgentRuntimeConfig) GetJavaPath() string
func (*AgentRuntimeConfig) GetJdbcPort ¶
func (x *AgentRuntimeConfig) GetJdbcPort() string
func (*AgentRuntimeConfig) GetTenantId ¶
func (x *AgentRuntimeConfig) GetTenantId() string
func (*AgentRuntimeConfig) ProtoMessage ¶
func (*AgentRuntimeConfig) ProtoMessage()
func (*AgentRuntimeConfig) ProtoReflect ¶
func (x *AgentRuntimeConfig) ProtoReflect() protoreflect.Message
func (*AgentRuntimeConfig) Reset ¶
func (x *AgentRuntimeConfig) Reset()
func (*AgentRuntimeConfig) String ¶
func (x *AgentRuntimeConfig) String() string
type AgentRuntimeStatus ¶
type AgentRuntimeStatus struct {
DisHost string `protobuf:"bytes,1,opt,name=dis_host,json=disHost,proto3" json:"dis_host,omitempty"`
DisUser string `protobuf:"bytes,2,opt,name=dis_user,json=disUser,proto3" json:"dis_user,omitempty"`
JdbcPort string `protobuf:"bytes,3,opt,name=jdbc_port,json=jdbcPort,proto3" json:"jdbc_port,omitempty"`
JavaPath string `protobuf:"bytes,4,opt,name=java_path,json=javaPath,proto3" json:"java_path,omitempty"`
TenantId string `protobuf:"bytes,5,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
HasPassword bool `protobuf:"varint,6,opt,name=has_password,json=hasPassword,proto3" json:"has_password,omitempty"`
HasClientSecret bool `protobuf:"varint,7,opt,name=has_client_secret,json=hasClientSecret,proto3" json:"has_client_secret,omitempty"`
// contains filtered or unexported fields
}
AgentRuntimeStatus mirrors AgentRuntimeConfig but excludes secrets; used for readbacks.
func (*AgentRuntimeStatus) Descriptor
deprecated
func (*AgentRuntimeStatus) Descriptor() ([]byte, []int)
Deprecated: Use AgentRuntimeStatus.ProtoReflect.Descriptor instead.
func (*AgentRuntimeStatus) GetDisHost ¶
func (x *AgentRuntimeStatus) GetDisHost() string
func (*AgentRuntimeStatus) GetDisUser ¶
func (x *AgentRuntimeStatus) GetDisUser() string
func (*AgentRuntimeStatus) GetHasClientSecret ¶
func (x *AgentRuntimeStatus) GetHasClientSecret() bool
func (*AgentRuntimeStatus) GetHasPassword ¶
func (x *AgentRuntimeStatus) GetHasPassword() bool
func (*AgentRuntimeStatus) GetJavaPath ¶
func (x *AgentRuntimeStatus) GetJavaPath() string
func (*AgentRuntimeStatus) GetJdbcPort ¶
func (x *AgentRuntimeStatus) GetJdbcPort() string
func (*AgentRuntimeStatus) GetTenantId ¶
func (x *AgentRuntimeStatus) GetTenantId() string
func (*AgentRuntimeStatus) ProtoMessage ¶
func (*AgentRuntimeStatus) ProtoMessage()
func (*AgentRuntimeStatus) ProtoReflect ¶
func (x *AgentRuntimeStatus) ProtoReflect() protoreflect.Message
func (*AgentRuntimeStatus) Reset ¶
func (x *AgentRuntimeStatus) Reset()
func (*AgentRuntimeStatus) String ¶
func (x *AgentRuntimeStatus) String() string
type AgentServiceClient ¶
type AgentServiceClient interface {
Connect(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[AgentToServer, ServerToAgent], error)
}
AgentServiceClient is the client API for AgentService 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.
AgentService is a bi-directional stream between cloud and LAN agent.
func NewAgentServiceClient ¶
func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient
type AgentServiceServer ¶
type AgentServiceServer interface {
Connect(grpc.BidiStreamingServer[AgentToServer, ServerToAgent]) error
// contains filtered or unexported methods
}
AgentServiceServer is the server API for AgentService service. All implementations must embed UnimplementedAgentServiceServer for forward compatibility.
AgentService is a bi-directional stream between cloud and LAN agent.
type AgentService_ConnectClient ¶
type AgentService_ConnectClient = grpc.BidiStreamingClient[AgentToServer, ServerToAgent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AgentService_ConnectServer ¶
type AgentService_ConnectServer = grpc.BidiStreamingServer[AgentToServer, ServerToAgent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AgentToServer ¶
type AgentToServer struct {
// Types that are valid to be assigned to Payload:
//
// *AgentToServer_Hello
// *AgentToServer_JobResult
// *AgentToServer_Heartbeat
// *AgentToServer_Log
Payload isAgentToServer_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
func (*AgentToServer) Descriptor
deprecated
func (*AgentToServer) Descriptor() ([]byte, []int)
Deprecated: Use AgentToServer.ProtoReflect.Descriptor instead.
func (*AgentToServer) GetHeartbeat ¶
func (x *AgentToServer) GetHeartbeat() *Heartbeat
func (*AgentToServer) GetHello ¶
func (x *AgentToServer) GetHello() *AgentHello
func (*AgentToServer) GetJobResult ¶
func (x *AgentToServer) GetJobResult() *JobResult
func (*AgentToServer) GetLog ¶
func (x *AgentToServer) GetLog() *LogEntry
func (*AgentToServer) GetPayload ¶
func (x *AgentToServer) GetPayload() isAgentToServer_Payload
func (*AgentToServer) ProtoMessage ¶
func (*AgentToServer) ProtoMessage()
func (*AgentToServer) ProtoReflect ¶
func (x *AgentToServer) ProtoReflect() protoreflect.Message
func (*AgentToServer) Reset ¶
func (x *AgentToServer) Reset()
func (*AgentToServer) String ¶
func (x *AgentToServer) String() string
type AgentToServer_Heartbeat ¶
type AgentToServer_Heartbeat struct {
Heartbeat *Heartbeat `protobuf:"bytes,3,opt,name=heartbeat,proto3,oneof"`
}
type AgentToServer_Hello ¶
type AgentToServer_Hello struct {
Hello *AgentHello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}
type AgentToServer_JobResult ¶
type AgentToServer_JobResult struct {
JobResult *JobResult `protobuf:"bytes,2,opt,name=job_result,json=jobResult,proto3,oneof"`
}
type AgentToServer_Log ¶
type AgentToServer_Log struct {
Log *LogEntry `protobuf:"bytes,4,opt,name=log,proto3,oneof"`
}
type Heartbeat ¶
type Heartbeat struct {
At *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=at,proto3" json:"at,omitempty"`
AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
TenantId string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// contains filtered or unexported fields
}
func (*Heartbeat) Descriptor
deprecated
func (*Heartbeat) GetAgentId ¶
func (*Heartbeat) GetAt ¶
func (x *Heartbeat) GetAt() *timestamppb.Timestamp
func (*Heartbeat) GetTenantId ¶
func (*Heartbeat) ProtoMessage ¶
func (*Heartbeat) ProtoMessage()
func (*Heartbeat) ProtoReflect ¶
func (x *Heartbeat) ProtoReflect() protoreflect.Message
type JobKind ¶
type JobKind int32
const ( JobKind_JOB_KIND_UNSPECIFIED JobKind = 0 JobKind_JOB_KIND_QUERY JobKind = 1 JobKind_JOB_KIND_PING_SERVICE JobKind = 2 JobKind_JOB_KIND_PING_DATABASE JobKind = 3 JobKind_JOB_KIND_CONNECT JobKind = 4 JobKind_JOB_KIND_DISCONNECT JobKind = 5 JobKind_JOB_KIND_START_JDBC JobKind = 6 JobKind_JOB_KIND_STOP_JDBC JobKind = 7 JobKind_JOB_KIND_READ_CONFIG JobKind = 8 )
func (JobKind) Descriptor ¶
func (JobKind) Descriptor() protoreflect.EnumDescriptor
func (JobKind) EnumDescriptor
deprecated
func (JobKind) Number ¶
func (x JobKind) Number() protoreflect.EnumNumber
func (JobKind) Type ¶
func (JobKind) Type() protoreflect.EnumType
type JobRequest ¶
type JobRequest struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Kind JobKind `protobuf:"varint,2,opt,name=kind,proto3,enum=bridge.JobKind" json:"kind,omitempty"`
Sql string `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"`
IncludeSrc bool `protobuf:"varint,4,opt,name=include_src,json=includeSrc,proto3" json:"include_src,omitempty"`
// contains filtered or unexported fields
}
func (*JobRequest) Descriptor
deprecated
func (*JobRequest) Descriptor() ([]byte, []int)
Deprecated: Use JobRequest.ProtoReflect.Descriptor instead.
func (*JobRequest) GetIncludeSrc ¶
func (x *JobRequest) GetIncludeSrc() bool
func (*JobRequest) GetJobId ¶
func (x *JobRequest) GetJobId() string
func (*JobRequest) GetKind ¶
func (x *JobRequest) GetKind() JobKind
func (*JobRequest) GetSql ¶
func (x *JobRequest) GetSql() string
func (*JobRequest) ProtoMessage ¶
func (*JobRequest) ProtoMessage()
func (*JobRequest) ProtoReflect ¶
func (x *JobRequest) ProtoReflect() protoreflect.Message
func (*JobRequest) Reset ¶
func (x *JobRequest) Reset()
func (*JobRequest) String ¶
func (x *JobRequest) String() string
type JobResult ¶
type JobResult struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=bridge.Status" json:"status,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
Rows []*Row `protobuf:"bytes,4,rep,name=rows,proto3" json:"rows,omitempty"`
ConfigStatus *AgentConfigStatus `protobuf:"bytes,5,opt,name=config_status,json=configStatus,proto3" json:"config_status,omitempty"`
// contains filtered or unexported fields
}
func (*JobResult) Descriptor
deprecated
func (*JobResult) GetConfigStatus ¶
func (x *JobResult) GetConfigStatus() *AgentConfigStatus
func (*JobResult) GetMessage ¶
func (*JobResult) ProtoMessage ¶
func (*JobResult) ProtoMessage()
func (*JobResult) ProtoReflect ¶
func (x *JobResult) ProtoReflect() protoreflect.Message
type LogEntry ¶
type LogEntry struct {
At *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=at,proto3" json:"at,omitempty"`
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
Fields map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*LogEntry) Descriptor
deprecated
func (*LogEntry) GetAt ¶
func (x *LogEntry) GetAt() *timestamppb.Timestamp
func (*LogEntry) GetMessage ¶
func (*LogEntry) ProtoMessage ¶
func (*LogEntry) ProtoMessage()
func (*LogEntry) ProtoReflect ¶
func (x *LogEntry) ProtoReflect() protoreflect.Message
type LokiConfig ¶
type LokiConfig struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
ApiKey string `protobuf:"bytes,3,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
AuthHeader string `protobuf:"bytes,4,opt,name=auth_header,json=authHeader,proto3" json:"auth_header,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
MinLevel string `protobuf:"bytes,6,opt,name=min_level,json=minLevel,proto3" json:"min_level,omitempty"`
// contains filtered or unexported fields
}
func (*LokiConfig) Descriptor
deprecated
func (*LokiConfig) Descriptor() ([]byte, []int)
Deprecated: Use LokiConfig.ProtoReflect.Descriptor instead.
func (*LokiConfig) GetApiKey ¶
func (x *LokiConfig) GetApiKey() string
func (*LokiConfig) GetAuthHeader ¶
func (x *LokiConfig) GetAuthHeader() string
func (*LokiConfig) GetLabels ¶
func (x *LokiConfig) GetLabels() map[string]string
func (*LokiConfig) GetMinLevel ¶
func (x *LokiConfig) GetMinLevel() string
func (*LokiConfig) GetTenantId ¶
func (x *LokiConfig) GetTenantId() string
func (*LokiConfig) GetUrl ¶
func (x *LokiConfig) GetUrl() string
func (*LokiConfig) ProtoMessage ¶
func (*LokiConfig) ProtoMessage()
func (*LokiConfig) ProtoReflect ¶
func (x *LokiConfig) ProtoReflect() protoreflect.Message
func (*LokiConfig) Reset ¶
func (x *LokiConfig) Reset()
func (*LokiConfig) String ¶
func (x *LokiConfig) String() string
type Row ¶
type Row struct {
Fields map[string]*structpb.Value `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Row) Descriptor
deprecated
func (*Row) ProtoMessage ¶
func (*Row) ProtoMessage()
func (*Row) ProtoReflect ¶
func (x *Row) ProtoReflect() protoreflect.Message
type ServerToAgent ¶
type ServerToAgent struct {
// Types that are valid to be assigned to Payload:
//
// *ServerToAgent_JobRequest
// *ServerToAgent_Config
Payload isServerToAgent_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
func (*ServerToAgent) Descriptor
deprecated
func (*ServerToAgent) Descriptor() ([]byte, []int)
Deprecated: Use ServerToAgent.ProtoReflect.Descriptor instead.
func (*ServerToAgent) GetConfig ¶
func (x *ServerToAgent) GetConfig() *AgentConfig
func (*ServerToAgent) GetJobRequest ¶
func (x *ServerToAgent) GetJobRequest() *JobRequest
func (*ServerToAgent) GetPayload ¶
func (x *ServerToAgent) GetPayload() isServerToAgent_Payload
func (*ServerToAgent) ProtoMessage ¶
func (*ServerToAgent) ProtoMessage()
func (*ServerToAgent) ProtoReflect ¶
func (x *ServerToAgent) ProtoReflect() protoreflect.Message
func (*ServerToAgent) Reset ¶
func (x *ServerToAgent) Reset()
func (*ServerToAgent) String ¶
func (x *ServerToAgent) String() string
type ServerToAgent_Config ¶
type ServerToAgent_Config struct {
Config *AgentConfig `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}
type ServerToAgent_JobRequest ¶
type ServerToAgent_JobRequest struct {
JobRequest *JobRequest `protobuf:"bytes,1,opt,name=job_request,json=jobRequest,proto3,oneof"`
}
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedAgentServiceServer ¶
type UnimplementedAgentServiceServer struct{}
UnimplementedAgentServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAgentServiceServer) Connect ¶
func (UnimplementedAgentServiceServer) Connect(grpc.BidiStreamingServer[AgentToServer, ServerToAgent]) error
type UnsafeAgentServiceServer ¶
type UnsafeAgentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServiceServer will result in compilation errors.