services

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx *app.Context, service Service) error

func StartApp

func StartApp(svc Service, ctx *app.Context)

func StartHTTP

func StartHTTP(svc Service, ctx *app.Context)

Types

type Service

type Service struct {
	Skip   bool   `yaml:"skip"`
	Name   string `yaml:"name"`
	Port   int    `yaml:"port"`
	Type   Type   `yaml:"type"`
	Exec   string `yaml:"exec"`
	Stdout bool   `yaml:"stdout"`
	Stderr bool   `yaml:"stderr"`

	Files     []string
	Responses []*http_results.Result
}

func List

func List(ctx *app.Context) ([]Service, error)

func NewService

func NewService(data []byte) (*Service, error)

type Type

type Type string
const (
	ServiceHTTP Type = "http"
	ServiceApp  Type = "app"
)

Jump to

Keyboard shortcuts

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