requester

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved

Index

Constants

View Source
const DEFAULT_BASE_URL = "https://api.lightspark.com/graphql/server/2023-09-13"

Variables

This section is empty.

Functions

This section is empty.

Types

type Requester

type Requester struct {
	ApiTokenClientId string

	ApiTokenClientSecret string

	BaseUrl *string
}

func (*Requester) ExecuteGraphql

func (r *Requester) ExecuteGraphql(query string, variables map[string]interface{},
	signingKey SigningKey) (map[string]interface{}, error)

type RsaSigningKey

type RsaSigningKey struct {
	PrivateKey []byte
}

func (*RsaSigningKey) Sign

func (s *RsaSigningKey) Sign(payload []byte) ([]byte, error)

type Secp256k1SigningKey

type Secp256k1SigningKey struct {
	MasterSeedBytes []byte
	Network         lightspark_crypto.BitcoinNetwork
}

func (*Secp256k1SigningKey) Sign

func (s *Secp256k1SigningKey) Sign(payload []byte) ([]byte, error)

type SigningKey

type SigningKey interface {
	Sign(payload []byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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