example

package
v0.0.0-...-47becbb Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetProducts = func(ctx context.Context, httpClient *http.HttpClient, productId string) ([]byte, error) {
	return httpClient.Get(ctx, fmt.Sprintf("products/%s", productId))
}
View Source
var UpdateSystemMessage = func(releaseClient *openapi.APIClient, systemMessage openapi.SystemMessageSettings) (*openapi.SystemMessageSettings, *http.Response, error) {
	return releaseClient.ConfigurationApi.UpdateSystemMessage(context.TODO()).SystemMessageSettings(systemMessage).Execute()
}

Functions

func Hello

func Hello(yourName string) (*task.Result, error)

Hello Creates a greeting based on a message

func ListNames

func ListNames() (*task.Result, error)

ListNames lists names as array of lookup result elements

func ServerQuery

func ServerQuery(ctx context.Context, httpClient *http.HttpClient, productId string) (*task.Result, error)

ServerQuery Fetches product details from a remote server

func SetSystemMessage

func SetSystemMessage(releaseClient *openapi.APIClient, message string) (*task.Result, error)

SetSystemMessage Sets the system message in the Release UI by invoking the API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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