Documentation
¶
Index ¶
- Constants
- Variables
- func BuildQueryParameters(opts interface{}) (string, error)
- func ExtractResult(resp *http.Response, to interface{}) error
- func IntPtr(v int) *int
- func StringPtr(v string) *string
- type Account
- type AccountService
- type AddCertBody
- type AllowedHTTPMethods
- type AuthOptions
- type CORS
- type CacheExpire
- type CacheHTTPHeaders
- type CertSSL
- type CertService
- func (s *CertService) Add(ctx context.Context, body *AddCertBody) (*CertSSL, *http.Response, error)
- func (s *CertService) Delete(ctx context.Context, certID int) (*http.Response, error)
- func (s *CertService) Get(ctx context.Context, certID int) (*CertSSL, *http.Response, error)
- func (s *CertService) List(ctx context.Context) ([]*CertSSL, *http.Response, error)
- type Client
- type ClientAccount
- type ClientsService
- func (s *ClientsService) Create(ctx context.Context, body *CreateClientBody) (*ClientAccount, *http.Response, error)
- func (s *ClientsService) Get(ctx context.Context, clientID int) (*ClientAccount, *http.Response, error)
- func (s *ClientsService) GetCommonClient(ctx context.Context, userID int) (*CommonClient, *http.Response, error)
- func (s *ClientsService) List(ctx context.Context, opts ListOpts) ([]*ClientAccount, *http.Response, error)
- func (s *ClientsService) ResumeCDN(ctx context.Context, clientID int) (*http.Response, error)
- func (s *ClientsService) SuspendCDN(ctx context.Context, clientID int) (*http.Response, error)
- func (s *ClientsService) Update(ctx context.Context, clientID int, body *UpdateClientBody) (*ClientAccount, *http.Response, error)
- type CommonClient
- type CommonServices
- type CountryACL
- type CreateClientBody
- type CreateOriginGroupBody
- type CreateResourceBody
- type CreateRuleBody
- type DisableCache
- type FetchCompressed
- type ForceReturn
- type GZIPOn
- type GenericLogger
- type Group
- type HostHeader
- type IPAddressACL
- type IgnoreCookie
- type IgnoreQueryString
- type ListOpts
- type Options
- type Origin
- type OriginGroup
- type OriginGroupsService
- func (s *OriginGroupsService) Create(ctx context.Context, body *CreateOriginGroupBody) (*OriginGroup, *http.Response, error)
- func (s *OriginGroupsService) Delete(ctx context.Context, originGroupID int) (*http.Response, error)
- func (s *OriginGroupsService) Get(ctx context.Context, originGroupID int) (*OriginGroup, *http.Response, error)
- func (s *OriginGroupsService) List(ctx context.Context) ([]*OriginGroup, *http.Response, error)
- func (s *OriginGroupsService) Update(ctx context.Context, originGroupID int, body *UpdateOriginGroupBody) (*OriginGroup, *http.Response, error)
- type OverrideBrowserTTL
- type PaidService
- type ProxyCacheMethodsSet
- type ReferrerACL
- type ResellerClient
- type ResellerServices
- type Resource
- type ResourcesService
- func (s *ResourcesService) Create(ctx context.Context, body *CreateResourceBody) (*Resource, *http.Response, error)
- func (s *ResourcesService) Get(ctx context.Context, resourceID int) (*Resource, *http.Response, error)
- func (s *ResourcesService) List(ctx context.Context) ([]*Resource, *http.Response, error)
- func (s *ResourcesService) Prefetch(ctx context.Context, resourceID int, paths []string) (*http.Response, error)
- func (s *ResourcesService) Purge(ctx context.Context, resourceID int, paths []string) (*http.Response, error)
- func (s *ResourcesService) Update(ctx context.Context, resourceID int, body *UpdateResourceBody) (*Resource, *http.Response, error)
- type Rewrite
- type Rule
- type RulesService
- func (s *RulesService) Create(ctx context.Context, resourceID int, body *CreateRuleBody) (*Rule, *http.Response, error)
- func (s *RulesService) Delete(ctx context.Context, resourceID, ruleID int) (*http.Response, error)
- func (s *RulesService) Get(ctx context.Context, resourceID, ruleID int) (*Rule, *http.Response, error)
- func (s *RulesService) List(ctx context.Context, resourceID int) ([]*Rule, *http.Response, error)
- type SecureKey
- type Slice
- type Stale
- type StaticHeaders
- type Time
- type Token
- type UpdateClientBody
- type UpdateOriginGroupBody
- type UpdateResourceBody
- type User
- type UserAgentACL
- type VoidLogger
- func (l *VoidLogger) Debug(args ...interface{})
- func (l *VoidLogger) Debugf(format string, args ...interface{})
- func (l *VoidLogger) Error(args ...interface{})
- func (l *VoidLogger) Errorf(format string, args ...interface{})
- func (l *VoidLogger) Info(args ...interface{})
- func (l *VoidLogger) Infof(format string, args ...interface{})
- func (l VoidLogger) Println(v ...interface{})
- func (l *VoidLogger) Warn(args ...interface{})
- func (l *VoidLogger) Warnf(format string, args ...interface{})
Constants ¶
const ( ResellUsersURL = "/users" ResellClientsURL = "/clients" ResellClientURL = "/clients/%d" ResellUserTokenURL = "/users/%d/token" ResellClientServicesURL = "/clients/%d/services" ResellClientServiceURL = "/clients/%d/services/%d" )
const ( LibraryVersion = "2.1.0" DefaultBaseURL = "https://api.gcdn.co" UserAgent = "go-gcore/" + LibraryVersion LoginURL = "/auth/signin" )
const ( ResourcesURL = "/resources" ResourceURL = "/resources/%d" ResourcePurgeURL = "/resources/%d/purge" ResourcePrefetchURL = "/resources/%d/prefetch" )
const ( RulesURL = "/resources/%d/rules" RuleURL = "/resources/%d/rules/%d" )
const ( CertificatesURL = "/sslData" CertificateURL = "/sslData/%d" )
const AccountDetailsURL = "/clients/me"
const DateFormat = "2006-01-02T15:04:05"
Variables ¶
var ( OriginGroupsURL = "/originGroups" OriginGroupURL = "/originGroups/%d" )
Functions ¶
func BuildQueryParameters ¶
BuildQueryParameters converts provided options struct to the string of URL parameters.
func ExtractResult ¶
ExtractResult reads response body and unmarshal it to given interface
Types ¶
type Account ¶
type Account struct { // Your account ID ID int `json:"id"` // ID of user who requested information. CurrentUser int `json:"currentUser"` // An array which contains information about all users of the requested account. Users []User `json:"users"` // Hostname of the edge-server Cname string `json:"cname"` }
Account represents G-Core's account info.
type AccountService ¶
type AccountService service
type AddCertBody ¶
type AddCertBody struct { Name string `json:"name"` Certificate string `json:"sslCertificate"` PrivateKey string `json:"sslPrivateKey"` }
AddCertBody represents SSL certificate body for add certificate.
type AllowedHTTPMethods ¶
The list of allowed HTTP methods.
type AuthOptions ¶
G-Core account credentials.
type CORS ¶
Option allows you to add Access-Control-Allow-Origin for the specified domains or for all domains. It has two parameters: For all domains "value": ["*"] For the specified list of domains "value": ["domain.com", "second.dom.com"]
type CacheExpire ¶
Specifies cache expiration time in seconds.
type CacheHTTPHeaders ¶
List HTTP Headers that must be included in the response.
type CertSSL ¶
type CertSSL struct { ID int `json:"id"` Name string `json:"name"` CName string `json:"cname"` Deleted bool `json:"deleted"` CertSubjectAlt *string `json:"cert_subject_alt"` HasRelatedResources bool `json:"hasRelatedResources"` ValidityNotAfter *Time `json:"validity_not_after"` ValidityNotBefore *Time `json:"validity_not_before"` CertificateChain string `json:"sslCertificateChain"` CertIssuer string `json:"cert_issuer"` CertSubjectCn string `json:"cert_subject_cn"` }
CertSSL represents G-Core's CertSSL certificate
type CertService ¶
type CertService service
func (*CertService) Add ¶
func (s *CertService) Add(ctx context.Context, body *AddCertBody) (*CertSSL, *http.Response, error)
Add method adds SSL certificate to deliver content via HTTPS protocol. Paste all strings of the certificate(s) and the private key in one string parameter. Each certificate in chain and the private key should be divided with the "\n" symbol.
type Client ¶
type Client struct { sync.Mutex // Base URL for API requests. BaseURL *url.URL // User agent for client. UserAgent string // Token to communicate with G-Core API. Token *Token // contains filtered or unexported fields }
Client manages communication with G-Core CDN API.
func (*Client) Authenticate ¶
func (c *Client) Authenticate(ctx context.Context, authOpts AuthOptions) error
Authenticate gets API Token, if client already took a token, check if it's valid. If it's not, get new one.
type ClientAccount ¶
type ClientAccount struct { ID int `json:"id"` Client int `json:"client"` Users []*User `json:"users"` CurrentUser int `json:"currentUser"` Email string `json:"email"` Phone string `json:"phone"` Name string `json:"name"` Status string `json:"status"` Created *Time `json:"created"` Updated *Time `json:"updated"` CompanyName string `json:"companyName"` UtilizationLevel int `json:"utilization_level"` Reseller int `json:"reseller"` Cname string `json:"cname,omitempty"` }
ClientAccount represents G-Core's client account.
type ClientsService ¶
type ClientsService service
func (*ClientsService) Create ¶
func (s *ClientsService) Create(ctx context.Context, body *CreateClientBody) (*ClientAccount, *http.Response, error)
Create method creates a new client, the client will be activated automatically.
func (*ClientsService) Get ¶
func (s *ClientsService) Get(ctx context.Context, clientID int) (*ClientAccount, *http.Response, error)
Get method returns data of a client by ID.
func (*ClientsService) GetCommonClient ¶
func (s *ClientsService) GetCommonClient(ctx context.Context, userID int) (*CommonClient, *http.Response, error)
GetCommonClient method returns CommonClient for the given userID. This feature has been taken from the admin web-panel, is not documented at all It allows to authenticate as a user (common client), common client can manage his own CDN resources, origins and etc.
func (*ClientsService) List ¶
func (s *ClientsService) List(ctx context.Context, opts ListOpts) ([]*ClientAccount, *http.Response, error)
List method gets a list of all Clients assigned to a Reseller.
func (*ClientsService) ResumeCDN ¶
ResumeCDN method resumes CDN-service for given clientID. This feature has been taken from the admin web-panel, is not documented at all. It allows to resume CDN service for specific client.
func (*ClientsService) SuspendCDN ¶
SuspendCDN method suspends CDN-service for given clientID. This feature has been taken from the admin web-panel, is not documented at all. It allows to pause CDN service for specific client.
func (*ClientsService) Update ¶
func (s *ClientsService) Update(ctx context.Context, clientID int, body *UpdateClientBody) (*ClientAccount, *http.Response, error)
Update method edits data of the client.
type CommonClient ¶
type CommonClient struct { *Client CommonServices }
CommonClient represents API of basic G-Core account.
func NewCommonClient ¶
func NewCommonClient(httpClient *http.Client, logger ...GenericLogger) *CommonClient
NewCommonClient creates basic G-Core client.
type CommonServices ¶
type CommonServices struct { Account *AccountService Resources *ResourcesService OriginGroups *OriginGroupsService Rules *RulesService Certificates *CertService }
CommonServices represent specific account type features.
type CountryACL ¶
type CountryACL struct { Enabled bool `json:"enabled"` ExceptedValues []string `json:"excepted_values"` PolicyType string `json:"policy_type"` }
Control access to the content for specified countries.
type CreateClientBody ¶
type CreateClientBody struct { UserType string `json:"user_type"` Name string `json:"name"` Company string `json:"company"` Phone string `json:"phone"` Email string `json:"email"` Password string `json:"password"` }
CreateClientBody represents request body for create client.
type CreateOriginGroupBody ¶
type CreateOriginGroupBody struct { Name string `json:"name"` UseNext bool `json:"useNext"` Origins []Origin `json:"origins"` }
CreateOriginGroupBody represents request body for origin group create.
type CreateResourceBody ¶
type CreateResourceBody struct { Cname string `json:"cname"` Origin string `json:"origin,omitempty"` OriginGroupID *int `json:"originGroup,omitempty"` SecondaryHostnames []string `json:"secondaryHostnames,omitempty"` OriginProtocol string `json:"originProtocol,omitempty"` SslData *int `json:"sslData,omitempty"` SslEnabled bool `json:"sslEnabled,omitempty"` Options *Options `json:"options,omitempty"` }
CreateResourceBody represents request body for resource create.
type CreateRuleBody ¶
type CreateRuleBody struct { Rule string `json:"rule"` Name string `json:"name"` RuleType int `json:"ruleType"` Options Options `json:"options"` }
CreateRuleBody represents request body for rule create.
type DisableCache ¶
When enabled the content caching is completely disabled.
type FetchCompressed ¶
A CDN request and cache already compressed content. Your server should support compression. CDN servers won't ungzip your content even if a user's browser doesn't accept compression (nowadays almost all browsers support it). By default, option is disabled (enabled: false). Not supported with gzipON option enabled. Only one of these options can be used at the same time. fetch_compressed overrides gzipOn.
type ForceReturn ¶
type ForceReturn struct { Enabled bool `json:"enabled"` Code int `json:"code"` Body string `json:"body"` }
Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you're going to set up redirection.
type GZIPOn ¶
The option allows to compress content with gzip on the CDN`s end. CDN servers will request only uncompressed content from the origin. Not supported with fetch_compressed.
type GenericLogger ¶
type GenericLogger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Println(v ...interface{}) }
GenericLogger represents common interface for different loggers.
func SelectLogger ¶
func SelectLogger(logger ...GenericLogger) GenericLogger
SelectLogger returns one logger from given.
type HostHeader ¶
Specify the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header. If the option is in NULL state Host Header value is taken from the parent CDN resource's value.
type IPAddressACL ¶
type IPAddressACL struct { Enabled bool `json:"enabled"` ExceptedValues []string `json:"excepted_values"` PolicyType string `json:"policy_type"` }
Control access to the CDN Resource content for specified IP addresses. If you wish to use IPs from our CDN servers IP list for IP ACL configuration, you need to independently monitor its relevance. We recommend you use a script for automatically update IP ACL. Read more https://docs.gcorelabs.com/cdn/#operation--public-ip-list-get.
type IgnoreCookie ¶
By default, files pulled from an origin source with cookies are not cached in a CDN. Enable this option to cache such objects.
type IgnoreQueryString ¶
This 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).
type ListOpts ¶
type ListOpts struct { Email string `param:"email,omitempty"` Name string `param:"name,omitempty"` CompanyName string `param:"companyName,omitempty"` Deleted bool `param:"deleted,omitempty"` CDN string `param:"cdn,omitempty"` Activated bool `param:"activated,omitempty"` }
ListOpts represents list of additional options to filter client's list by.
type Options ¶
type Options struct { CacheHTTPHeaders *CacheHTTPHeaders `json:"cache_http_headers"` CacheExpire *CacheExpire `json:"cache_expire"` AllowedHTTPMethods *AllowedHTTPMethods `json:"allowedHttpMethods"` CORS *CORS `json:"cors"` CountryACL *CountryACL `json:"country_acl"` DisableCache *DisableCache `json:"disable_cache"` FetchCompressed *FetchCompressed `json:"fetch_compressed"` ForceReturn *ForceReturn `json:"force_return"` GZIPOn *GZIPOn `json:"gzipOn"` HostHeader *HostHeader `json:"hostHeader"` IgnoreQueryString *IgnoreQueryString `json:"ignoreQueryString"` IgnoreCookie *IgnoreCookie `json:"ignore_cookie"` IPAddressACL *IPAddressACL `json:"ip_address_acl"` OverrideBrowserTTL *OverrideBrowserTTL `json:"override_browser_ttl"` ProxyCacheMethodsSet *ProxyCacheMethodsSet `json:"proxy_cache_methods_set"` ReferrerACL *ReferrerACL `json:"referrer_acl"` Rewrite *Rewrite `json:"rewrite"` SecureKey *SecureKey `json:"secure_key"` Slice *Slice `json:"slice"` Stale *Stale `json:"stale"` StaticHeaders *StaticHeaders `json:"staticHeaders"` UserAgentACL *UserAgentACL `json:"user_agent_acl"` }
Options represent possible params for a Rule.
type Origin ¶
type Origin struct { ID int `json:"id,omitempty"` Enabled bool `json:"enabled,omitempty"` Backup bool `json:"backup"` Source string `json:"source"` }
Origin represents G-Core's origin.
type OriginGroup ¶
type OriginGroup struct { ID int `json:"id"` Name string `json:"name"` UseNext bool `json:"useNext"` OriginIDs []Origin `json:"origin_ids,omitempty"` Origins []Origin `json:"origins"` }
Origin represents G-Core's origin group.
type OriginGroupsService ¶
type OriginGroupsService service
func (*OriginGroupsService) Create ¶
func (s *OriginGroupsService) Create(ctx context.Context, body *CreateOriginGroupBody) (*OriginGroup, *http.Response, error)
Create method creates origin group.
func (*OriginGroupsService) Delete ¶
func (s *OriginGroupsService) Delete(ctx context.Context, originGroupID int) (*http.Response, error)
Delete method deletes origin group.
func (*OriginGroupsService) Get ¶
func (s *OriginGroupsService) Get(ctx context.Context, originGroupID int) (*OriginGroup, *http.Response, error)
Get method returns origin group info for given ID.
func (*OriginGroupsService) List ¶
func (s *OriginGroupsService) List(ctx context.Context) ([]*OriginGroup, *http.Response, error)
List method returns list information about Origins Groups and Origin Sources.
func (*OriginGroupsService) Update ¶
func (s *OriginGroupsService) Update(ctx context.Context, originGroupID int, body *UpdateOriginGroupBody) (*OriginGroup, *http.Response, error)
Update method updates origin group info.
type OverrideBrowserTTL ¶
Сache content according to origin Cache-Control header. When enabled Origin Source Cache-Control is inherited and respected. It overrides the cache_expire option value. Specify cache expiry time in seconds for the end user’s browser.
type PaidService ¶
PaidService represents G-Core paid service.
type ProxyCacheMethodsSet ¶
Allows caching for GET, HEAD and POST requests.
type ReferrerACL ¶
type ReferrerACL struct { Enabled bool `json:"enabled"` ExceptedValues []string `json:"excepted_values"` PolicyType string `json:"policy_type"` }
Control access to the CDN Resource content for specified domain names.
type ResellerClient ¶
type ResellerClient struct { *Client ResellerServices }
ResellerClient represents API of reseller G-Core account.
func NewResellerClient ¶
func NewResellerClient(httpClient *http.Client, logger ...GenericLogger) *ResellerClient
NewResellerClient creates reseller G-Core client.
type ResellerServices ¶
type ResellerServices struct {
Clients *ClientsService
}
ResellerServices represent specific account type features.
type Resource ¶
type Resource struct { ID int `json:"id"` Name *string `json:"name"` Deleted bool `json:"deleted"` Active bool `json:"active"` Enabled bool `json:"enabled"` CompanyName string `json:"companyName"` Status string `json:"status"` Client int `json:"client"` OriginGroup int `json:"originGroup"` Cname string `json:"cname"` SecondaryHostnames []string `json:"secondaryHostnames"` Options *Options `json:"options"` OriginProtocol string `json:"originProtocol"` Rules []Rule `json:"rules"` CreatedAt *Time `json:"created"` UpdatedAt *Time `json:"updated"` SslData *int `json:"sslData"` SslEnabled bool `json:"sslEnabled"` }
Resource represents G-Core's CDN Resource.
type ResourcesService ¶
type ResourcesService service
func (*ResourcesService) Create ¶
func (s *ResourcesService) Create(ctx context.Context, body *CreateResourceBody) (*Resource, *http.Response, error)
Create method creates resource.
func (*ResourcesService) Get ¶
func (s *ResourcesService) Get(ctx context.Context, resourceID int) (*Resource, *http.Response, error)
Get method returns resource by given resourceID.
func (*ResourcesService) Prefetch ¶
func (s *ResourcesService) Prefetch(ctx context.Context, resourceID int, paths []string) (*http.Response, error)
Prefetch method pre-loads objects from given paths to CDN-servers cache.
type Rewrite ¶
type Rewrite struct { Enabled bool `json:"enabled"` Body string `json:"body"` Flag string `json:"flag"` }
The pattern for Rewrite. At least one group should be specified. For Example: /rewrite_from/(.*) /rewrite_to/$1 Read more about Rewrite option here http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite.
type Rule ¶
type Rule struct { ID int `json:"id"` Rule string `json:"rule"` Name string `json:"name"` OriginGroup int `json:"originGroup"` RuleType int `json:"ruleType"` Options Options `json:"options"` Weight int `json:"weight"` PresetApplied bool `json:"preset_applied"` OriginProtocol string `json:"originProtocol"` }
Rule represent G-Core's rule for CDN Resource.
type RulesService ¶
type RulesService service
func (*RulesService) Create ¶
func (s *RulesService) Create(ctx context.Context, resourceID int, body *CreateRuleBody) (*Rule, *http.Response, error)
Create method creates rule for given resourceID.
type SecureKey ¶
type SecureKey struct { Enabled bool `json:"enabled"` Key string `json:"body"` Type int `json:"type"` }
The option allows configuring an access with tokenized URLs. It makes impossible to access content without a valid (unexpired) hash key. When enabled you need to specify a key that you use to generate a token.
type Slice ¶
Files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte.The origin must support HTTP Range requests. By default the option is disabled.
type StaticHeaders ¶
Specify custom HTTP Headers that a CDN server adds to response.
type Time ¶
Time represents custom time type
func (*Time) UnmarshalJSON ¶
UnmarshalJSON represents custom implementation of Unmarshaler interface.
type UpdateClientBody ¶
type UpdateClientBody struct { Name string `json:"name"` CompanyName string `json:"companyName"` Phone string `json:"phone"` Email string `json:"email"` Seller int `json:"seller,omitempty"` }
UpdateClientBody represents request body for update client.
type UpdateOriginGroupBody ¶
type UpdateOriginGroupBody struct { Name string `json:"name"` UseNext bool `json:"useNext"` Origins []Origin `json:"origins"` }
UpdateOriginGroupBody represents request body for origin group update.
type UpdateResourceBody ¶
type UpdateResourceBody struct { Active *bool `json:"active,omitempty"` Enabled *bool `json:"enabled,omitempty"` OriginGroup int `json:"originGroup,omitempty"` SecondaryHostnames []string `json:"secondaryHostnames"` OriginProtocol string `json:"originProtocol,omitempty"` SslData *int `json:"sslData,omitempty"` SslEnabled *bool `json:"sslEnabled,omitempty"` Options *Options `json:"options,omitempty"` }
UpdateResourceBody represents request body for resource update.
type User ¶
type User struct { ID int `json:"id"` Deleted bool `json:"deleted"` Email string `json:"email"` Name string `json:"name"` Client int `json:"client"` Company string `json:"company"` Lang string `json:"lang"` Phone string `json:"phone"` Reseller int `json:"reseller,omitempty"` Groups []*Group `json:"groups"` }
User represents G-Core's user.
type UserAgentACL ¶
type UserAgentACL struct { Enabled bool `json:"enabled"` ExceptedValues []string `json:"excepted_values"` PolicyType string `json:"policy_type"` }
Control access to the content for specified user-agent.
type VoidLogger ¶
type VoidLogger struct{}
VoidLogger represents nil implementation of GenericLogger.
func (*VoidLogger) Debug ¶
func (l *VoidLogger) Debug(args ...interface{})
func (*VoidLogger) Debugf ¶
func (l *VoidLogger) Debugf(format string, args ...interface{})
func (*VoidLogger) Error ¶
func (l *VoidLogger) Error(args ...interface{})
func (*VoidLogger) Errorf ¶
func (l *VoidLogger) Errorf(format string, args ...interface{})
func (*VoidLogger) Info ¶
func (l *VoidLogger) Info(args ...interface{})
func (*VoidLogger) Infof ¶
func (l *VoidLogger) Infof(format string, args ...interface{})
func (VoidLogger) Println ¶
func (l VoidLogger) Println(v ...interface{})
func (*VoidLogger) Warn ¶
func (l *VoidLogger) Warn(args ...interface{})
func (*VoidLogger) Warnf ¶
func (l *VoidLogger) Warnf(format string, args ...interface{})