Documentation ¶
Index ¶
- func New(endpoints *icalculatorendpoint.Set, opts ...Option) ithriftgen.CalculatorService
- type Option
- func WithAfter(after ...iconcertothrift.ServerResponseFunc) Option
- func WithBefore(before ...iconcertothrift.ServerRequestFunc) Option
- func WithErrorHandler(errorHandler ikittransport.ErrorHandler) Option
- func WithFinalizer(fn ...iconcertothrift.ServerFinalizerFunc) Option
- func WithRegistry(registry *icalculatorthrift.Registry) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(endpoints *icalculatorendpoint.Set, opts ...Option) ithriftgen.CalculatorService
New makes a set of endpoints available as a Thrift service.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
A Option sets options to config.
func WithAfter ¶
func WithAfter( after ...iconcertothrift.ServerResponseFunc, ) Option
func WithBefore ¶
func WithBefore( before ...iconcertothrift.ServerRequestFunc, ) Option
func WithErrorHandler ¶
func WithErrorHandler(errorHandler ikittransport.ErrorHandler) Option
func WithFinalizer ¶
func WithFinalizer(fn ...iconcertothrift.ServerFinalizerFunc) Option
func WithRegistry ¶
func WithRegistry(registry *icalculatorthrift.Registry) Option
Click to show internal directories.
Click to hide internal directories.