server

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance(ctx context.Context, endpoint string, projectID uint64, executeBinary string, expParam string) (*Instance, error)

func (*Instance) Execute

func (i *Instance) Execute(ctx context.Context, task *types.Task) ([]byte, error)

func (*Instance) Release

func (i *Instance) Release()

type Mgr

type Mgr struct {
	// contains filtered or unexported fields
}

func NewMgr

func NewMgr() *Mgr

func (*Mgr) Acquire

func (m *Mgr) Acquire(projectID uint64, endpoint string, code string, expParam string) (*Instance, error)

func (*Mgr) Release

func (m *Mgr) Release(projectID uint64, i *Instance)

Jump to

Keyboard shortcuts

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