media

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandEnv

type CommandEnv func(extra map[string]string) ([]string, error)

type ControlPath

type ControlPath struct {
	Abs     string
	Display string
}

type Result

type Result = toolcore.Result

type Service

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

func New

func New(cfg config.Config, ws *workspace.Workspace, commandEnv CommandEnv) *Service

func (*Service) BrowserCall

func (s *Service) BrowserCall(ctx context.Context, operation string, args map[string]any) (Result, error)

func (*Service) BrowserRunnerScript

func (s *Service) BrowserRunnerScript() (ControlPath, error)

func (*Service) FilePublish

func (s *Service) FilePublish(ctx context.Context, args map[string]any) (Result, error)

func (*Service) Session

func (s *Service) Session(ctx context.Context, args map[string]any) (Result, error)

func (*Service) ViewImage

func (s *Service) ViewImage(ctx context.Context, args map[string]any) (Result, error)

type ToolError

type ToolError = toolcore.ToolError

Jump to

Keyboard shortcuts

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