Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsoleLogger ¶
ConsoleLogger returns logger which writes everything to file plus console for events above certain level
Types ¶
type GCLClient ¶
type GCLClient struct {
// contains filtered or unexported fields
}
func NewGCLClient ¶
NewGCLClient tries to establish connection to google cloud logger using default authentication method and project ID
func (*GCLClient) Context ¶
Context returns context instance this client was initialized with as it may survive local function context which is i.e. cancelled or timed out
func (GCLClient) Shorten ¶
Google URL shortener has been discontinued. See https://developers.googleblog.com/2018/03/transitioning-google-url-shortener.html for details. TODO(dmitri): remove or update to use another service
type GCLHook ¶
type GCLHook struct {
// contains filtered or unexported fields
}
type ProgressReporter ¶
type ProgressReporter struct {
// contains filtered or unexported fields
}
func NewProgressReporter ¶
func NewProgressReporter(ctx context.Context, projectID, datasetID, tableID string) (*ProgressReporter, error)
NewProgressReporter initializes progress reporter
type TestingHook ¶
type TestingHook struct {
// contains filtered or unexported fields
}
func (*TestingHook) Levels ¶
func (hook *TestingHook) Levels() []logrus.Level
Levels returns logging levels supported by logrus