http

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: 10 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 WithEndpoint

func WithEndpoint(endpoint string) option

func WithHttpClient

func WithHttpClient(httpClient *http.Client) 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

Jump to

Keyboard shortcuts

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