runway

package
v0.0.0-...-090a321 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

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(cfg *Config) *Client

func (*Client) DeleteAsset

func (c *Client) DeleteAsset(ctx context.Context, id string) error

TODO: Delete asset by url instead

func (*Client) Generate

func (c *Client) Generate(ctx context.Context, imageURL, textPrompt string, interpolate, upscale, watermark bool) (string, error)

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, name string, data []byte) (string, error)

type Config

type Config struct {
	Token  string
	Wait   time.Duration
	Debug  bool
	Client *http.Client
}

Jump to

Keyboard shortcuts

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