rw

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClientPrivateKey

func WithClientPrivateKey(pk bcrypt.NoisePrivateKey) option

func WithOpen

func WithOpen(open OpenFunc) option

func WithServerPublicKey

func WithServerPublicKey(pk bcrypt.NoisePublicKey) option

Types

type Client

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

func NewClient

func NewClient(opts ...option) *Client

func (*Client) Call

func (c *Client) Call(serviceName string, req any, resp any) error

func (*Client) CallContext

func (c *Client) CallContext(ctx context.Context, serviceName string, req any, resp any) error

type OpenFunc

type OpenFunc = func() (io.ReadWriteCloser, error)

Jump to

Keyboard shortcuts

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