gcore

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResellUsersURL          = "/users"
	ResellClientsURL        = "/clients"
	ResellClientURL         = "/clients/%d"
	ResellUserTokenURL      = "/users/%d/token"
	ResellClientServicesURL = "/clients/%d/services"
	ResellClientServiceURL  = "/clients/%d/services/%d"
)
View Source
const (
	LibraryVersion = "2.1.0"
	DefaultBaseURL = "https://api.gcdn.co"
	UserAgent      = "go-gcore/" + LibraryVersion

	LoginURL = "/auth/signin"
)
View Source
const (
	ResourcesURL        = "/resources"
	ResourceURL         = "/resources/%d"
	ResourcePurgeURL    = "/resources/%d/purge"
	ResourcePrefetchURL = "/resources/%d/prefetch"
)
View Source
const (
	RulesURL = "/resources/%d/rules"
	RuleURL  = "/resources/%d/rules/%d"
)
View Source
const (
	CertificatesURL = "/sslData"
	CertificateURL  = "/sslData/%d"
)
View Source
const AccountDetailsURL = "/clients/me"
View Source
const DateFormat = "2006-01-02T15:04:05"

Variables

View Source
var (
	OriginGroupsURL = "/originGroups"
	OriginGroupURL  = "/originGroups/%d"
)

Functions

func BuildQueryParameters

func BuildQueryParameters(opts interface{}) (string, error)

BuildQueryParameters converts provided options struct to the string of URL parameters.

func ExtractResult

func ExtractResult(resp *http.Response, to interface{}) error

ExtractResult reads response body and unmarshal it to given interface

func IntPtr

func IntPtr(v int) *int

IntPtr returns pointer to int.

func StringPtr

func StringPtr(v string) *string

StringPtr returns pointer to string.

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

func (*AccountService) Details

func (s *AccountService) Details(ctx context.Context) (*Account, *http.Response, error)

Get method returns details info for the account.

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

type AllowedHTTPMethods struct {
	Enabled bool     `json:"enabled"`
	Value   []string `json:"value"`
}

The list of allowed HTTP methods.

type AuthOptions

type AuthOptions struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

G-Core account credentials.

type CORS

type CORS struct {
	Enabled bool     `json:"enabled"`
	Value   []string `json:"value"`
}

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

type CacheExpire struct {
	Enabled bool `json:"enabled"`
	Value   int  `json:"value"`
}

Specifies cache expiration time in seconds.

type CacheHTTPHeaders

type CacheHTTPHeaders struct {
	Enabled bool     `json:"enabled"`
	Value   []string `json:"value"`
}

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.

func (*CertService) Delete

func (s *CertService) Delete(ctx context.Context, certID int) (*http.Response, error)

Delete method deletes specific SSL certificate.

func (*CertService) Get

func (s *CertService) Get(ctx context.Context, certID int) (*CertSSL, *http.Response, error)

Get method returns specific SSL certificate.

func (*CertService) List

func (s *CertService) List(ctx context.Context) ([]*CertSSL, *http.Response, error)

List returns list of all SSL certificates.

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.

func (*Client) Do

func (c *Client) Do(req *http.Request, to interface{}) (*http.Response, error)

Do method executes request and checks response body.

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error)

NewRequest method returns new request by given options.

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

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

List method gets a list of all Clients assigned to a Reseller.

func (*ClientsService) ResumeCDN

func (s *ClientsService) ResumeCDN(ctx context.Context, clientID int) (*http.Response, error)

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

func (s *ClientsService) SuspendCDN(ctx context.Context, clientID int) (*http.Response, error)

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

type DisableCache struct {
	Enabled bool `json:"enabled"`
	Value   bool `json:"value"`
}

When enabled the content caching is completely disabled.

type FetchCompressed

type FetchCompressed struct {
	Enabled bool `json:"enabled"`
	Value   bool `json:"value"`
}

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

type GZIPOn struct {
	Enabled bool `json:"enabled"`
	Value   bool `json:"value"`
}

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 Group

type Group struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Group represents G-Core's users group.

type HostHeader

type HostHeader struct {
	Enabled bool   `json:"enabled"`
	Value   string `json:"value"`
}

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

type IgnoreCookie struct {
	Enabled bool `json:"enabled"`
	Value   bool `json:"value"`
}

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

type IgnoreQueryString struct {
	Enabled bool `json:"enabled"`
	Value   bool `json:"value"`
}

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

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

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

type OverrideBrowserTTL struct {
	Enabled bool `json:"enabled"`
	Value   int  `json:"value"`
}

С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

type PaidService struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

PaidService represents G-Core paid service.

type ProxyCacheMethodsSet

type ProxyCacheMethodsSet struct {
	Enabled bool `json:"enabled"`
	Value   bool `json:"value"`
}

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

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) List

List method returns all resources for this account.

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.

func (*ResourcesService) Purge

func (s *ResourcesService) Purge(ctx context.Context, resourceID int, paths []string) (*http.Response, error)

Purge method deletes cache from CDN servers for given paths. If `paths` is empty - purges all cache.

func (*ResourcesService) Update

func (s *ResourcesService) Update(ctx context.Context, resourceID int, body *UpdateResourceBody) (*Resource, *http.Response, error)

Update method updates resource by given body.

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.

func (*RulesService) Delete

func (s *RulesService) Delete(ctx context.Context, resourceID, ruleID int) (*http.Response, error)

Delete method deletes rule by given ruleID.

func (*RulesService) Get

func (s *RulesService) Get(ctx context.Context, resourceID, ruleID int) (*Rule, *http.Response, error)

Get method returns rule for given ruleID.

func (*RulesService) List

func (s *RulesService) List(ctx context.Context, resourceID int) ([]*Rule, *http.Response, error)

List method returns list of the rules 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

type Slice struct {
	Enabled bool `json:"enabled"`
	Value   bool `json:"value"`
}

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 Stale

type Stale struct {
	Enabled bool     `json:"enabled"`
	Value   []string `json:"value"`
}

The list of errors which the option is applied for.

type StaticHeaders

type StaticHeaders struct {
	Enabled bool     `json:"enabled"`
	Value   []string `json:"value"`
}

Specify custom HTTP Headers that a CDN server adds to response.

type Time

type Time struct {
	time.Time
}

Time represents custom time type

func NewTime

func NewTime(t time.Time) *Time

NewTime returns new instance of Time.

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON represents custom implementation of Unmarshaler interface.

type Token

type Token struct {
	Value  string `json:"token"`
	Expire *Time  `json:"expire"`
}

Token to access G-Core API.

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL