grpc

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(params ...interface{}) (interface{}, error)

Types

type ProviderGrpc

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

ProviderGrpc 服务管理

func (*ProviderGrpc) Boot

func (pg *ProviderGrpc) Boot(c framework.Container) error

func (*ProviderGrpc) IsDefer

func (pg *ProviderGrpc) IsDefer() bool

func (*ProviderGrpc) Name

func (pg *ProviderGrpc) Name() string

func (*ProviderGrpc) Params

func (pg *ProviderGrpc) Params(c framework.Container) []interface{}

func (*ProviderGrpc) Register

type Service

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

func (*Service) GetGrpc

func (s *Service) GetGrpc(configPath string, opt ...interface{}) (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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