Documentation
¶
Overview ¶
Package edgecast provides APIs for interacting with the EdgeCast CDN.
For more information about EdgeCast, refer to: https://docs.vdms.com/
For API documentation, refer to: https://dev.vdms.com/cdn/api/index.html
Index ¶
Constants ¶
const ( // The current SDK Version SDKVersion = "0.1.0" // The SDK Name SDKName = "ec-sdk-go" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
// LogDebug writes debug messages
LogDebug(format string, v ...interface{})
// LogInfo writes info messages
LogInfo(format string, v ...interface{})
// LogError writes warning messages
LogWarning(format string, v ...interface{})
// LogError writes error messages
LogError(format string, v ...interface{})
}
Logger defines the the basic implementation that meets the SDK's logging needs
func NewSimplFileLogger ¶
Creates a logger that writes to a single log file
func NewStandardLogger ¶
func NewStandardLogger() Logger
Creates a logger that writes to the standard output and error streams
type NullLogger ¶
type NullLogger struct{}
A logger that will do nothing with messages
func (NullLogger) LogDebug ¶
func (l NullLogger) LogDebug(format string, v ...interface{})
LogDebug does nothing
func (NullLogger) LogError ¶
func (l NullLogger) LogError(format string, v ...interface{})
LogError does nothing
func (NullLogger) LogInfo ¶
func (l NullLogger) LogInfo(format string, v ...interface{})
LogInfo does nothing
func (NullLogger) LogWarning ¶
func (l NullLogger) LogWarning(format string, v ...interface{})
LogWarning does nothing
type SimpleLogger ¶
type SimpleLogger struct {
InfoLogger *log.Logger
DebugLogger *log.Logger
ErrorLogger *log.Logger
WarningLogger *log.Logger
}
A basic implementation of Logger that writes to stdout and stderr
func (SimpleLogger) LogDebug ¶
func (l SimpleLogger) LogDebug(format string, v ...interface{})
LogDebug writes Debug messages to stdout
func (SimpleLogger) LogError ¶
func (l SimpleLogger) LogError(format string, v ...interface{})
LogError writes to error messages to stderr
func (SimpleLogger) LogInfo ¶
func (l SimpleLogger) LogInfo(format string, v ...interface{})
LogInfo writes Info messages to stdout
func (SimpleLogger) LogWarning ¶
func (l SimpleLogger) LogWarning(format string, v ...interface{})
LogWarning writes to error messages to stderr
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client provides a base client implementation for interacting with EdgeCast CDN APIs.
|
Package client provides a base client implementation for interacting with EdgeCast CDN APIs. |
|
internal
|
|
|
collections
Package collection provides helper methods for working with aggregate/collection types
|
Package collection provides helper methods for working with aggregate/collection types |
|
jsonutil
Package jsonutil provides helper methods for working with JSON
|
Package jsonutil provides helper methods for working with JSON |
|
urlutil
Package urlutil provides helper methods for working with URLs
|
Package urlutil provides helper methods for working with URLs |
|
Package waf provides an API for managing Web Application Firewall for the EdgeCast CDN.
|
Package waf provides an API for managing Web Application Firewall for the EdgeCast CDN. |