common

package
v0.0.0-...-d047852 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ARWEAVE_URL             = "https://arweave.net"
	ARWEAVE_URL             = "https://node2.irys.xyz"
	TX_APP_CONTENT_TYPE     = "application/json"
	TX_APP_VERSION          = "0.0.4"
	TX_APP_NAME             = "VeracyApp"
	TX_TYPE_POST            = "post"
	TX_TYPE_PAYMENT         = "payment"
	TX_POST_PRIVACY_PRIVATE = "PRIVATE"
	TX_POST_PRIVACY_PUBLIC  = "PUBLIC"
	TX_POST_TYPE_IMG        = "IMG"
	TX_POST_TYPE_TEXT       = "TEXT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArQueryResult

type ArQueryResult struct {
	Data Data `json:"data"`
}

type Data

type Data struct {
	Transactions Transactions `json:"transactions"`
}

type Edge

type Edge struct {
	Node Node `json:"node"`
}

type Node

type Node struct {
	ID        string `json:"id"`
	Recipient string `json:"recipient"`
	Owner     Owner  `json:"owner"`
}

type Owner

type Owner struct {
	Address string `json:"address"`
}

type Post

type Post struct {
	ID       string        `json:"id"`
	Content  []PostContent `json:"content"`
	Title    *string       `json:"title,omitempty"`
	Tags     *[]string     `json:"tags,omitempty"`
	Uploader string        `json:"uploader"`
	Price    *int32        `json:"price,omitempty"`
}

type PostContent

type PostContent struct {
	Type    string  `json:"type"`
	Privacy string  `json:"privacy"`
	Data    string  `json:"data"`
	Align   *string `json:"align,omitempty"`
}

type Transactions

type Transactions struct {
	Edges []Edge `json:"edges"`
}

Jump to

Keyboard shortcuts

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