client

package
v1.20.59 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Zlib Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransInvalidateERR = fmt.Errorf("transport invalidate")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) FramedTransport

func (c *Client) FramedTransport()

func (*Client) In

func (c *Client) In() thrift.TProtocol

func (*Client) IsOpen

func (c *Client) IsOpen() bool

func (*Client) Open

func (c *Client) Open() error

func (*Client) Out

func (c *Client) Out() thrift.TProtocol

func (*Client) SetHeader

func (c *Client) SetHeader(headers map[string]string)

func (*Client) TClient

func (c *Client) TClient() thrift.TClient

type Config

type Config struct {
	Target   string `json:"target"`
	Protocol string `json:"protocol"`
}

type Pool

type Pool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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