srv

package
v1.0.7 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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVICE_ABI_DB = "abi-db"
)

Variables

This section is empty.

Functions

func Reg

func Reg(s *grpc.Server)

Types

type DBService

type DBService struct {
	Driver string `json:"driver"`
	// contains filtered or unexported fields
}

func GetDBService

func GetDBService(ctx micro.Context, name string) (*DBService, error)

func (*DBService) Config

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

* * 服务配置 *

func (*DBService) Name

func (s *DBService) Name() string

* * 服务名称 *

func (*DBService) OnInit

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

* * 初始化服务 *

func (*DBService) OnValid

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

* * 校验服务是否可用 *

func (*DBService) Recycle

func (s *DBService) Recycle()

Jump to

Keyboard shortcuts

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