subrequests

package
v0.9.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RequestSubrequestsDescribe = "frontend.subrequests.describe"

Variables

View Source
var SubrequestsDescribeDefinition = Request{
	Name:        RequestSubrequestsDescribe,
	Version:     "1.0.0",
	Type:        TypeRPC,
	Description: "List available subrequest types",
	Metadata: []Named{
		{
			Name: "result.json",
		},
	},
}

Functions

This section is empty.

Types

type Named

type Named struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Request

type Request struct {
	Name        string      `json:"name"`
	Version     string      `json:"version"`
	Type        RequestType `json:"type"`
	Description string      `json:"description"`
	Opts        []Named     `json:"opts"`
	Inputs      []Named     `json:"inputs"`
	Metadata    []Named     `json:"metadata"`
	Refs        []Named     `json:"refs"`
}

func Describe

func Describe(ctx context.Context, c client.Client) ([]Request, error)

type RequestType

type RequestType string
const TypeRPC RequestType = "rpc"

Jump to

Keyboard shortcuts

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