Documentation ¶
Index ¶
- Variables
- func RegisterExecServiceServer(s grpc.ServiceRegistrar, srv ExecServiceServer)
- type ExecServiceApplicationError
- func (ExecServiceApplicationError) Descriptor() protoreflect.EnumDescriptor
- func (x ExecServiceApplicationError) Enum() *ExecServiceApplicationError
- func (ExecServiceApplicationError) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExecServiceApplicationError) Number() protoreflect.EnumNumber
- func (x ExecServiceApplicationError) String() string
- func (ExecServiceApplicationError) Type() protoreflect.EnumType
- func (x *ExecServiceApplicationError) UnmarshalJSON(b []byte) errordeprecated
- type ExecServiceClient
- type ExecServiceServer
- type UnimplementedExecServiceServer
- type UnsafeExecServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ExecServiceApplicationError_name = map[int32]string{ -1: "BAD_REQUEST", 0: "EXEC_OK", 1: "EXECUTABLE_NOT_READY", 2: "DISK_EXCEEDED", 3: "EXEC_INTERNAL_ERROR", 4: "EXECUTOR_IS_LOADING", 5: "EXECUTOR_MEMORY_NOT_ENOUGH", } ExecServiceApplicationError_value = map[string]int32{ "BAD_REQUEST": -1, "EXEC_OK": 0, "EXECUTABLE_NOT_READY": 1, "DISK_EXCEEDED": 2, "EXEC_INTERNAL_ERROR": 3, "EXECUTOR_IS_LOADING": 4, "EXECUTOR_MEMORY_NOT_ENOUGH": 5, } )
Enum value maps for ExecServiceApplicationError.
var ExecService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "devtools_goma.ExecService", HandlerType: (*ExecServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Exec", Handler: _ExecService_Exec_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "exec/exec_service.proto", }
ExecService_ServiceDesc is the grpc.ServiceDesc for ExecService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_exec_exec_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExecServiceServer ¶
func RegisterExecServiceServer(s grpc.ServiceRegistrar, srv ExecServiceServer)
Types ¶
type ExecServiceApplicationError ¶
type ExecServiceApplicationError int32
TODO: reconsider good error codes.
const ( ExecServiceApplicationError_BAD_REQUEST ExecServiceApplicationError = -1 ExecServiceApplicationError_EXEC_OK ExecServiceApplicationError = 0 ExecServiceApplicationError_EXECUTABLE_NOT_READY ExecServiceApplicationError = 1 ExecServiceApplicationError_DISK_EXCEEDED ExecServiceApplicationError = 2 ExecServiceApplicationError_EXEC_INTERNAL_ERROR ExecServiceApplicationError = 3 ExecServiceApplicationError_EXECUTOR_IS_LOADING ExecServiceApplicationError = 4 ExecServiceApplicationError_EXECUTOR_MEMORY_NOT_ENOUGH ExecServiceApplicationError = 5 )
func (ExecServiceApplicationError) Descriptor ¶ added in v0.0.12
func (ExecServiceApplicationError) Descriptor() protoreflect.EnumDescriptor
func (ExecServiceApplicationError) Enum ¶
func (x ExecServiceApplicationError) Enum() *ExecServiceApplicationError
func (ExecServiceApplicationError) EnumDescriptor
deprecated
func (ExecServiceApplicationError) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExecServiceApplicationError.Descriptor instead.
func (ExecServiceApplicationError) Number ¶ added in v0.0.12
func (x ExecServiceApplicationError) Number() protoreflect.EnumNumber
func (ExecServiceApplicationError) String ¶
func (x ExecServiceApplicationError) String() string
func (ExecServiceApplicationError) Type ¶ added in v0.0.12
func (ExecServiceApplicationError) Type() protoreflect.EnumType
func (*ExecServiceApplicationError) UnmarshalJSON
deprecated
func (x *ExecServiceApplicationError) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ExecServiceClient ¶
type ExecServiceClient interface {
Exec(ctx context.Context, in *api.ExecReq, opts ...grpc.CallOption) (*api.ExecResp, error)
}
ExecServiceClient is the client API for ExecService 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 NewExecServiceClient ¶
func NewExecServiceClient(cc grpc.ClientConnInterface) ExecServiceClient
type ExecServiceServer ¶
type ExecServiceServer interface { Exec(context.Context, *api.ExecReq) (*api.ExecResp, error) // contains filtered or unexported methods }
ExecServiceServer is the server API for ExecService service. All implementations must embed UnimplementedExecServiceServer for forward compatibility
type UnimplementedExecServiceServer ¶ added in v0.0.5
type UnimplementedExecServiceServer struct { }
UnimplementedExecServiceServer must be embedded to have forward compatible implementations.
type UnsafeExecServiceServer ¶ added in v0.0.18
type UnsafeExecServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExecServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExecServiceServer will result in compilation errors.