Documentation ¶
Index ¶
Constants ¶
View Source
const (
MAX_MESSAGE_SIZE_BYTES = 100 * 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpiceClient ¶
type SpiceClient struct {
// contains filtered or unexported fields
}
SpiceClient is a client for Spice.xyz - Data and AI infrastructure for web3 https://spice.xyz For documentation visit https://docs.spice.xyz/sdks/go-sdk
func NewSpiceClientWithAddress ¶
func NewSpiceClientWithAddress(address string) *SpiceClient
func (*SpiceClient) Close ¶
func (c *SpiceClient) Close() error
Close closes the SpiceClient and cleans up resources
func (*SpiceClient) Init ¶
func (c *SpiceClient) Init(apiKey string) error
Init initializes the SpiceClient
func (*SpiceClient) Query ¶
func (c *SpiceClient) Query(ctx context.Context, query string) (array.RecordReader, error)
Query executes a query against Spice.xyz and returns a Apache Arrow RecordReader For more information on Apache Arrow RecordReader visit https://godoc.org/github.com/apache/arrow/go/arrow/array#RecordReader
Click to show internal directories.
Click to hide internal directories.