service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

type ServiceContainer

type ServiceContainer struct {
	Services sync.Map
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(ctx context.Context) *ServiceContainer

func (*ServiceContainer) Serve

func (self *ServiceContainer) Serve() error

func (*ServiceContainer) StartService

func (self *ServiceContainer) StartService(name string, service gira.Service) error

启动服务

func (*ServiceContainer) Stop

func (self *ServiceContainer) Stop() error

停止服务并等待

func (*ServiceContainer) StopService

func (self *ServiceContainer) StopService(service gira.Service) error

停止服务

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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