Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
func WithServerCredentials ¶
WithServerCredentials 设置证书和秘钥
func WithServerListenAddr ¶
func WithServerOptions ¶
func WithServerOptions(opts ...grpc.ServerOption) Option
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterService ¶
func (s *Server) RegisterService(sd *grpc.ServiceDesc, ss interface{})
RegisterService 注册服务
Click to show internal directories.
Click to hide internal directories.