Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCircuits ¶
func SetCircuits(circuits []string)
SetCircuits 设置需要熔断的接口(不需要append是因为列表是确定的不会运行中添加,所以无需动态添加)
Types ¶
type Conn ¶ added in v1.0.1
type Conn struct {
*grpc.ClientConn
}
type HandlerFunc ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server 服务端
func NewGrpc ¶
func NewGrpc(serverName, address string, port int, handlerFunc HandlerFunc) *Server
NewGrpc 构造函数
func (*Server) ServiceInstance ¶
func (s *Server) ServiceInstance() *register.ServiceInstance
ServiceInstance 获取服务实例(服务注册与发现)
Click to show internal directories.
Click to hide internal directories.