http

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSignature = errors.New("invalid signature")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(target *url.URL, opts ...ClientOption) *Client

NewClient creates a new http client for the Kwil user service

func (*Client) VerifySignature

func (c *Client) VerifySignature(ctx context.Context, sender []byte, signature *auth.Signature, message []byte) error

type ClientOption

type ClientOption func(*clientOptions)

func WithHTTPClient

func WithHTTPClient(client *http.Client) ClientOption

WithHTTPClient sets the http client for the client. This allows custom http clients to be used.

Jump to

Keyboard shortcuts

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