service

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(ctx micro.Context, name string) (*client.Client, error)

Types

type ClientService

type ClientService struct {
	Addr string `json:"addr"`
	// contains filtered or unexported fields
}

func (*ClientService) Config

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

* * 服务配置 *

func (*ClientService) Name

func (s *ClientService) Name() string

* * 服务名称 *

func (*ClientService) OnInit

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

* * 初始化服务 *

func (*ClientService) OnValid

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

* * 校验服务是否可用 *

func (*ClientService) Recycle

func (s *ClientService) Recycle()

Jump to

Keyboard shortcuts

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