Documentation
¶
Index ¶
- func HTTPRegisterFunc(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) error
- type GRPCRegister
- type HTTPRegister
- type Server
- func (s *Server) AddGRPCMiddleware(interceptor grpc.UnaryServerInterceptor)
- func (s *Server) AddHTTPHandle(pattern string, handler http.Handler)
- func (s *Server) AddHTTPHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (s *Server) AddHTTPMiddleware(middleware func(next http.Handler) http.Handler)
- func (s *Server) AddHTTPServeMuxOption(option runtime.ServeMuxOption)
- func (s *Server) Run() error
- func (s *Server) SetGRPCHandlerTimeout(t int)
- func (s *Server) SetGRPCIp(ip string)
- func (s *Server) SetGRPCPort(port string)
- func (s *Server) SetGRPCRegister(register GRPCRegister)
- func (s *Server) SetGatewayPattern(pattern string)
- func (s *Server) SetHTTPHandlerTimeout(t int)
- func (s *Server) SetHTTPIdleTimeout(t int)
- func (s *Server) SetHTTPIp(ip string)
- func (s *Server) SetHTTPPort(port string)
- func (s *Server) SetHTTPReadTimeout(t int)
- func (s *Server) SetHTTPRegister(register HTTPRegister)
- func (s *Server) SetHTTPWriteTimeout(t int)
- func (s *Server) SetHttpQuitTimeout(t int)
- func (s *Server) SetMaxConnectionIdle(t int)
- func (s *Server) SetMaxMsgSize(size int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPRegisterFunc ¶
func HTTPRegisterFunc(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption, registerFunc ...HTTPRegister) error
Types ¶
type GRPCRegister ¶
type HTTPRegister ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddGRPCMiddleware ¶
func (s *Server) AddGRPCMiddleware(interceptor grpc.UnaryServerInterceptor)
AddGRPCMiddleware add gRPC middleware
func (*Server) AddHTTPHandle ¶
AddHTTPHandle add http handle
func (*Server) AddHTTPHandleFunc ¶
func (s *Server) AddHTTPHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
AddHTTPHandleFunc add http handle func
func (*Server) AddHTTPMiddleware ¶
AddHTTPMiddleware add http middleware
func (*Server) AddHTTPServeMuxOption ¶
func (s *Server) AddHTTPServeMuxOption(option runtime.ServeMuxOption)
AddHTTPServeMuxOption add http serve mux option
func (*Server) SetGRPCHandlerTimeout ¶
func (*Server) SetGRPCRegister ¶
func (s *Server) SetGRPCRegister(register GRPCRegister)
SetGRPCRegister register grpc handler
func (*Server) SetGatewayPattern ¶
SetGatewayPattern set gateway pattern
func (*Server) SetHTTPHandlerTimeout ¶
SetHTTPHandlerTimeout set http handler timeout
func (*Server) SetHTTPIdleTimeout ¶
SetHTTPIdleTimeout set http idle timeout
func (*Server) SetHTTPReadTimeout ¶
SetHTTPReadTimeout set http read timeout
func (*Server) SetHTTPRegister ¶
func (s *Server) SetHTTPRegister(register HTTPRegister)
SetHTTPRegister set http register
func (*Server) SetHTTPWriteTimeout ¶
SetHTTPWriteTimeout set http read timeout
func (*Server) SetHttpQuitTimeout ¶
SetHttpQuitTimeout set http quit timeout
func (*Server) SetMaxConnectionIdle ¶
SetMaxConnectionIdle set max connection idle
func (*Server) SetMaxMsgSize ¶
SetMaxMsgSize set max msg size
Click to show internal directories.
Click to hide internal directories.