setup

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertMarkdownPrimitiveData

func InsertMarkdownPrimitiveData(ctx context.Context, input InsertMarkdownDataInput) error

InsertMarkdownPrimitiveData inserts data from a markdown table into a primitive stream

func SetupComposedFromMarkdown

func SetupComposedFromMarkdown(ctx context.Context, input MarkdownComposedSetupInput) error

func SetupPrimitiveFromMarkdown

func SetupPrimitiveFromMarkdown(ctx context.Context, input MarkdownPrimitiveSetupInput) error

Types

type ComposedStreamDefinition

type ComposedStreamDefinition struct {
	StreamLocator       types.StreamLocator
	TaxonomyDefinitions types.Taxonomy
}

type InitializeContractInput

type InitializeContractInput struct {
	Platform *kwilTesting.Platform
	Deployer util.EthereumAddress
	Dbid     string
	Height   int64
}

type InsertMarkdownDataInput

type InsertMarkdownDataInput struct {
	Platform *kwilTesting.Platform
	Height   int64
	// we use locator instead because it could be a third party data provider
	StreamLocator types.StreamLocator
	MarkdownData  string
}

type InsertPrimitiveDataInput

type InsertPrimitiveDataInput struct {
	Platform *kwilTesting.Platform
	// contains filtered or unexported fields
}

type InsertRecordInput

type InsertRecordInput struct {
	DateValue civil.Date
	Value     string
}

type MarkdownComposedSetupInput

type MarkdownComposedSetupInput struct {
	Platform     *kwilTesting.Platform
	StreamId     string
	MarkdownData string
	// optional. If not provided, each will have a weight of 1
	Weights []string
	Height  int64
}

type MarkdownPrimitiveSetupInput

type MarkdownPrimitiveSetupInput struct {
	Platform     *kwilTesting.Platform
	StreamId     util.StreamId
	Height       int64
	MarkdownData string
}

type PrimitiveStreamDefinition

type PrimitiveStreamDefinition struct {
	StreamLocator types.StreamLocator
}

type PrimitiveStreamWithData

type PrimitiveStreamWithData struct {
	PrimitiveStreamDefinition
	Data []InsertRecordInput
}

type SetTaxonomyInput

type SetTaxonomyInput struct {
	Platform *kwilTesting.Platform
	// contains filtered or unexported fields
}

type SetupComposedAndPrimitivesInput

type SetupComposedAndPrimitivesInput struct {
	ComposedStreamDefinition ComposedStreamDefinition
	PrimitiveStreamsWithData []PrimitiveStreamWithData
	Platform                 *kwilTesting.Platform
	Height                   int64
}

type SetupPrimitiveInput

type SetupPrimitiveInput struct {
	Platform                *kwilTesting.Platform
	Height                  int64
	PrimitiveStreamWithData PrimitiveStreamWithData
}

Jump to

Keyboard shortcuts

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