runtimehost

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DashboardAddr

func DashboardAddr(value string, allowNonLoopback bool) (string, error)

func DefaultDBPath

func DefaultDBPath() string

func NewSessionID

func NewSessionID() string

func ResolveMode

func ResolveMode(value string) (guardhookruntime.Mode, error)

Types

type Host

type Host struct {
	SessionID             string
	SessionDir            string
	SocketPath            string
	DBPath                string
	DashboardURL          string
	DashboardErr          error
	LocalJudgeStatus      string
	LocalJudgeEnabled     bool
	LocalJudgeUnavailable bool
	Mode                  guardhookruntime.Mode
	// contains filtered or unexported fields
}

func Start

func Start(ctx context.Context, opts Options) (*Host, error)

func (*Host) Close

func (h *Host) Close(ctx context.Context) error

type Options

type Options struct {
	AgentName                 string
	SessionID                 string
	CWD                       string
	DBPath                    string
	SocketPath                string
	DashboardAddr             string
	StartDashboard            bool
	AllowNonLoopbackDashboard bool
	JudgeConfigFromEnv        bool
	JudgeManagedDefault       bool
	JudgeDownloadProgress     judge.DownloadProgressHandler
	Mode                      string
	Diagnostic                diagnostic.Logger
	Out                       io.Writer
}

Jump to

Keyboard shortcuts

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