# Package google.golang.org/appengine/v2/module (v2.0.6)

> [!NOTE]
> **Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/google.golang.org/appengine/v2/module).

<br />

Package module provides functions for interacting with modules.

The appengine package contains functions that report the identity of the app,
including the module name.

## Functions

### func DefaultVersion

    func DefaultVersion(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module https://pkg.go.dev/builtin#string) (https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)

DefaultVersion returns the default version of the specified module.
If module is the empty string, it means the default module.

### func List

    func List(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context) ([]https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)

List returns the names of modules belonging to this application.

### func NumInstances

    func NumInstances(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) (https://pkg.go.dev/builtin#int, https://pkg.go.dev/builtin#error)

NumInstances returns the number of instances of the given module/version.
If either argument is the empty string it means the default. This only works
if you are using manual_scaling in your app's config file.

### func SetNumInstances

    func SetNumInstances(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string, instances https://pkg.go.dev/builtin#int) https://pkg.go.dev/builtin#error

SetNumInstances sets the number of instances of the given module.version to the
specified value. If either module or version are the empty string it means the
default.

### func Start

    func Start(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#error

Start starts the specified version of the specified module.
If either module or version are the empty string, it means the default.

### func Stop

    func Stop(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#error

Stop stops the specified version of the specified module.
If either module or version are the empty string, it means the default.

### func Versions

    func Versions(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module https://pkg.go.dev/builtin#string) ([]https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)

Versions returns the names of the versions that belong to the specified module.
If module is the empty string, it means the default module.