package
0.0.7
Repository: https://github.com/deploifai/sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewAPI calls NewGenericAPI[generated.GQLClient] function with generated.NewClient as the first argument.
NewGenericAPI takes a NewGQLClientFunc, a gqlEndpoint for the GQLClient, a restEndpoint for the RestClient, and request headers.
WithAuthHeader returns a RequestHeader with the key "Authorization" and the value of the authToken.
WithContentType returns a RequestHeader with the key "Content-Type" and the string value of the contentType enum.

# Constants

ContentTypeJson is the content type for a request with a json body in utf-8.

# Structs

GenericAPI is a generic api client that uses a generated GQLClient and a default http RestClient.
RequestHeader defines a request header for a http request.
RestClient defines the interface for the default http client.

# Interfaces

GenericProvider is an interface for an api instance.
GQLClient defines the interface for the generated graphQL client.

# Type aliases

ContentType is an enum for the content type of a request.
NewGQLClientFunc defines the signature of the generated function that creates a new GQLClient.
RequestHeaders defines a list of RequestHeader(s).