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 ¶
func ValidateBaseUrl ¶ added in v0.7.1
Types ¶
type GraphQLError ¶ added in v0.12.0
GraphQLError indicates the GraphQL request succeeded, but there's a user error. The request should not be retried, because the error is due to the user's input.
func (GraphQLError) Error ¶ added in v0.12.0
func (e GraphQLError) Error() string
type GraphQLInternalError ¶ added in v0.12.0
type GraphQLInternalError struct {
Message string
}
GraphQLInternalError indicates there's a failure in the Lightspark API. It could be due to a bug on Ligthspark's side. The request can be retried, because the error might be transient.
func (GraphQLInternalError) Error ¶ added in v0.12.0
func (e GraphQLInternalError) Error() string
type RequestError ¶ added in v0.12.0
RequestError indicates that a request to the Lightspark API failed. It could be due to a service outage or a network error. The request should be retried if RequestError is returned with server errors (500-599).
func (RequestError) Error ¶ added in v0.12.0
func (e RequestError) Error() string
type Requester ¶
type Requester struct { ApiTokenClientId string ApiTokenClientSecret string BaseUrl *string HTTPClient *http.Client }
func NewRequester ¶ added in v0.7.1
func NewRequesterWithBaseUrl ¶ added in v0.7.1
func (*Requester) ExecuteGraphql ¶
func (*Requester) ExecuteGraphqlWithContext ¶ added in v0.13.0
type RsaSigningKey ¶
type RsaSigningKey struct {
PrivateKey []byte
}
type Secp256k1SigningKey ¶
type Secp256k1SigningKey struct {
PrivateKey []byte
}
type SigningKey ¶
Click to show internal directories.
Click to hide internal directories.