Documentation ¶
Index ¶
- Variables
- func RegisterImageProcServer(s *grpc.Server, srv ImageProcServer)
- type ImageProcClient
- type ImageProcServer
- type ImageProc_ProcessImageClient
- type ImageProc_ProcessImageServer
- type ProcessImageRequest
- func (*ProcessImageRequest) Descriptor() ([]byte, []int)
- func (m *ProcessImageRequest) GetImageDataPng() []byte
- func (m *ProcessImageRequest) GetSourceCode() string
- func (*ProcessImageRequest) ProtoMessage()
- func (m *ProcessImageRequest) Reset()
- func (m *ProcessImageRequest) String() string
- func (m *ProcessImageRequest) XXX_DiscardUnknown()
- func (m *ProcessImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProcessImageRequest) XXX_Merge(src proto.Message)
- func (m *ProcessImageRequest) XXX_Size() int
- func (m *ProcessImageRequest) XXX_Unmarshal(b []byte) error
- type ProcessImageResponse
- func (*ProcessImageResponse) Descriptor() ([]byte, []int)
- func (m *ProcessImageResponse) GetImageDataPng() []byte
- func (m *ProcessImageResponse) GetLogOutput() string
- func (m *ProcessImageResponse) GetMessage() string
- func (m *ProcessImageResponse) GetResult() ProcessImageResponse_CompilationResult
- func (*ProcessImageResponse) ProtoMessage()
- func (m *ProcessImageResponse) Reset()
- func (m *ProcessImageResponse) String() string
- func (m *ProcessImageResponse) XXX_DiscardUnknown()
- func (m *ProcessImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProcessImageResponse) XXX_Merge(src proto.Message)
- func (m *ProcessImageResponse) XXX_Size() int
- func (m *ProcessImageResponse) XXX_Unmarshal(b []byte) error
- type ProcessImageResponse_CompilationResult
- type UnimplementedImageProcServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ProcessImageResponse_CompilationResult_name = map[int32]string{
0: "UNDEFINED",
1: "OK",
2: "ERROR",
}
View Source
var ProcessImageResponse_CompilationResult_value = map[string]int32{
"UNDEFINED": 0,
"OK": 1,
"ERROR": 2,
}
Functions ¶
func RegisterImageProcServer ¶
func RegisterImageProcServer(s *grpc.Server, srv ImageProcServer)
Types ¶
type ImageProcClient ¶
type ImageProcClient interface {
ProcessImage(ctx context.Context, opts ...grpc.CallOption) (ImageProc_ProcessImageClient, error)
}
ImageProcClient is the client API for ImageProc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewImageProcClient ¶
func NewImageProcClient(cc *grpc.ClientConn) ImageProcClient
type ImageProcServer ¶
type ImageProcServer interface {
ProcessImage(ImageProc_ProcessImageServer) error
}
ImageProcServer is the server API for ImageProc service.
type ImageProc_ProcessImageClient ¶
type ImageProc_ProcessImageClient interface { Send(*ProcessImageRequest) error Recv() (*ProcessImageResponse, error) grpc.ClientStream }
type ImageProc_ProcessImageServer ¶
type ImageProc_ProcessImageServer interface { Send(*ProcessImageResponse) error Recv() (*ProcessImageRequest, error) grpc.ServerStream }
type ProcessImageRequest ¶
type ProcessImageRequest struct { SourceCode string `protobuf:"bytes,1,opt,name=sourceCode,proto3" json:"sourceCode,omitempty"` ImageDataPng []byte `protobuf:"bytes,2,opt,name=imageDataPng,proto3" json:"imageDataPng,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProcessImageRequest) Descriptor ¶
func (*ProcessImageRequest) Descriptor() ([]byte, []int)
func (*ProcessImageRequest) GetImageDataPng ¶
func (m *ProcessImageRequest) GetImageDataPng() []byte
func (*ProcessImageRequest) GetSourceCode ¶
func (m *ProcessImageRequest) GetSourceCode() string
func (*ProcessImageRequest) ProtoMessage ¶
func (*ProcessImageRequest) ProtoMessage()
func (*ProcessImageRequest) Reset ¶
func (m *ProcessImageRequest) Reset()
func (*ProcessImageRequest) String ¶
func (m *ProcessImageRequest) String() string
func (*ProcessImageRequest) XXX_DiscardUnknown ¶
func (m *ProcessImageRequest) XXX_DiscardUnknown()
func (*ProcessImageRequest) XXX_Marshal ¶
func (m *ProcessImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProcessImageRequest) XXX_Merge ¶
func (m *ProcessImageRequest) XXX_Merge(src proto.Message)
func (*ProcessImageRequest) XXX_Size ¶
func (m *ProcessImageRequest) XXX_Size() int
func (*ProcessImageRequest) XXX_Unmarshal ¶
func (m *ProcessImageRequest) XXX_Unmarshal(b []byte) error
type ProcessImageResponse ¶
type ProcessImageResponse struct { Result ProcessImageResponse_CompilationResult `protobuf:"varint,1,opt,name=result,proto3,enum=listener.ProcessImageResponse_CompilationResult" json:"result,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` ImageDataPng []byte `protobuf:"bytes,3,opt,name=imageDataPng,proto3" json:"imageDataPng,omitempty"` LogOutput string `protobuf:"bytes,4,opt,name=logOutput,proto3" json:"logOutput,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProcessImageResponse) Descriptor ¶
func (*ProcessImageResponse) Descriptor() ([]byte, []int)
func (*ProcessImageResponse) GetImageDataPng ¶
func (m *ProcessImageResponse) GetImageDataPng() []byte
func (*ProcessImageResponse) GetLogOutput ¶
func (m *ProcessImageResponse) GetLogOutput() string
func (*ProcessImageResponse) GetMessage ¶
func (m *ProcessImageResponse) GetMessage() string
func (*ProcessImageResponse) GetResult ¶
func (m *ProcessImageResponse) GetResult() ProcessImageResponse_CompilationResult
func (*ProcessImageResponse) ProtoMessage ¶
func (*ProcessImageResponse) ProtoMessage()
func (*ProcessImageResponse) Reset ¶
func (m *ProcessImageResponse) Reset()
func (*ProcessImageResponse) String ¶
func (m *ProcessImageResponse) String() string
func (*ProcessImageResponse) XXX_DiscardUnknown ¶
func (m *ProcessImageResponse) XXX_DiscardUnknown()
func (*ProcessImageResponse) XXX_Marshal ¶
func (m *ProcessImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProcessImageResponse) XXX_Merge ¶
func (m *ProcessImageResponse) XXX_Merge(src proto.Message)
func (*ProcessImageResponse) XXX_Size ¶
func (m *ProcessImageResponse) XXX_Size() int
func (*ProcessImageResponse) XXX_Unmarshal ¶
func (m *ProcessImageResponse) XXX_Unmarshal(b []byte) error
type ProcessImageResponse_CompilationResult ¶
type ProcessImageResponse_CompilationResult int32
const ( ProcessImageResponse_UNDEFINED ProcessImageResponse_CompilationResult = 0 ProcessImageResponse_OK ProcessImageResponse_CompilationResult = 1 ProcessImageResponse_ERROR ProcessImageResponse_CompilationResult = 2 )
func (ProcessImageResponse_CompilationResult) EnumDescriptor ¶
func (ProcessImageResponse_CompilationResult) EnumDescriptor() ([]byte, []int)
func (ProcessImageResponse_CompilationResult) String ¶
func (x ProcessImageResponse_CompilationResult) String() string
type UnimplementedImageProcServer ¶
type UnimplementedImageProcServer struct { }
UnimplementedImageProcServer can be embedded to have forward compatible implementations.
func (*UnimplementedImageProcServer) ProcessImage ¶
func (*UnimplementedImageProcServer) ProcessImage(srv ImageProc_ProcessImageServer) error
Click to show internal directories.
Click to hide internal directories.