srv

package
v0.0.0-...-4ef9267 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVICE_ABI_MQ = "abi-mq"
)

Variables

This section is empty.

Functions

func GetMQSource

func GetMQSource(ctx micro.Context, name string) (source.Source, error)

func Reg

func Reg(s *grpc.Server)

Types

type MQService

type MQService struct {
	Driver string        `json:"driver"`
	Source source.Source `json:"-"`
	// contains filtered or unexported fields
}

func GetMQService

func GetMQService(ctx micro.Context, name string) (*MQService, error)

func (*MQService) Config

func (s *MQService) Config() interface{}

* * 服务配置 *

func (*MQService) Name

func (s *MQService) Name() string

* * 服务名称 *

func (*MQService) OnInit

func (s *MQService) OnInit(ctx micro.Context) error

* * 初始化服务 *

func (*MQService) OnValid

func (s *MQService) OnValid(ctx micro.Context) error

* * 校验服务是否可用 *

func (*MQService) Recycle

func (s *MQService) Recycle()

Jump to

Keyboard shortcuts

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