_go

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KlothoService_SendIR_FullMethodName            = "/klotho.KlothoService/SendIR"
	KlothoService_HealthCheck_FullMethodName       = "/klotho.KlothoService/HealthCheck"
	KlothoService_RegisterConstruct_FullMethodName = "/klotho.KlothoService/RegisterConstruct"
)

Variables

View Source
var File_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use IRReply.ProtoReflect.Descriptor instead.

func (*IRReply) GetMessage

func (x *IRReply) GetMessage() string

func (*IRReply) GetYamlPayload

func (x *IRReply) GetYamlPayload() string

func (*IRReply) ProtoMessage

func (*IRReply) ProtoMessage()

func (*IRReply) ProtoReflect

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

func (*IRReply) Reset

func (x *IRReply) Reset()

func (*IRReply) String

func (x *IRReply) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IRRequest.ProtoReflect.Descriptor instead.

func (*IRRequest) GetFilename

func (x *IRRequest) GetFilename() string

func (*IRRequest) ProtoMessage

func (*IRRequest) ProtoMessage()

func (*IRRequest) ProtoReflect

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

func (*IRRequest) Reset

func (x *IRRequest) Reset()

func (*IRRequest) String

func (x *IRRequest) String() string

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.

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) RegisterConstruct

func (UnimplementedKlothoServiceServer) SendIR

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.

Jump to

Keyboard shortcuts

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