client

package
v0.0.0-...-cda3813 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(tclient ithrift.TClient, opts ...Option) icalc.CalculatorService

New returns an CalculatorService backed by a Thrift client at the other end of the conn.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

A Option sets options to config.

func WithAfter

func WithAfter(
	after ...iconcertothrift.ClientResponseFunc,
) Option

func WithBefore

func WithBefore(
	before ...iconcertothrift.ClientRequestFunc,
) Option

func WithFinalizer

func WithFinalizer(fn ...iconcertothrift.ClientFinalizerFunc) Option

func WithMiddlewares

func WithMiddlewares(
	middlewares ...ikitendpoint.Middleware,
) Option

func WithRegistry

func WithRegistry(registry *icalculatorthrift.Registry) Option

Jump to

Keyboard shortcuts

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