Documentation
¶
Index ¶
- Variables
- func RegisterJupyterServerHostServer(s grpc.ServiceRegistrar, srv JupyterServerHostServer)
- type GetRunningServerRequest
- type GetRunningServerResponse
- func (*GetRunningServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRunningServerResponse) GetMessage() string
- func (x *GetRunningServerResponse) GetPort() string
- func (x *GetRunningServerResponse) GetResult() bool
- func (x *GetRunningServerResponse) GetServerUrl() string
- func (*GetRunningServerResponse) ProtoMessage()
- func (x *GetRunningServerResponse) ProtoReflect() protoreflect.Message
- func (x *GetRunningServerResponse) Reset()
- func (x *GetRunningServerResponse) String() string
- type JupyterServerHostClient
- type JupyterServerHostServer
- type JupyterServerHostServerMock
- type UnimplementedJupyterServerHostServer
- type UnsafeJupyterServerHostServer
Constants ¶
This section is empty.
Variables ¶
var File_jupyter_jupyter_server_host_service_v1_proto protoreflect.FileDescriptor
var JupyterServerHost_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Codespaces.Grpc.JupyterServerHostService.v1.JupyterServerHost", HandlerType: (*JupyterServerHostServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRunningServer", Handler: _JupyterServerHost_GetRunningServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "jupyter/jupyter_server_host_service.v1.proto", }
JupyterServerHost_ServiceDesc is the grpc.ServiceDesc for JupyterServerHost service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterJupyterServerHostServer ¶
func RegisterJupyterServerHostServer(s grpc.ServiceRegistrar, srv JupyterServerHostServer)
Types ¶
type GetRunningServerRequest ¶
type GetRunningServerRequest struct {
// contains filtered or unexported fields
}
func (*GetRunningServerRequest) Descriptor
deprecated
func (*GetRunningServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRunningServerRequest.ProtoReflect.Descriptor instead.
func (*GetRunningServerRequest) ProtoMessage ¶
func (*GetRunningServerRequest) ProtoMessage()
func (*GetRunningServerRequest) ProtoReflect ¶
func (x *GetRunningServerRequest) ProtoReflect() protoreflect.Message
func (*GetRunningServerRequest) Reset ¶
func (x *GetRunningServerRequest) Reset()
func (*GetRunningServerRequest) String ¶
func (x *GetRunningServerRequest) String() string
type GetRunningServerResponse ¶
type GetRunningServerResponse struct { Result bool `protobuf:"varint,1,opt,name=Result,proto3" json:"Result,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` Port string `protobuf:"bytes,3,opt,name=Port,proto3" json:"Port,omitempty"` ServerUrl string `protobuf:"bytes,4,opt,name=ServerUrl,proto3" json:"ServerUrl,omitempty"` // contains filtered or unexported fields }
func (*GetRunningServerResponse) Descriptor
deprecated
func (*GetRunningServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRunningServerResponse.ProtoReflect.Descriptor instead.
func (*GetRunningServerResponse) GetMessage ¶
func (x *GetRunningServerResponse) GetMessage() string
func (*GetRunningServerResponse) GetPort ¶
func (x *GetRunningServerResponse) GetPort() string
func (*GetRunningServerResponse) GetResult ¶
func (x *GetRunningServerResponse) GetResult() bool
func (*GetRunningServerResponse) GetServerUrl ¶
func (x *GetRunningServerResponse) GetServerUrl() string
func (*GetRunningServerResponse) ProtoMessage ¶
func (*GetRunningServerResponse) ProtoMessage()
func (*GetRunningServerResponse) ProtoReflect ¶
func (x *GetRunningServerResponse) ProtoReflect() protoreflect.Message
func (*GetRunningServerResponse) Reset ¶
func (x *GetRunningServerResponse) Reset()
func (*GetRunningServerResponse) String ¶
func (x *GetRunningServerResponse) String() string
type JupyterServerHostClient ¶
type JupyterServerHostClient interface {
GetRunningServer(ctx context.Context, in *GetRunningServerRequest, opts ...grpc.CallOption) (*GetRunningServerResponse, error)
}
JupyterServerHostClient is the client API for JupyterServerHost 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 NewJupyterServerHostClient ¶
func NewJupyterServerHostClient(cc grpc.ClientConnInterface) JupyterServerHostClient
type JupyterServerHostServer ¶
type JupyterServerHostServer interface { GetRunningServer(context.Context, *GetRunningServerRequest) (*GetRunningServerResponse, error) // contains filtered or unexported methods }
JupyterServerHostServer is the server API for JupyterServerHost service. All implementations must embed UnimplementedJupyterServerHostServer for forward compatibility
type JupyterServerHostServerMock ¶ added in v2.22.1
type JupyterServerHostServerMock struct { // GetRunningServerFunc mocks the GetRunningServer method. GetRunningServerFunc func(contextMoqParam context.Context, getRunningServerRequest *GetRunningServerRequest) (*GetRunningServerResponse, error) // contains filtered or unexported fields }
JupyterServerHostServerMock is a mock implementation of JupyterServerHostServer.
func TestSomethingThatUsesJupyterServerHostServer(t *testing.T) { // make and configure a mocked JupyterServerHostServer mockedJupyterServerHostServer := &JupyterServerHostServerMock{ GetRunningServerFunc: func(contextMoqParam context.Context, getRunningServerRequest *GetRunningServerRequest) (*GetRunningServerResponse, error) { panic("mock out the GetRunningServer method") }, mustEmbedUnimplementedJupyterServerHostServerFunc: func() { panic("mock out the mustEmbedUnimplementedJupyterServerHostServer method") }, } // use mockedJupyterServerHostServer in code that requires JupyterServerHostServer // and then make assertions. }
func (*JupyterServerHostServerMock) GetRunningServer ¶ added in v2.22.1
func (mock *JupyterServerHostServerMock) GetRunningServer(contextMoqParam context.Context, getRunningServerRequest *GetRunningServerRequest) (*GetRunningServerResponse, error)
GetRunningServer calls GetRunningServerFunc.
func (*JupyterServerHostServerMock) GetRunningServerCalls ¶ added in v2.22.1
func (mock *JupyterServerHostServerMock) GetRunningServerCalls() []struct { ContextMoqParam context.Context GetRunningServerRequest *GetRunningServerRequest }
GetRunningServerCalls gets all the calls that were made to GetRunningServer. Check the length with:
len(mockedJupyterServerHostServer.GetRunningServerCalls())
type UnimplementedJupyterServerHostServer ¶
type UnimplementedJupyterServerHostServer struct { }
UnimplementedJupyterServerHostServer must be embedded to have forward compatible implementations.
func (UnimplementedJupyterServerHostServer) GetRunningServer ¶
func (UnimplementedJupyterServerHostServer) GetRunningServer(context.Context, *GetRunningServerRequest) (*GetRunningServerResponse, error)
type UnsafeJupyterServerHostServer ¶
type UnsafeJupyterServerHostServer interface {
// contains filtered or unexported methods
}
UnsafeJupyterServerHostServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JupyterServerHostServer will result in compilation errors.