micro

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(initializers ...Initializer)

Types

type Initializer

type Initializer func() error

type Service

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

func NewService

func NewService(serviceName string) *Service

NewService 初始化服务注册

func (*Service) Client

func (s *Service) Client() client.Client

func (*Service) Name

func (s *Service) Name() string

func (*Service) Options

func (s *Service) Options() micro.Options

func (*Service) Register

func (s *Service) Register(h interface{})

func (*Service) Run

func (s *Service) Run() error

func (*Service) Server

func (s *Service) Server() server.Server

func (*Service) String

func (s *Service) String() string

func (*Service) Subscribe

func (s *Service) Subscribe(topic string, h interface{})

Jump to

Keyboard shortcuts

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