rpc

package
v0.0.0-...-c820190 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataFactoryOr

func GetDataFactoryOr(options *options.RegistryOptions) (data.DataFactory, error)

GetDataFactoryOr rpc的连接,基于服务发现

func NewDiscovery

func NewDiscovery(opts *options.RegistryOptions) (registry.Discovery, error)

NewDiscovery 目前是基于consul实现的 以后想换成nocos etcd等 可以直接在这换

func NewUser

func NewUser(uc upbv1.UserClient) *user

func NewUserServiceClient

func NewUserServiceClient(r registry.Discovery) (upbv1.UserClient, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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