service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 36 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
}

Service 网络服务对象(服务的入口)

func NewService

func NewService(ctx context.Context, l *xlog.Logger) (s *Service, err error)

NewService 创建服务

func (*Service) Close

func (s *Service) Close()

Close closes gracefully the service.,

func (*Service) Listen

func (s *Service) Listen() (err error)

Listen starts the service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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