thriftutils

package module
v0.0.0-...-1ec27b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 6 Imported by: 0

README

thriftutils

Go Thrift utils.

Documentation

Index

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 (p *Server) AcceptLoop() error

func (*Server) InputProtocolFactory

func (p *Server) InputProtocolFactory() thrift.TProtocolFactory

func (*Server) InputTransportFactory

func (p *Server) InputTransportFactory() thrift.TTransportFactory

func (*Server) Listen

func (p *Server) Listen() error

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) Serve

func (p *Server) Serve() error

func (*Server) ServerTransport

func (p *Server) ServerTransport() thrift.TServerTransport

func (*Server) SetForwardHeaders

func (p *Server) SetForwardHeaders(headers []string)

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.

func (*Server) Stop

func (p *Server) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL