service

package
v0.36.0 Latest Latest
Warning

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

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

Documentation

Overview

Package service implements the gRPC API declared in ../../../proto/step.proto

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorOnPanic added in v0.33.0

func ErrorOnPanic() []grpc.ServerOption

ErrorOnPanic returns grpc.ServerOption values that wire up panic recovery interceptors.

func WithExecutor added in v0.6.0

func WithExecutor(executor func(delegate func())) func(service *StepRunnerService)

Types

type PanicError added in v0.33.0

type PanicError struct {
	Method string
	Value  any
	Stack  []byte
}

PanicError represents a recovered panic with its stack trace.

func (*PanicError) Error added in v0.33.0

func (e *PanicError) Error() string

func (*PanicError) GRPCStatus added in v0.33.0

func (e *PanicError) GRPCStatus() *status.Status

GRPCStatus returns a gRPC status so the error is transmitted as codes.Internal over the wire.

type StepRunnerService

type StepRunnerService struct {
	proto.StepRunnerServer
	// contains filtered or unexported fields
}

StepRunnerService implements the gRPC StepRunner service.

func New

func New(stepParser runner.StepParser, env *runner.Environment, options ...func(*StepRunnerService)) *StepRunnerService

func (*StepRunnerService) Cancel added in v0.35.0

func (*StepRunnerService) Close

func (*StepRunnerService) FollowLogs

func (*StepRunnerService) Run

func (s *StepRunnerService) Run(ctx context.Context, request *proto.RunRequest) (response *proto.RunResponse, err error)

Run parses, prepares, and initiates execution of a RunRequest.

func (*StepRunnerService) Status

Jump to

Keyboard shortcuts

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