service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

* @Author: reel * @Date: 2023-05-16 21:09:14 * @LastEditors: reel * @LastEditTime: 2023-09-09 20:55:19 * @Description: 请填写简介

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(service Service)

func Restart

func Restart()

func Start

func Start() error

func Status

func Status() (srvStatus []map[string]interface{})

func Stop

func Stop() error

Types

type Service

type Service interface {
	Start() error
	Stop() error
	Name() string
	Status() int8
}

func Assertion

func Assertion(p interface{}) (srv Service, err error)

func NewServices

func NewServices() []Service

Jump to

Keyboard shortcuts

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