interfaces

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRpcClientGenerator

func AddRpcClientGenerator(name string, generator interface{})

func SetClusterProxy

func SetClusterProxy(proxy any)

Types

type MethodItem

type MethodItem struct {
	Method string
	HTTP   string
	Auth   int32
	Cmd    int32
}

type MsgDef

type MsgDef interface {
	GetMethodRouter() map[string]*MethodItem
	GetIdMsg() map[int32]*ReqItem
}

type ReqItem

type ReqItem struct {
	Req  func() proto.Message
	Rsp  func() proto.Message
	Auth int32
	Name string
	HTTP string
}

type RpcDiscoverer

type RpcDiscoverer interface {
	NewMeshClient(target string) (gtransport.Client, error)
}

func GetRpcDiscoverer

func GetRpcDiscoverer() RpcDiscoverer

type RpcProvider

type RpcProvider interface {
	AddServiceProvider(name string, desc interface{}, provider interface{})
}

func GetRpcProvider

func GetRpcProvider() RpcProvider

Jump to

Keyboard shortcuts

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