service

package
v0.0.0-...-1c003c8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name is the name of the compiled software.
	Name string
	// Version is the version of the compiled software.
	Version string
)

go build -ldflags "-X main.Version=x.y.z"

Functions

This section is empty.

Types

type CommonService

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

func (CommonService) Run

func (s CommonService) Run() error

func (CommonService) Stop

func (s CommonService) Stop() error

type Service

type Service interface {
	Run() error
	Stop() error
}

func NewService

func NewService(logger log.Logger, hs *http.Server, gs *grpc.Server, options ...kratos.Option) Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳