client

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 4 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 NewClient

func NewClient(url string, httpClient *http.Client) *Client

func (*Client) Do

func (cl *Client) Do(ctx context.Context, res any, doc string, vars map[string]any) error

func (*Client) Subscribe

func (cl *Client) Subscribe(ctx context.Context, newRes func() any, doc string, vars map[string]any) api.Subscription

type Connection

type Connection struct {
	Client
}

func (*Connection) Shutdown

func (conn *Connection) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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