Documentation ¶
Index ¶
- type Server
- func NewServer2(processor thrift.TProcessor, serverTransport thrift.TServerTransport) *Server
- func NewServer4(processor thrift.TProcessor, serverTransport thrift.TServerTransport, ...) *Server
- func NewServer6(processor thrift.TProcessor, serverTransport thrift.TServerTransport, ...) *Server
- func NewServerFactory2(processorFactory thrift.TProcessorFactory, ...) *Server
- func NewServerFactory4(processorFactory thrift.TProcessorFactory, ...) *Server
- func NewServerFactory6(processorFactory thrift.TProcessorFactory, ...) *Server
- func (p *Server) AcceptLoop() error
- func (p *Server) InputProtocolFactory() thrift.TProtocolFactory
- func (p *Server) InputTransportFactory() thrift.TTransportFactory
- func (p *Server) Listen() error
- func (p *Server) OutputProtocolFactory() thrift.TProtocolFactory
- func (p *Server) OutputTransportFactory() thrift.TTransportFactory
- func (p *Server) ProcessorFactory() thrift.TProcessorFactory
- func (p *Server) Serve() error
- func (p *Server) ServerTransport() thrift.TServerTransport
- func (p *Server) SetForwardHeaders(headers []string)
- func (p *Server) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer2 ¶
func NewServer2(processor thrift.TProcessor, serverTransport thrift.TServerTransport) *Server
func NewServer4 ¶
func NewServer4(processor thrift.TProcessor, serverTransport thrift.TServerTransport, transportFactory thrift.TTransportFactory, protocolFactory thrift.TProtocolFactory) *Server
func NewServer6 ¶
func NewServer6(processor thrift.TProcessor, serverTransport thrift.TServerTransport, inputTransportFactory thrift.TTransportFactory, outputTransportFactory thrift.TTransportFactory, inputProtocolFactory thrift.TProtocolFactory, outputProtocolFactory thrift.TProtocolFactory) *Server
func NewServerFactory2 ¶
func NewServerFactory2(processorFactory thrift.TProcessorFactory, serverTransport thrift.TServerTransport) *Server
func NewServerFactory4 ¶
func NewServerFactory4(processorFactory thrift.TProcessorFactory, serverTransport thrift.TServerTransport, transportFactory thrift.TTransportFactory, protocolFactory thrift.TProtocolFactory) *Server
func NewServerFactory6 ¶
func NewServerFactory6(processorFactory thrift.TProcessorFactory, serverTransport thrift.TServerTransport, inputTransportFactory thrift.TTransportFactory, outputTransportFactory thrift.TTransportFactory, inputProtocolFactory thrift.TProtocolFactory, outputProtocolFactory thrift.TProtocolFactory) *Server
func (*Server) AcceptLoop ¶
func (*Server) InputProtocolFactory ¶
func (p *Server) InputProtocolFactory() thrift.TProtocolFactory
func (*Server) InputTransportFactory ¶
func (p *Server) InputTransportFactory() thrift.TTransportFactory
func (*Server) OutputProtocolFactory ¶
func (p *Server) OutputProtocolFactory() thrift.TProtocolFactory
func (*Server) OutputTransportFactory ¶
func (p *Server) OutputTransportFactory() thrift.TTransportFactory
func (*Server) ProcessorFactory ¶
func (p *Server) ProcessorFactory() thrift.TProcessorFactory
func (*Server) ServerTransport ¶
func (p *Server) ServerTransport() thrift.TServerTransport
func (*Server) SetForwardHeaders ¶
SetForwardHeaders sets the list of header keys that will be auto forwarded while using THeaderProtocol.
"forward" means that when the server is also a client to other upstream thrift servers, the context object user gets in the processor functions will have both read and write headers set, with write headers being forwarded. Users can always override the write headers by calling SetWriteHeaderList before calling thrift client functions.
Click to show internal directories.
Click to hide internal directories.