internal

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseConsulDiscovery

func UseConsulDiscovery()

Types

type ConsulDiscovery

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

func (*ConsulDiscovery) GetDiscovery

func (c *ConsulDiscovery) GetDiscovery(moduleName string) *client.ConsulDiscovery

func (*ConsulDiscovery) RegisterDiscovery

func (c *ConsulDiscovery) RegisterDiscovery(moduleName string) *client.ConsulDiscovery

func (*ConsulDiscovery) RegisterServer

func (c *ConsulDiscovery) RegisterServer(ip string) server.Plugin

type IRPCDiscovery

type IRPCDiscovery interface {
	// RegisterServer
	//  @Description: 注册rpcx的服务发现
	//  @param ip 传入注册的本机ip和端口 example: 192.168.1.10:8881
	//  @return server.Plugin 返回的是rpcx所需的插件类型
	RegisterServer(ip string) server.Plugin

	RegisterDiscovery(moduleName string) *client.ConsulDiscovery
	GetDiscovery(moduleName string) *client.ConsulDiscovery
}

IRPCDiscovery @Description: rpc服务注册接口

func GetDiscovery

func GetDiscovery() IRPCDiscovery

type LoginCheck

type LoginCheck struct {
}

func (LoginCheck) CheckLogin

func (l LoginCheck) CheckLogin(token string) (bool, string)

Jump to

Keyboard shortcuts

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