handler

package
v0.0.0-...-84f9617 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OffAccMessageHandler

func OffAccMessageHandler(msg *message.MixMessage) *message.Reply

Types

type Microservice

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

Microservice 该微服务的结构

func NewMicroservice

func NewMicroservice(lc *cfg.LocalConfig) (*Microservice, error)

NewMicroservice 全局只实例化一次

func (Microservice) Demo

Demo test

func (Microservice) HealthCheck

HealthCheck 用于健康检测

func (*Microservice) Register

func (m *Microservice) Register(ctx context.Context) error

Register 用于服务启动前环境准备

func (*Microservice) Shutdown

func (m *Microservice) Shutdown(ctx context.Context) error

Shutdown 优雅关闭gRPC与HTTP服务

Jump to

Keyboard shortcuts

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