eventkit: github.com/function61/eventkit/httpcommandclient Index | Files

package httpcommandclient

import "github.com/function61/eventkit/httpcommandclient"

Simple client for submitting commands over HTTP

Index

Package Files

client.go

type Client Uses

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

func New Uses

func New(baseUrl string, bearerToken string, httpClient *http.Client) *Client

func (*Client) Exec Uses

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

func (*Client) ExecExpectingCreatedRecordId Uses

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

Package httpcommandclient imports 6 packages (graph) and is imported by 1 packages. Updated 2020-10-12. Refresh now. Tools for package owners.