numbers

package
v0.14.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(logger *zap.Logger) base.IConnector

Types

type CommitCustom

type CommitCustom struct {
	AssetCreator      *string              `json:"assetCreator,omitempty"`
	DigitalSourceType *string              `json:"digitalSourceType,omitempty"`
	MiningPreference  *string              `json:"miningPreference,omitempty"`
	GeneratedThrough  string               `json:"generatedThrough"`
	GeneratedBy       *string              `json:"generatedBy,omitempty"`
	CreatorWallet     *string              `json:"creatorWallet,omitempty"`
	License           *CommitCustomLicense `json:"license,omitempty"`
	Metadata          *struct {
		Pipeline *struct {
			UID    *string     `json:"uid,omitempty"`
			Recipe interface{} `json:"recipe,omitempty"`
		} `json:"pipeline,omitempty"`
		Owner *struct {
			UID *string `json:"uid,omitempty"`
		} `json:"owner,omitempty"`
	} `json:"instillMetadata,omitempty"`
}

type CommitCustomLicense

type CommitCustomLicense struct {
	Name     *string `json:"name,omitempty"`
	Document *string `json:"document,omitempty"`
}

type Connector

type Connector struct {
	base.Connector
}

func (*Connector) CreateExecution

func (c *Connector) CreateExecution(defUID uuid.UUID, task string, config *structpb.Struct, logger *zap.Logger) (base.IExecution, error)

func (*Connector) Test

func (c *Connector) Test(defUID uuid.UUID, config *structpb.Struct, logger *zap.Logger) (pipelinePB.Connector_State, error)

type Execution

type Execution struct {
	base.Execution
}

func (*Execution) Execute

func (e *Execution) Execute(inputs []*structpb.Struct) ([]*structpb.Struct, error)

type Input

type Input struct {
	Images            []string `json:"images"`
	AssetCreator      *string  `json:"asset_creator,omitempty"`
	Caption           *string  `json:"caption,omitempty"`
	Headline          *string  `json:"headline,omitempty"`
	DigitalSourceType *string  `json:"digital_source_type,omitempty"`
	MiningPreference  *string  `json:"mining_preference,omitempty"`
	GeneratedBy       *string  `json:"generated_by,omitempty"`
	License           *struct {
		Name     *string `json:"name,omitempty"`
		Document *string `json:"document,omitempty"`
	} `json:"license,omitempty"`
	Metadata *struct {
		Pipeline *struct {
			UID    *string     `json:"uid,omitempty"`
			Recipe interface{} `json:"recipe,omitempty"`
		} `json:"pipeline,omitempty"`
		Owner *struct {
			UID *string `json:"uid,omitempty"`
		} `json:"owner,omitempty"`
	} `json:"metadata,omitempty"`
}

type Meta

type Meta struct {
	Proof struct {
		Hash      string `json:"hash"`
		MIMEType  string `json:"mimeType"`
		Timestamp string `json:"timestamp"`
	} `json:"proof"`
}

type Output

type Output struct {
	AssetUrls []string `json:"asset_urls"`
}

type Register

type Register struct {
	Caption         *string       `json:"caption,omitempty"`
	Headline        *string       `json:"headline,omitempty"`
	NITCommitCustom *CommitCustom `json:"nit_commit_custom,omitempty"`
	Meta
}

Jump to

Keyboard shortcuts

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