Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterKlothoServiceServer(s grpc.ServiceRegistrar, srv KlothoServiceServer)
- type HealthCheckReply
- type HealthCheckRequest
- type IRReply
- type IRRequest
- type KlothoServiceClient
- type KlothoServiceServer
- type RegisterConstructReply
- func (*RegisterConstructReply) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterConstructReply) GetMessage() string
- func (x *RegisterConstructReply) GetYamlPayload() string
- func (*RegisterConstructReply) ProtoMessage()
- func (x *RegisterConstructReply) ProtoReflect() protoreflect.Message
- func (x *RegisterConstructReply) Reset()
- func (x *RegisterConstructReply) String() string
- type RegisterConstructRequest
- func (*RegisterConstructRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterConstructRequest) GetYamlPayload() string
- func (*RegisterConstructRequest) ProtoMessage()
- func (x *RegisterConstructRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterConstructRequest) Reset()
- func (x *RegisterConstructRequest) String() string
- type UnimplementedKlothoServiceServer
- func (UnimplementedKlothoServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckReply, error)
- func (UnimplementedKlothoServiceServer) RegisterConstruct(context.Context, *RegisterConstructRequest) (*RegisterConstructReply, error)
- func (UnimplementedKlothoServiceServer) SendIR(context.Context, *IRRequest) (*IRReply, error)
- type UnsafeKlothoServiceServer
Constants ¶
const ( KlothoService_SendIR_FullMethodName = "/klotho.KlothoService/SendIR" KlothoService_HealthCheck_FullMethodName = "/klotho.KlothoService/HealthCheck" KlothoService_RegisterConstruct_FullMethodName = "/klotho.KlothoService/RegisterConstruct" )
Variables ¶
var File_service_proto protoreflect.FileDescriptor
var KlothoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "klotho.KlothoService", HandlerType: (*KlothoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendIR", Handler: _KlothoService_SendIR_Handler, }, { MethodName: "HealthCheck", Handler: _KlothoService_HealthCheck_Handler, }, { MethodName: "RegisterConstruct", Handler: _KlothoService_RegisterConstruct_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
KlothoService_ServiceDesc is the grpc.ServiceDesc for KlothoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKlothoServiceServer ¶
func RegisterKlothoServiceServer(s grpc.ServiceRegistrar, srv KlothoServiceServer)
Types ¶
type HealthCheckReply ¶
type HealthCheckReply struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*HealthCheckReply) Descriptor
deprecated
func (*HealthCheckReply) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckReply.ProtoReflect.Descriptor instead.
func (*HealthCheckReply) GetStatus ¶
func (x *HealthCheckReply) GetStatus() string
func (*HealthCheckReply) ProtoMessage ¶
func (*HealthCheckReply) ProtoMessage()
func (*HealthCheckReply) ProtoReflect ¶
func (x *HealthCheckReply) ProtoReflect() protoreflect.Message
func (*HealthCheckReply) Reset ¶
func (x *HealthCheckReply) Reset()
func (*HealthCheckReply) String ¶
func (x *HealthCheckReply) String() string
type HealthCheckRequest ¶
type HealthCheckRequest struct {
// contains filtered or unexported fields
}
func (*HealthCheckRequest) Descriptor
deprecated
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) ProtoReflect ¶
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
func (*HealthCheckRequest) Reset ¶
func (x *HealthCheckRequest) Reset()
func (*HealthCheckRequest) String ¶
func (x *HealthCheckRequest) String() string
type IRReply ¶
type IRReply struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
YamlPayload string `protobuf:"bytes,2,opt,name=yaml_payload,json=yamlPayload,proto3" json:"yaml_payload,omitempty"`
// contains filtered or unexported fields
}
func (*IRReply) Descriptor
deprecated
func (*IRReply) GetMessage ¶
func (*IRReply) GetYamlPayload ¶
func (*IRReply) ProtoMessage ¶
func (*IRReply) ProtoMessage()
func (*IRReply) ProtoReflect ¶
func (x *IRReply) ProtoReflect() protoreflect.Message
type IRRequest ¶
type IRRequest struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
// contains filtered or unexported fields
}
func (*IRRequest) Descriptor
deprecated
func (*IRRequest) GetFilename ¶
func (*IRRequest) ProtoMessage ¶
func (*IRRequest) ProtoMessage()
func (*IRRequest) ProtoReflect ¶
func (x *IRRequest) ProtoReflect() protoreflect.Message
type KlothoServiceClient ¶
type KlothoServiceClient interface {
SendIR(ctx context.Context, in *IRRequest, opts ...grpc.CallOption) (*IRReply, error)
HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckReply, error)
RegisterConstruct(ctx context.Context, in *RegisterConstructRequest, opts ...grpc.CallOption) (*RegisterConstructReply, error)
}
KlothoServiceClient is the client API for KlothoService 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 NewKlothoServiceClient ¶
func NewKlothoServiceClient(cc grpc.ClientConnInterface) KlothoServiceClient
type KlothoServiceServer ¶
type KlothoServiceServer interface {
SendIR(context.Context, *IRRequest) (*IRReply, error)
HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckReply, error)
RegisterConstruct(context.Context, *RegisterConstructRequest) (*RegisterConstructReply, error)
// contains filtered or unexported methods
}
KlothoServiceServer is the server API for KlothoService service. All implementations must embed UnimplementedKlothoServiceServer for forward compatibility
type RegisterConstructReply ¶
type RegisterConstructReply struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
YamlPayload string `protobuf:"bytes,2,opt,name=yaml_payload,json=yamlPayload,proto3" json:"yaml_payload,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterConstructReply) Descriptor
deprecated
func (*RegisterConstructReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterConstructReply.ProtoReflect.Descriptor instead.
func (*RegisterConstructReply) GetMessage ¶
func (x *RegisterConstructReply) GetMessage() string
func (*RegisterConstructReply) GetYamlPayload ¶
func (x *RegisterConstructReply) GetYamlPayload() string
func (*RegisterConstructReply) ProtoMessage ¶
func (*RegisterConstructReply) ProtoMessage()
func (*RegisterConstructReply) ProtoReflect ¶
func (x *RegisterConstructReply) ProtoReflect() protoreflect.Message
func (*RegisterConstructReply) Reset ¶
func (x *RegisterConstructReply) Reset()
func (*RegisterConstructReply) String ¶
func (x *RegisterConstructReply) String() string
type RegisterConstructRequest ¶
type RegisterConstructRequest struct {
YamlPayload string `protobuf:"bytes,1,opt,name=yaml_payload,json=yamlPayload,proto3" json:"yaml_payload,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterConstructRequest) Descriptor
deprecated
func (*RegisterConstructRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterConstructRequest.ProtoReflect.Descriptor instead.
func (*RegisterConstructRequest) GetYamlPayload ¶
func (x *RegisterConstructRequest) GetYamlPayload() string
func (*RegisterConstructRequest) ProtoMessage ¶
func (*RegisterConstructRequest) ProtoMessage()
func (*RegisterConstructRequest) ProtoReflect ¶
func (x *RegisterConstructRequest) ProtoReflect() protoreflect.Message
func (*RegisterConstructRequest) Reset ¶
func (x *RegisterConstructRequest) Reset()
func (*RegisterConstructRequest) String ¶
func (x *RegisterConstructRequest) String() string
type UnimplementedKlothoServiceServer ¶
type UnimplementedKlothoServiceServer struct {
}
UnimplementedKlothoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedKlothoServiceServer) HealthCheck ¶
func (UnimplementedKlothoServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckReply, error)
func (UnimplementedKlothoServiceServer) RegisterConstruct ¶
func (UnimplementedKlothoServiceServer) RegisterConstruct(context.Context, *RegisterConstructRequest) (*RegisterConstructReply, error)
type UnsafeKlothoServiceServer ¶
type UnsafeKlothoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKlothoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KlothoServiceServer will result in compilation errors.