jupyter

package
v2.49.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_jupyter_jupyter_server_host_service_v1_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Jump to

Keyboard shortcuts

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