celestials

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Changes(ctx context.Context, chainId string, opts ...ChangeOption) (Changes, error)
}

type Change

type Change struct {
	CelestialID string `json:"celestial_id"`
	Address     string `json:"address"`
	ImageURL    string `json:"image_url,omitempty"`
	ChangeID    int64  `json:"change_id"`
	Status      string `json:"status"`
}

type ChangeOption

type ChangeOption func(opts *ChangeOptions)

func WithFromChangeId

func WithFromChangeId(changeId int64) ChangeOption

func WithImages

func WithImages() ChangeOption

func WithLimit

func WithLimit(limit int64) ChangeOption

func WithOnlyHead

func WithOnlyHead() ChangeOption

type ChangeOptions

type ChangeOptions struct {
	Limit        int64  `json:"limit"`
	FromChangeId int64  `json:"from_change_id"`
	OnlyHead     bool   `json:"only_head"`
	Images       bool   `json:"with_images"`
	ChainId      string `json:"chain_id"`
}

type Changes

type Changes struct {
	Head    int64    `json:"head"`
	Changes []Change `json:"changes"`
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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