httpcommandclient

package
v0.0.0-...-2c61642 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Simple client for submitting commands over HTTP

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(baseUrl string, bearerToken string, httpClient *http.Client) *Client

func (*Client) Exec

func (c *Client) Exec(ctx context.Context, cmdStruct command.Command) error

func (*Client) ExecExpectingCreatedRecordId

func (c *Client) ExecExpectingCreatedRecordId(ctx context.Context, cmdStruct command.Command) (string, error)

Jump to

Keyboard shortcuts

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