gqlmgmt

package
v0.0.0-...-40bead5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: NIST-PD-fallback Imports: 13 Imported by: 1

Documentation

Overview

Package gqlmgmt provides access to NDN-DPDK GraphQL API.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFaceClosed = errors.New("face is closed")
)

Error conditions.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gqlclient.Client
}

Client provides access to NDN-DPDK GraphQL API.

func New

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

New creates a Client.

func (*Client) CreateFace

func (c *Client) CreateFace(ctx context.Context, locator any) (id string, e error)

CreateFace requests to create a face via GraphQL.

func (*Client) OpenFace

func (c *Client) OpenFace() (mgmt.Face, error)

OpenFace invokes OpenMemif with default settings.

func (*Client) OpenMemif

func (c *Client) OpenMemif(loc memiftransport.Locator) (mgmt.Face, error)

OpenMemif creates a face connected to the current application using memif transport. If loc.SocketName is empty:

  • loc.SocketName and loc.ID are automatically assigned
  • loc.SocketOwner is set to current uid:gid

Jump to

Keyboard shortcuts

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