package
3.1.0+incompatible
Repository: https://github.com/dstdfx/go-gcore.git
Documentation: pkg.go.dev

# Functions

BuildQueryParameters converts provided options struct to the string of URL parameters.
ExtractResult reads response body and unmarshal it to given interface.
IntPtr returns pointer to int.
NewCommonClient creates basic G-Core client.
NewCommonClientWithCustomHTTP creates basic G-Core client with custom HTTP client.
NewHTTPClient returns a reference to an initialized HTTP client with configured timeouts.
NewResellerClient creates reseller G-Core client.
NewResellerClientWithCustomHTTP creates reseller G-Core client with custom HTTP client.
NewTime returns new instance of Time.
StringPtr returns pointer to string.

# Constants

The list of the possible values for the AllowedHTTPMethods option.
The list of the possible values for the AllowedHTTPMethods option.
The list of the possible values for the AllowedHTTPMethods option.
The list of the possible values for the AllowedHTTPMethods option.
The list of the possible values for the AllowedHTTPMethods option.
The list of the possible values for the AllowedHTTPMethods option.
The list of the possible values for the AllowedHTTPMethods option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.
The list of the possible values for Stale option.

# Structs

Account represents G-Core's account info.
AddCertBody represents SSL certificate body for add certificate.
AllowedHTTPMethods is the list of allowed HTTP methods.
AuthOptions is G-Core account credentials.
CacheExpire specifies cache expiration time in seconds.
CacheHTTPHeaders is list HTTP Headers that must be included in the response.
CertSSL represents G-Core's CertSSL certificate.
Client manages communication with G-Core CDN API.
ClientAccount represents G-Core's client account.
CommonClient represents API of basic G-Core account.
CommonServices represent specific account type features.
CORS option allows you to add Access-Control-Allow-Origin for the specified domains or for all domains.
CountryACL specifies control access to the content for specified countries.
CreateClientBody represents request body for create client.
CreateOriginGroupBody represents request body for origin group create.
CreateResourceBody represents request body for resource create.
CreateRuleBody represents request body for rule create.
DisableCache reflect when enabled the content caching is completely disabled.
FetchCompressed reflects when a CDN request and cache already compressed content.
ForceReturn option allows to apply custom HTTP code to the CDN content.
GeoRestrictions represents the list of regions that are utilized in content delivery for a client.
Group represents G-Core's users group.
GZIPOn option allows to compress content with gzip on the CDN`s end.
HostHeader specifies the Host header that CDN servers use when request content from an origin server.
IgnoreCookie option.
IgnoreQueryString option determines how files with different query strings will be cached: either as one object (when this option is enabled) or as different objects (when this option is disabled).
IPAddressACL controls access to the CDN Resource content for specified IP addresses.
ListOpts represents list of additional options to filter client's list by.
Options represent possible params for a Rule.
Origin represents G-Core's origin.
OriginGroup represents G-Core's origin group.
OverrideBrowserTTL option caches content according to origin Cache-Control header.
ProxyCacheMethodsSet option allows caching for GET, HEAD and POST requests.
ReferrerACL option controls access to the CDN Resource content for specified domain names.
Region represents the region which is utilized in content delivery.
ResellerClient represents API of reseller G-Core account.
ResellerServices represent specific account type features.
Resource represents G-Core's CDN Resource.
Rewrite option.
Rule represent G-Core's rule for CDN Resource.
SecureKey option allows configuring an access with tokenized URLs.
Service represents G-Core client's service.
Slice option.
Stale is the list of errors which the option is applied for.
StaticHeaders specifies custom HTTP Headers that a CDN server adds to response.
Time represents custom time type.
Token to access G-Core API.
UpdateClientBody represents request body for update client.
UpdateOriginGroupBody represents request body for origin group update.
UpdateResourceBody represents request body for resource update.
UpdateServiceBody represents request body for service updating.
User represents G-Core's user.
UserAgentACL controls access to the content for specified user-agent.

# Type aliases

AccountService handles communication with the account related methods of the G-Core CDN API.
CertService handles communication with the SSL/TLS certificate related methods of the G-Core CDN API.
ClientsService handles communication with the client related methods of the G-Core CDN API.
GeoRestrictionsService handles communication with geo-restrictions related methods of the G-Core CDN API.
HTTPMethodValue represents the type for the AllowedHTTPMethods option value.
OriginGroupsService handles communication with the origin group related methods of the G-Core CDN API.
ResourcesService handles communication with the resource related methods of the G-Core CDN API.
RulesService handles communication with the rule related methods of the G-Core CDN API.
ServicesService handles communication with service related methods of the G-Core CDN API.
StaleValue represents the type for the Stale option value.