client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BlueOak-1.0.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

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

func (*Client) Connect

func (c *Client) Connect(ctx context.Context) (_ *sync.WaitGroup, err error)

func (*Client) Request

func (c *Client) Request(msg *msgjson.Message, respHandler func(*msgjson.Message)) error

func (*Client) Send

func (c *Client) Send(msg *msgjson.Message) error

type Config

type Config struct {
	Logger        dex.Logger
	URL           string
	Cert          []byte
	PrivateKey    *secp256k1.PrivateKey
	HandleMessage func(*msgjson.Message) *msgjson.Error
}

Jump to

Keyboard shortcuts

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