Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Block ¶
func Block() grpc.DialOption
func Insecure ¶
func Insecure() grpc.DialOption
func MustNewClientConn ¶ added in v0.1.3
MustNewClientConn 新建一个 Client 实例
Types ¶
type COption ¶
type COption func(*clientOption)
func WithClientInterceptor ¶ added in v0.1.3
func WithClientInterceptor(clientInterceptor ...grpc.UnaryClientInterceptor) COption
func WithDialOption ¶
func WithDialOption(opts ...grpc.DialOption) COption
type RegisterServer ¶
type SOption ¶
type SOption func(*serverOption)
func WithServerInterceptor ¶ added in v0.1.3
func WithServerInterceptor(serverInterceptor ...grpc.UnaryServerInterceptor) SOption
WithServerInterceptor 生成服务端拦截器
func WithServerOption ¶
func WithServerOption(opts ...grpc.ServerOption) SOption
WithServerOption 通过 grpc.ServerOption 生成 SOption
type Server ¶
type Server struct { ServiceInstance *register.ServiceInstance // contains filtered or unexported fields }
func MustNewServer ¶
Click to show internal directories.
Click to hide internal directories.