page

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewPageParser)

Functions

This section is empty.

Types

type Content

type Content struct {
	Data interface{} `json:"data"`
	Type string      `json:"type"`
}

type ContentPage

type ContentPage struct {
	// contains filtered or unexported fields
}

func NewContentPage

func NewContentPage(inscriptionUid string) *ContentPage

func (*ContentPage) Parse

func (p *ContentPage) Parse(r io.Reader) (interface{}, error)

func (*ContentPage) URL

func (p *ContentPage) URL() string

type Inscription

type Inscription struct {
	ID            int64     `json:"inscription_id"`
	UID           string    `json:"uid"`
	Address       string    `json:"address,omitempty"`
	OutputValue   uint64    `json:"output_value,omitempty"`
	Content       *Content  `json:"content,omitempty"`
	ContentLength uint64    `json:"content_length,omitempty"`
	ContentType   string    `json:"content_type,omitempty"`
	Timestamp     time.Time `json:"timestamp,omitempty"`
	GenesisHeight uint64    `json:"genesis_height,omitempty"`
	GenesisFee    uint64    `json:"genesis_fee,omitempty"`
	GenesisTx     string    `json:"genesis_tx,omitempty"`
	Location      string    `json:"location,omitempty"`
	Output        string    `json:"output,omitempty"`
	Offset        uint64    `json:"offset,omitempty"`
}

type InscriptionPage

type InscriptionPage struct {
	UID string
}

func NewInscriptionPage

func NewInscriptionPage(uid string) *InscriptionPage

func (*InscriptionPage) Parse

func (p *InscriptionPage) Parse(r io.Reader) (interface{}, error)

func (*InscriptionPage) URL

func (p *InscriptionPage) URL() string

type Inscriptions

type Inscriptions struct {
	UIDs   []string `json:"uids"`
	NextID *int64   `json:"next_id,omitempty"`
	PrevID *int64   `json:"prev_id,omitempty"`
}

type InscriptionsPage

type InscriptionsPage struct {
	ID *int64 `json:"id,omitempty"`
}

func NewInscriptionsPage

func NewInscriptionsPage(id ...int64) *InscriptionsPage

func (*InscriptionsPage) Parse

func (p *InscriptionsPage) Parse(r io.Reader) (interface{}, error)

func (*InscriptionsPage) URL

func (p *InscriptionsPage) URL() string

type Page

type Page interface {
	URL() string
	// Parse parses the page.
	Parse(io.Reader) (interface{}, error)
}

type PageParser

type PageParser interface {
	Parse(Page) (interface{}, error)
}

func NewPageParser

func NewPageParser(c *conf.Ord) PageParser

Jump to

Keyboard shortcuts

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