es

package module
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: LGPL-3.0 Imports: 7 Imported by: 0

README

es

介绍

easy service 一个应用于go语言的服务框架,宗旨在于使用简单,部署简单,便于组织不同结构类型。 项目目前处于开发阶段

准备
  1. go版本需要>=1.17
  2. 目前版本依赖rpcx做底层通讯所有需要先安装 go get -u github.com/smallnest/rpcx/...
  3. 服务发现使用etcd,请先配置好etcd

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(nodeName, path, method string, params ...interface{}) (*data.Result, error)

Call 调用服务

func GetNodeInfo added in v1.0.5

func GetNodeInfo(nodeName string) (*data.Result, error)

GetNodeInfo 获取节点信息

func InitES

func InitES(configFile ...string) error

InitES 初始化es

func Reg

func Reg(servicePath string, serviceInstance interface{})

Reg 注册本地服务

func StartNode

func StartNode()

StartNode 启动服务节点,此方法为阻塞方法,地用后服务会启动,不会有返回

Types

This section is empty.

Directories

Path Synopsis
cmd
Package node 文件包括本地服务(服务节点)的所有注册服务和远程调用本地服务的相应处理方法
Package node 文件包括本地服务(服务节点)的所有注册服务和远程调用本地服务的相应处理方法

Jump to

Keyboard shortcuts

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