rpc

package
v0.0.0-...-8c4fe33 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

@Author: Ciusyan 2023/2/8

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserServiceClient

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

UserServiceClient 用户服务的SDJ

func NewUserServiceClientFromCfg

func NewUserServiceClientFromCfg() (*UserServiceClient, error)

NewUserServiceClientFromCfg 从配置文件读取注册中心配置

func NewUserServiceClientFromEnv

func NewUserServiceClientFromEnv() (*UserServiceClient, error)

NewUserServiceClientFromEnv 从环境变量读取注册中心配置

func (*UserServiceClient) RelationService

func (c *UserServiceClient) RelationService() relation.ServiceClient

RelationService 将服务端关系模块完整的接口暴露给外界调用,也可以做精细化控制

func (*UserServiceClient) UserService

func (c *UserServiceClient) UserService() user.ServiceClient

UserService 将服务端用户模块完整的接口暴露给外界调用,也可以做精细化控制

Jump to

Keyboard shortcuts

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