Documentation ¶
Index ¶
- func ChainUnaryServer(interceptors ...grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor
- func EtcdRegister(etcdHost, serviceName, addr string, ttl int64) error
- func EtcdUnRegister(serviceName, addr string) error
- func LogUnaryServerInterceptor() grpc.UnaryServerInterceptor
- func NewClient(tls *Tls, addr string, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error)
- type Server
- type Tls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChainUnaryServer ¶
func ChainUnaryServer(interceptors ...grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor
ChainUnaryServer 链式一元拦截器(多拦截器)
func EtcdRegister ¶
EtcdRegister etcd注册
func LogUnaryServerInterceptor ¶
func LogUnaryServerInterceptor() grpc.UnaryServerInterceptor
LogUnaryServerInterceptor 日志拦截器
func NewClient ¶
func NewClient(tls *Tls, addr string, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error)
NewClient 构造rpc客户端
Types ¶
Click to show internal directories.
Click to hide internal directories.