Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) DiscardChanges() (bool, error)
- func (c *Client) GetEndpoint() string
- func (c *Client) GetHost() string
- func (c *Client) GetToken() string
- func (c *Client) InfinityPortalAuthentication(clientId string, accessKey string) error
- func (c *Client) MakeGraphQLRequest(gql, responseKey string, vars ...map[string]any) (any, error)
- func (c *Client) PublishChanges() (bool, error)
- func (c *Client) SetEndpoint(endpoint string)
- func (c *Client) SetHost(host string)
- func (c *Client) SetToken(token string)
- type GraphError
- type GraphErrorExtension
- type GraphQLRequest
- type GraphResponse
- type RetryErrorResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorNotFound error = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DiscardChanges ¶
func (*Client) GetEndpoint ¶
func (*Client) InfinityPortalAuthentication ¶
func (*Client) MakeGraphQLRequest ¶
func (*Client) PublishChanges ¶
func (*Client) SetEndpoint ¶
type GraphError ¶
type GraphError struct {
Message string `json:"message,omitempty"`
Path []string `json:"path,omitempty"`
Extensions *GraphErrorExtension `json:"extensions,omitempty"`
}
type GraphErrorExtension ¶
type GraphQLRequest ¶
type GraphResponse ¶
type GraphResponse struct {
Data any `json:"data"`
Errors []GraphError `json:"errors,omitempty"`
}
type RetryErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.